openbsd-ports/graphics/glew/Makefile
sthen 96da4e2934 import graphics/glew:
The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist
C/C++ OpenGL developers with two tedious tasks: initializing and using
extensions and writing portable applications. GLEW provides an efficient
run-time mechanism to determine whether a certain extension is supported
by the driver or not. OpenGL core and extension functionality is exposed
via a single header file.
2009-04-13 23:24:01 +00:00

55 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2009/04/13 23:24:01 sthen Exp $
COMMENT= GL Extension Wrangler library
DISTNAME= glew-1.5.1-src
PKGNAME= ${DISTNAME:S/-src//}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=glew/}
EXTRACT_SUFX= .tgz
SHARED_LIBS= GLEW 1.0
HOMEPAGE= http://glew.sourceforge.net/
MAINTAINER= Brad Smith <brad@comstyle.com>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= GL GLU X11 Xext Xi Xmu c m
WRKDIST= ${WRKDIR}/glew
MAKE_ENV= LIBGLEW_VERSION=${LIBGLEW_VERSION}
MAKE_FLAGS= LD=${CC}
USE_X11= Yes
USE_GMAKE= Yes
NO_REGRESS= Yes
post-extract:
@perl -pi -e 's/\r\n/\n/;' \
${WRKSRC}/Makefile ${WRKSRC}/config/config.guess \
${WRKSRC}/include/GL/*.h ${WRKSRC}/doc/*.{css,html}
@cp ${FILESDIR}/Makefile.openbsd ${WRKSRC}/config
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/glew
${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${PREFIX}/bin
if [ -f ${WRKSRC}/lib/libGLEW.so.* ]; then \
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.* ${PREFIX}/lib; \
fi
${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${PREFIX}/include/GL
.for i in css html jpg png
${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${PREFIX}/share/doc/glew
.endfor
.include <bsd.port.mk>