blob: 2cf2e7b00688d4eca4df4a9764938a0df25a4a03 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Igor Pokrovsky <tiamat@comset.net>
# $FreeBSD$
PORTNAME= glew
PORTVERSION= 1.13.0
PORTREVISION= 1
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= yes
USE_LDCONFIG= yes
MAKE_ENV= GLEW_DEST=${PREFIX}
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \
${STAGEDIR}${PREFIX}/lib/libGLEW.so.1
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEWmx.so.${PORTVERSION} \
${STAGEDIR}${PREFIX}/lib/libGLEWmx.so.1
${LN} -sf libGLEW.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEW.so
${LN} -sf libGLEWmx.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEWmx.so
${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/libGLEWmx.a ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${STAGEDIR}${PREFIX}/include/GL
${INSTALL_DATA} ${WRKSRC}/glew.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
${INSTALL_DATA} ${WRKSRC}/glewmx.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
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>
|