2008-04-25 15:37:52 +00:00
|
|
|
# New ports collection makefile for: structuresynth
|
|
|
|
# Date created: 06 Apr 2008
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= structuresynth
|
2008-06-18 23:59:12 +00:00
|
|
|
PORTVERSION= 0.8.0
|
2008-04-25 15:37:52 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF
|
|
|
|
DISTNAME= StructureSynth-Source-v${PORTVERSION}
|
|
|
|
|
2008-06-19 17:28:24 +00:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2008-04-25 15:37:52 +00:00
|
|
|
COMMENT= Rule-based 3D structure generator
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_QT_VER= 4
|
2008-06-18 23:59:12 +00:00
|
|
|
QT_COMPONENTS= qmake corelib gui opengl moc rcc xml
|
2008-04-25 15:37:52 +00:00
|
|
|
|
2008-06-18 23:59:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/structuresynth
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MV} ${WRKDIR}/"Structure Synth Source Code" ${WRKDIR}/structuresynth
|
2008-04-25 15:37:52 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|"Examples"|"${DATADIR}/Examples"|; \
|
|
|
|
s|"Misc"|"${DATADIR}/Misc"|' ${WRKSRC}/MainWindow.cpp
|
|
|
|
|
|
|
|
do-configure:
|
2008-06-18 23:59:12 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -project
|
|
|
|
@${ECHO_CMD} "QT+=opengl xml" >> ${WRKSRC}/structuresynth.pro
|
2008-04-25 15:37:52 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
|
2008-06-18 23:59:12 +00:00
|
|
|
-spec ${QMAKESPEC} structuresynth.pro
|
2008-04-25 15:37:52 +00:00
|
|
|
|
|
|
|
do-install:
|
2008-06-18 23:59:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/structuresynth ${PREFIX}/bin/${PORTNAME}
|
2008-04-25 15:37:52 +00:00
|
|
|
${MKDIR} ${DATADIR}/Examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Examples/*.es ${DATADIR}/Examples
|
|
|
|
${MKDIR} ${DATADIR}/Misc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Misc/* ${DATADIR}/Misc
|
|
|
|
|
2008-06-18 23:59:12 +00:00
|
|
|
.include <bsd.port.mk>
|