Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= glew |
4 |
PORTNAME= glew |
5 |
PORTVERSION= 1.13.0 |
5 |
PORTVERSION= 2.0.0 |
6 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
7 |
MASTER_SITES= SF |
7 |
MASTER_SITES= SF |
8 |
|
8 |
|
Lines 14-23
Link Here
|
14 |
|
14 |
|
15 |
USES= gmake tar:tgz |
15 |
USES= gmake tar:tgz |
16 |
USE_XORG= x11 xext xi xmu |
16 |
USE_XORG= x11 xext xi xmu |
17 |
USE_GL= yes |
17 |
USE_GL= gl glu |
18 |
USE_LDCONFIG= yes |
18 |
USE_LDCONFIG= yes |
19 |
|
19 |
|
20 |
MAKE_ENV+= GLEW_DEST=${PREFIX} |
20 |
INSTALL_TARGET= install.all |
|
|
21 |
MAKE_ENV+= GLEW_PREFIX=${PREFIX}\ |
22 |
GLEW_DEST=${PREFIX} \ |
23 |
LOCALLIBDIR=${PREFIX}/lib \ |
24 |
PKGDIR=${PREFIX}/libdata/pkgconfig |
21 |
|
25 |
|
22 |
OPTIONS_DEFINE= DOCS |
26 |
OPTIONS_DEFINE= DOCS |
23 |
|
27 |
|
Lines 24-47
Link Here
|
24 |
.include <bsd.port.options.mk> |
28 |
.include <bsd.port.options.mk> |
25 |
|
29 |
|
26 |
post-patch: |
30 |
post-patch: |
27 |
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile |
31 |
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' \ |
|
|
32 |
-e 's|LIBDIR|LOCALLIBDIR|' ${WRKSRC}/Makefile |
28 |
|
33 |
|
29 |
do-install: |
34 |
post-install: |
30 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${STAGEDIR}${PREFIX}/bin |
35 |
@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/libGLEW.so.${PORTVERSION} |
31 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${STAGEDIR}${PREFIX}/bin |
|
|
32 |
|
33 |
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \ |
34 |
${STAGEDIR}${PREFIX}/lib/libGLEW.so.1 |
35 |
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEWmx.so.${PORTVERSION} \ |
36 |
${STAGEDIR}${PREFIX}/lib/libGLEWmx.so.1 |
37 |
${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEW.so |
38 |
${LN} -sf ${PREFIX}/lib/libGLEWmx.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEWmx.so |
39 |
${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${STAGEDIR}${PREFIX}/lib |
40 |
${INSTALL_DATA} ${WRKSRC}/lib/libGLEWmx.a ${STAGEDIR}${PREFIX}/lib |
41 |
${MKDIR} ${STAGEDIR}${PREFIX}/include/GL |
42 |
${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${STAGEDIR}${PREFIX}/include/GL |
43 |
${INSTALL_DATA} ${WRKSRC}/glew.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig |
44 |
${INSTALL_DATA} ${WRKSRC}/glewmx.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig |
45 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
36 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
46 |
.for i in css html jpg png |
37 |
.for i in css html jpg png |
47 |
${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${STAGEDIR}${DOCSDIR} |
38 |
${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${STAGEDIR}${DOCSDIR} |