1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/graphics/glew/Makefile
2020-06-06 13:50:56 +00:00

39 lines
792 B
Makefile

# Created by: Igor Pokrovsky <tiamat@comset.net>
# $FreeBSD$
PORTNAME= glew
PORTVERSION= 2.2.0
PORTREVISION?= 0
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 xext xi xmu
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>