1 # Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
2 # $FreeBSD: graphics/structuresynth/Makefile 324744 2013-08-14 22:35:50Z ak $
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
16 USE_QT4= qmake_build corelib gui opengl moc_build rcc_build xml script
17 WRKSRC= ${WRKDIR}/structure-synth
18 USE_DOS2UNIX= *.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" \
33 @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS}
36 ${INSTALL_PROGRAM} ${WRKSRC}/structure-synth ${PREFIX}/bin/
38 cd ${WRKSRC} && ${COPYTREE_SHARE} "Examples Misc" ${DATADIR}/
39 ${MKDIR} ${PREFIX}/share/applications
40 ${INSTALL_DATA} ${WRKSRC}/structure-synth.desktop \
41 ${PREFIX}/share/applications/
42 ${INSTALL_DATA} ${WRKSRC}/images/fileicons/StructureSynth-256.png \
43 ${PREFIX}/share/pixmaps/structure-synth.png
45 .include <bsd.port.mk>