aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/glexcess/Makefile
blob: c72a68234e2a1cc51bc68ff747b4cc3761b0c5a7 (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
# New ports collection makefile for:    glexcess
# Date created:         1 September 2006
# Whom:             Hernan Di Pietro <hernan.di.pietro@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   glexcess
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://www.glexcess.com/files/
DISTNAME=   ${PORTNAME}

MAINTAINER= hernan.di.pietro@gmail.com
COMMENT=    An impressive OpenGL Demo

LIB_DEPENDS=    glut:${PORTSDIR}/graphics/libglut

USE_X_PREFIX=   yes
USE_GL=     yes

MAKE_ARGS=  'CXXFLAGS=${CXXFLAGS} -I${X11BASE}/include -pipe -s -O2' \
        'LDFLAGS=-L${X11BASE}/lib -lGL -lglut'

post-patch:
    @${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/scene*.cpp
    @${REINPLACE_CMD} -e 's|k_InitGL(GLvoid)|k_InitGL(void)|' ${WRKSRC}/scene12.cpp
    @${REINPLACE_CMD} -e 's|Load(char\*|Load(const char* |g' ${WRKSRC}/Texture.*
    @${REINPLACE_CMD} -e 's|Create(char\*|Create(const char* |g' ${WRKSRC}/Texture.*

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/glxs ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/data/*.raw ${DATADIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>