[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / glx-utils

File: [cvs.NetBSD.org] / pkgsrc / graphics / glx-utils / Makefile (download)

Revision 1.16, Thu Aug 22 09:55:50 2019 UTC (5 months, 3 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, HEAD
Changes since 1.15: +2 -2 lines

Update MASTER_SITES for mesa-demos.

# $NetBSD: Makefile,v 1.16 2019/08/22 09:55:50 nia Exp $

DISTNAME=	mesa-demos-8.4.0
PKGNAME=	${DISTNAME:S/mesa-demos/glx-utils/}
CATEGORIES=	x11 graphics
MASTER_SITES=	https://mesa.freedesktop.org/archive/demos/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://cgit.freedesktop.org/mesa/demos/
COMMENT=	OpenGL glxgears and glxinfo
#LICENSE=	# Similar to mit but with SGI advertising clause.

NO_CONFIGURE=	yes
USE_LANGUAGES=	c

INSTALLATION_DIRS=	bin
LDFLAGS+=		-lX11	# ld 2.22 wants each library explicitly

do-build:
	cd ${WRKSRC}/src/xdemos && \
	${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
		glxgears.c ${LDFLAGS} \
		-L../../lib -lGLU -lGL -lm -lXext \
		-o glxgears && \
	${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
		glxinfo.c glinfo_common.c ${LDFLAGS} \
		-L../../lib -lGLU -lGL -lm -lXext -o glxinfo

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/xdemos/glxgears \
		${DESTDIR}${PREFIX}/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/src/xdemos/glxinfo \
		${DESTDIR}${PREFIX}/bin/

.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"