# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= structuresynth PORTVERSION= 1.5.0 PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/Structure%20Synth/Version%201.5%20%28Hinxton%29 DISTNAME= StructureSynth-Source-v${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Rule-based 3D structure generator DEPRECATED= Qt4 has been EOL since december 2015 EXPIRATION_DATE= 2019-03-15 USES= qmake qt:4 zip dos2unix USE_GL= glu USE_QT= corelib gui opengl moc_build rcc_build xml script WRKSRC= ${WRKDIR}/structure-synth DOS2UNIX_GLOB= *.cpp *.h PLIST_FILES= bin/structure-synth \ share/applications/structure-synth.desktop \ share/pixmaps/structure-synth.png PORTDATA= * post-extract: @${MV} "${WRKDIR}/Structure Synth Source Code" ${WRKSRC} @${RM} -r ${WRKSRC}/Examples/DontDeploy post-patch: @${REINPLACE_CMD} -e '/examplesDir/ s|"Examples"|"${DATADIR}/Examples"|; \ /miscDir/ s|"Misc"|"${DATADIR}/Misc"|' \ ${WRKSRC}/StructureSynth/GUI/MainWindow.cpp pre-configure: @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -project \ -after "CONFIG+=opengl" -after "QT+=xml opengl script" \ -after "LIBS+=-lGLU" do-install: ${INSTALL_PROGRAM} ${WRKSRC}/structure-synth ${STAGEDIR}${PREFIX}/bin/ cd ${WRKSRC} && ${COPYTREE_SHARE} "Examples Misc" ${STAGEDIR}${DATADIR}/ ${INSTALL_DATA} ${WRKSRC}/structure-synth.desktop \ ${STAGEDIR}${PREFIX}/share/applications/ ${INSTALL_DATA} ${WRKSRC}/images/fileicons/StructureSynth-256.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/structure-synth.png .include