1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/graphics/glew/Makefile
Jan Beich 69307666c8 graphics/glew: restore GLU for now after 8532b6f5d0
While glew itself builds with -DGLEW_NO_GLU it's neither passed via
pkg-config to consumers nor visible outside of pkg-config.

$ pkg install glew pkgconf
$ pkg-config --cflags glew
Package glu was not found in the pkg-config search path.
Perhaps you should add the directory containing `glu.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glu', required by 'glew', not found

PR:		257626 (for tracking)
Reported by:	madpilot
2021-08-27 18:42:11 +00:00

38 lines
768 B
Makefile

# Created by: Igor Pokrovsky <tiamat@comset.net>
PORTNAME= glew
PORTVERSION= 2.2.0
PORTREVISION?= 3
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER?= zeising@FreeBSD.org
COMMENT= OpenGL Extension Wrangler Library
LICENSE= MIT BSD3CLAUSE
LICENSE_COMB= dual
USES= gmake gl tar:tgz xorg
USE_XORG?= x11
USE_GL?= gl glu
USE_LDCONFIG= yes
MAKE_ENV= GLEW_DEST=${PREFIX} GLEW_PREFIX=${PREFIX}
INSTALL_TARGET?=install.all
OPTIONS_DEFINE?=DOCS
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' \
-e 's|^LIBDIR|GLEW_LIBDIR|' \
-e 's|$$(LIBDIR)|$$(GLEW_LIBDIR)|' \
${WRKSRC}/Makefile
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in css html jpg png
${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>