blob: 51851b2796ee03f6291951f0b7d6c1b870197b91 (
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
55
|
# New ports collection makefile for: fracplanet
# Date created: 15 Sep 2005
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= fracplanet
PORTVERSION= 0.3.3
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= An interactive generator of planets and terrain
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake \
bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= boost_program_options.4:${PORTSDIR}/devel/boost
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_QT_VER= 3
USE_GL= glu
USE_GMAKE= yes
MAKE_ENV= QTDIR="${QT_PREFIX}" \
QMAKESPEC="${QMAKESPEC}" \
VERSION_NUMBER="${PORTVERSION}"
MAN1= ${PORTNAME}.1
PORTDOCS= ${PORTNAME}.css ${PORTNAME}.htm
PLIST_FILES= bin/${PORTNAME}
BASH?= ${LOCALBASE}/bin/bash
QMAKE?= ${LOCALBASE}/bin/qmake
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
post-patch:
.for file in VERSION configure
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!${BASH}|g' ${WRKSRC}/${file}
.endfor
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${BASH} ./configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|