1 # Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
4 PORTNAME= structuresynth
8 MASTER_SITES= SF/${PORTNAME}/Structure%20Synth/Version%201.5%20%28Hinxton%29
9 DISTNAME= StructureSynth-Source-v${PORTVERSION}
11 MAINTAINER= amdmi3@FreeBSD.org
12 COMMENT= Rule-based 3D structure generator
14 USES= qmake zip dos2unix
16 USE_QT4= corelib gui opengl moc_build rcc_build xml script
17 WRKSRC= ${WRKDIR}/structure-synth
18 DOS2UNIX_GLOB= *.cpp *.h
21 @${MV} "${WRKDIR}/Structure Synth Source Code" ${WRKSRC}
22 @${RM} -rf ${WRKSRC}/Examples/DontDeploy
25 @${REINPLACE_CMD} -e '/examplesDir/ s|"Examples"|"${DATADIR}/Examples"|; \
26 /miscDir/ s|"Misc"|"${DATADIR}/Misc"|' \
27 ${WRKSRC}/StructureSynth/GUI/MainWindow.cpp
30 @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -project \
31 -after "CONFIG+=opengl" -after "QT+=xml opengl script" \
35 ${INSTALL_PROGRAM} ${WRKSRC}/structure-synth ${STAGEDIR}${PREFIX}/bin/
36 cd ${WRKSRC} && ${COPYTREE_SHARE} "Examples Misc" ${STAGEDIR}${DATADIR}/
37 ${INSTALL_DATA} ${WRKSRC}/structure-synth.desktop \
38 ${STAGEDIR}${PREFIX}/share/applications/
39 ${INSTALL_DATA} ${WRKSRC}/images/fileicons/StructureSynth-256.png \
40 ${STAGEDIR}${PREFIX}/share/pixmaps/structure-synth.png
42 .include <bsd.port.mk>