mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
c312492f37
- Add staging support - Convert to new LIB_DEPENDS format - Define DOCS option MFH: 2014Q2
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pvmpov
|
|
PORTVERSION= 3.1g.2
|
|
PORTREVISION= 5
|
|
CATEGORIES= graphics parallel
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-3.1g2.tgz
|
|
DISTNAME= ${PORTNAME}-3.1g2
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Distributed rendering package for Persistence of Vision Ray Tracer
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/povray31:configure \
|
|
aimk:${PORTSDIR}/net/pvm
|
|
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
|
|
RUN_DEPENDS= povray31:${PORTSDIR}/graphics/povray31 \
|
|
pvmd:${PORTSDIR}/net/pvm
|
|
|
|
USES= perl5
|
|
USE_PERL5= build
|
|
USE_XORG= x11
|
|
|
|
WRKSRC= ${WRKDIR}/pvmpov3_1g_2
|
|
BUILDBASE= ${WRKSRC}/povray31/source/pvm
|
|
PVM_ROOT= ${LOCALBASE}/lib/pvm
|
|
|
|
PLIST_FILES= bin/x-pvmpov \
|
|
lib/pvm/bin/FREEBSD/x-pvmpov
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
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}|' \
|
|
-e '/^CC/ s|gcc|${CC}|' -e '/^CFLAGS/ s|-O6|${CXXFLAGS}|' \
|
|
${BUILDBASE}/Makefile.aimk
|
|
|
|
do-build:
|
|
@cd ${BUILDBASE} && ${SETENV} PVM_ROOT=${PVM_ROOT} aimk newxwin
|
|
|
|
do-install:
|
|
@${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>
|