blob: 05c52eca9bef5d59153a6a44cdfea2470ff61b07 (
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: structuresynth
# Date created: 06 Apr 2008
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= structuresynth
PORTVERSION= 0.8.5
CATEGORIES= graphics
MASTER_SITES= SF
DISTNAME= StructureSynth-Source-v${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Rule-based 3D structure generator
USE_ZIP= yes
USE_QT_VER= 4
QT_COMPONENTS= qmake_build corelib gui opengl moc_build rcc_build xml
WRKSRC= ${WRKDIR}/structuresynth
post-extract:
${MV} ${WRKDIR}/"Structure Synth Source" ${WRKDIR}/structuresynth
post-patch:
@${REINPLACE_CMD} -e 's|"Examples"|"${DATADIR}/Examples"|; \
s|"Misc"|"${DATADIR}/Misc"|' ${WRKSRC}/MainWindow.cpp
do-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -project
@${ECHO_CMD} "QT+=opengl xml" >> ${WRKSRC}/structuresynth.pro
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
-spec ${QMAKESPEC} structuresynth.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/structuresynth ${PREFIX}/bin/${PORTNAME}
${MKDIR} ${DATADIR}/Examples
${INSTALL_DATA} ${WRKSRC}/Examples/*.es ${DATADIR}/Examples
${MKDIR} ${DATADIR}/Misc
${INSTALL_DATA} ${WRKSRC}/Misc/* ${DATADIR}/Misc
.include <bsd.port.mk>
|