aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/glew/Makefile
blob: cb1222028fa3372bbf2579d8f0933ebd5d608756 (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
# New ports collection makefile for: glew
# Date created:     29 Dec 2003
# Whom:         Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#

PORTNAME=   glew
PORTVERSION=    1.2.1
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   -src.tgz

MAINTAINER= tiamat@comset.net
COMMENT=    The OpenGL Extension Wrangler Library

USE_GMAKE=  yes
USE_X_PREFIX=   yes
USE_GL=     yes
INSTALLS_SHLIB= yes
WRKSRC=     ${WRKDIR}/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin

    ${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \
        ${PREFIX}/lib/libGLEW.so.1
    @${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${PREFIX}/lib/libGLEW.so
    ${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib

.for i in glew glxew
    ${INSTALL_DATA} ${WRKSRC}/include/GL/${i}.h ${PREFIX}/include/GL
.endfor

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/glew.css ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/glew.png ${DOCSDIR}
.endif

.include <bsd.port.mk>