Update graphics/structuresynth to version 1.5.0_3
[dports.git] / graphics / structuresynth / Makefile
1 # Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
2 # $FreeBSD$
3
4 PORTNAME=       structuresynth
5 PORTVERSION=    1.5.0
6 PORTREVISION=   3
7 CATEGORIES=     graphics
8 MASTER_SITES=   SF/${PORTNAME}/Structure%20Synth/Version%201.5%20%28Hinxton%29
9 DISTNAME=       StructureSynth-Source-v${PORTVERSION}
10
11 MAINTAINER=     amdmi3@FreeBSD.org
12 COMMENT=        Rule-based 3D structure generator
13
14 USES=           qmake zip dos2unix
15 USE_GL=         glu
16 USE_QT4=        corelib gui opengl moc_build rcc_build xml script
17 WRKSRC=         ${WRKDIR}/structure-synth
18 DOS2UNIX_GLOB=  *.cpp *.h
19
20 post-extract:
21         @${MV} "${WRKDIR}/Structure Synth Source Code" ${WRKSRC}
22         @${RM} -rf ${WRKSRC}/Examples/DontDeploy
23
24 post-patch:
25         @${REINPLACE_CMD} -e '/examplesDir/ s|"Examples"|"${DATADIR}/Examples"|; \
26                 /miscDir/ s|"Misc"|"${DATADIR}/Misc"|' \
27                 ${WRKSRC}/StructureSynth/GUI/MainWindow.cpp
28
29 pre-configure:
30         @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -project \
31                 -after "CONFIG+=opengl" -after "QT+=xml opengl script" \
32                 -after "LIBS+=-lGLU"
33
34 do-install:
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
41
42 .include <bsd.port.mk>