aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/fracplanet/Makefile
blob: c374a02bbba836689c740a3cbe8ef02212a9955c (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
52
53
54
# New ports collection makefile for: fracplanet
# Date created:     15 Sep 2005
# Whom:         Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#

PORTNAME=   fracplanet
PORTVERSION=    0.2.0
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ip@doom.homeunix.org
COMMENT=    An interactive generator of planets and terrain

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

USE_REINPLACE=  yes
USE_GL=     yes
USE_QT_VER= 3
USE_X_PREFIX=   yes
MAKE_ENV=   QTDIR="${X11BASE}" QMAKESPEC="${QMAKESPEC}" VERSION_NUMBER="${PORTVERSION}"
WRKSRC=     ${WRKDIR}/${PORTNAME}

QMAKE?=     ${LOCALBASE}/bin/qmake
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++

PLIST_FILES=    bin/${PORTNAME}
PORTDOCS=   fracplanet.htm fracplanet.css

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     "Does not build on FreeBSD 4.x"
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g' \
        ${WRKSRC}/${PORTNAME}.pro

do-configure:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE}

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

.ifndef (NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>