freebsd-ports/graphics/structuresynth/Makefile

44 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= structuresynth
2010-12-30 23:18:32 +01:00
PORTVERSION= 1.5.0
2012-06-01 07:26:28 +02:00
PORTREVISION= 2
CATEGORIES= graphics
2010-12-30 23:18:32 +01:00
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
USES= qmake
USE_GL= glu
USE_ZIP= yes
USE_QT4= corelib gui opengl moc_build rcc_build xml script
2009-08-07 19:37:55 +02:00
WRKSRC= ${WRKDIR}/structure-synth
USE_DOS2UNIX= *.cpp *.h
post-extract:
2009-08-07 19:37:55 +02:00
@${MV} "${WRKDIR}/Structure Synth Source Code" ${WRKSRC}
@${RM} -rf ${WRKSRC}/Examples/DontDeploy
post-patch:
2009-01-30 16:18:31 +01:00
@${REINPLACE_CMD} -e '/examplesDir/ s|"Examples"|"${DATADIR}/Examples"|; \
/miscDir/ s|"Misc"|"${DATADIR}/Misc"|' \
${WRKSRC}/StructureSynth/GUI/MainWindow.cpp
pre-configure:
2009-08-07 19:37:55 +02:00
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -project \
-after "CONFIG+=opengl" -after "QT+=xml opengl script" \
-after "LIBS+=-lGLU"
do-install:
2013-10-19 05:00:27 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/structure-synth ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} "Examples Misc" ${STAGEDIR}${DATADIR}/
2009-08-07 19:37:55 +02:00
${INSTALL_DATA} ${WRKSRC}/structure-synth.desktop \
2013-10-19 05:00:27 +02:00
${STAGEDIR}${PREFIX}/share/applications/
2009-08-07 19:37:55 +02:00
${INSTALL_DATA} ${WRKSRC}/images/fileicons/StructureSynth-256.png \
2013-10-19 05:00:27 +02:00
${STAGEDIR}${PREFIX}/share/pixmaps/structure-synth.png
.include <bsd.port.mk>