aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-04-06 09:26:16 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-04-06 09:26:16 +0000
commitc312492f37b5ae8047bfaffaaf7dd609e156d1ee (patch)
tree92ca75a9cc732d3b12c219981ba5679c87741daf
parentead4dcd4b644c01f2ded7ddbd64de3c60eb72afa (diff)
downloadports-c312492f37b5ae8047bfaffaaf7dd609e156d1ee.tar.gz
ports-c312492f37b5ae8047bfaffaaf7dd609e156d1ee.zip
Notes
-rw-r--r--graphics/pvmpov/Makefile37
1 files changed, 17 insertions, 20 deletions
diff --git a/graphics/pvmpov/Makefile b/graphics/pvmpov/Makefile
index 631a4cfa01c6..0ac99e39968c 100644
--- a/graphics/pvmpov/Makefile
+++ b/graphics/pvmpov/Makefile
@@ -14,7 +14,7 @@ COMMENT= Distributed rendering package for Persistence of Vision Ray Tracer
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/povray31:configure \
aimk:${PORTSDIR}/net/pvm
-LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
RUN_DEPENDS= povray31:${PORTSDIR}/graphics/povray31 \
pvmd:${PORTSDIR}/net/pvm
@@ -26,33 +26,30 @@ WRKSRC= ${WRKDIR}/pvmpov3_1g_2
BUILDBASE= ${WRKSRC}/povray31/source/pvm
PVM_ROOT= ${LOCALBASE}/lib/pvm
-.if !defined(NOPORTDOCS)
-PORTDOCS= *
-.endif
-
PLIST_FILES= bin/x-pvmpov \
lib/pvm/bin/FREEBSD/x-pvmpov
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
pre-configure:
- @ (cd ${WRKDIRPREFIX}${.CURDIR}/../../graphics/povray31/work && \
- ${TAR} -c -f - povray31 ) \
- | (cd ${WRKSRC} && ${TAR} --unlink -x -f -)
- @ cd ${WRKSRC} && ${PATCH} -p0 -s < pvmpov.patch
- @${REINPLACE_CMD} -i '' -e 's|%LOCALBASE%|${LOCALBASE}|' \
+ @ (cd ${WRKDIRPREFIX}${.CURDIR}/../../graphics/povray31/work && \
+ ${TAR} -c -f - povray31 ) \
+ | (cd ${WRKSRC} && ${TAR} --unlink -x -f -)
+ @ cd ${WRKSRC} && ${PATCH} -p0 -s < pvmpov.patch
+ @${REINPLACE_CMD} -i '' -e 's|%LOCALBASE%|${LOCALBASE}|' \
+ -e '/^CC/ s|gcc|${CC}|' -e '/^CFLAGS/ s|-O6|${CXXFLAGS}|' \
${BUILDBASE}/Makefile.aimk
do-build:
- @ cd ${BUILDBASE} && \
- ${SETENV} PVM_ROOT=${PVM_ROOT} aimk newxwin
+ @cd ${BUILDBASE} && ${SETENV} PVM_ROOT=${PVM_ROOT} aimk newxwin
do-install:
- @ ${MKDIR} ${PVM_ROOT}/bin/FREEBSD
- @ ${INSTALL_PROGRAM} ${BUILDBASE}/FREEBSD/x-pvmpov ${PVM_ROOT}/bin/FREEBSD
- @ ${LN} -sf ${PVM_ROOT}/bin/FREEBSD/x-pvmpov ${PREFIX}/bin/x-pvmpov
-.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${DOCSDIR}
- @ ${INSTALL_DATA} ${WRKSRC}/doc/PVMPOV-HOWTO.html ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${PVM_ROOT}/bin/FREEBSD
+ ${INSTALL_PROGRAM} ${BUILDBASE}/FREEBSD/x-pvmpov \
+ ${STAGEDIR}${PVM_ROOT}/bin/FREEBSD
+ ${LN} -sf ${PVM_ROOT}/bin/FREEBSD/x-pvmpov ${STAGEDIR}${PREFIX}/bin/x-pvmpov
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/PVMPOV-HOWTO.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>