1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/graphics/structuresynth/Makefile

50 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: structuresynth
# Date created: 06 Apr 2008
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= structuresynth
2010-12-30 22:18:32 +00:00
PORTVERSION= 1.5.0
2012-06-01 05:26:28 +00:00
PORTREVISION= 2
CATEGORIES= graphics
2010-12-30 22:18:32 +00: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
USE_GL= glu
USE_ZIP= yes
USE_QT4= qmake_build corelib gui opengl moc_build rcc_build xml script
2009-08-07 17:37:55 +00:00
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/structure-synth
post-extract:
2009-08-07 17:37:55 +00:00
@${MV} "${WRKDIR}/Structure Synth Source Code" ${WRKSRC}
@${RM} -rf ${WRKSRC}/Examples/DontDeploy
post-patch:
2009-01-30 15:18:31 +00:00
@${REINPLACE_CMD} -e '/examplesDir/ s|"Examples"|"${DATADIR}/Examples"|; \
/miscDir/ s|"Misc"|"${DATADIR}/Misc"|' \
${WRKSRC}/StructureSynth/GUI/MainWindow.cpp
do-configure:
2009-08-07 17:37:55 +00:00
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -project \
-after "CONFIG+=opengl" -after "QT+=xml opengl script" \
-after "LIBS+=-lGLU"
2009-08-07 17:37:55 +00:00
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS}
do-install:
2009-08-07 17:37:55 +00:00
${INSTALL_PROGRAM} ${WRKSRC}/structure-synth ${PREFIX}/bin/
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "Examples Misc" ${DATADIR}/
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/structure-synth.desktop \
${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/images/fileicons/StructureSynth-256.png \
${PREFIX}/share/pixmaps/structure-synth.png
.include <bsd.port.mk>