1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/graphics/glew/Makefile
Niclas Zeising 8def2204e8 Update to 2.1.0
Some hilights from release notes:
* adds support for OpenGL 4.6
* adds support for OSMesa and EGL
* Removes  support for MX and removes related libraries

Use upstream install target instead of our own do-install:
Fix the pkgconfig script to actually tell something at least closer to the
truth.
Add missing GL dependencies.
Library version bump.

PR:		223370
Submitted by:	zeising
exp-run by:	antoine
Approved by:	antoine
2017-11-18 19:32:30 +00:00

38 lines
765 B
Makefile

# Created by: Igor Pokrovsky <tiamat@comset.net>
# $FreeBSD$
PORTNAME= glew
PORTVERSION= 2.1.0
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= zeising@FreeBSD.org
COMMENT= OpenGL Extension Wrangler Library
LICENSE= MIT BSD3CLAUSE
LICENSE_COMB= dual
USES= gmake tar:tgz
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>