39 lines
952 B
Makefile
39 lines
952 B
Makefile
PORTNAME= glx-utils
|
|
DISTVERSIONPREFIX= ${GL_ACCOUNT}-${GL_PROJECT}-
|
|
DISTVERSION= 9.0.0
|
|
CATEGORIES= graphics
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= List GLX capabilities and simple renderer
|
|
WWW= https://www.mesa3d.org/
|
|
|
|
LICENSE= MIT
|
|
|
|
CONFLICTS_INSTALL= mesa-demos
|
|
|
|
USES= gl localbase:ldflags xorg
|
|
USE_GITLAB= yes
|
|
USE_GL= gl
|
|
USE_XORG= x11
|
|
GL_SITE= https://gitlab.freedesktop.org
|
|
GL_ACCOUNT= mesa
|
|
GL_PROJECT= demos
|
|
WRKSRC_SUBDIR= src/xdemos
|
|
CFLAGS+= -ffunction-sections -fdata-sections
|
|
LDFLAGS+= -Wl,--gc-sections
|
|
PLIST_FILES= bin/glxgears \
|
|
bin/glxinfo \
|
|
${NULL}
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o glxinfo glxinfo.c \
|
|
-I../util ../util/glinfo_common.c \
|
|
-I../glad/include ../glad/src/glad.c \
|
|
${LDFLAGS} -lGL -lX11)
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o glxgears glxgears.c ${LDFLAGS} -lGL -lX11 -lm)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${PLIST_FILES:Mbin/*:S,^bin,${WRKSRC},} \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|