openbsd-ports/graphics/povray/Makefile

77 lines
2.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.10 2006/11/04 19:19:15 kili Exp $
2001-08-09 18:27:06 -04:00
COMMENT= "3D image rendering package"
DISTNAME= povray-3.1g
2001-08-09 18:27:06 -04:00
CATEGORIES= graphics
HOMEPAGE= http://www.povray.org
2002-05-08 13:06:05 -04:00
MAINTAINER= Bruno Rohee <rohee@openbsd.org>
2001-08-09 18:27:06 -04:00
PERMIT_PACKAGE_CDROM= Perhaps we qualify for commercial distribution
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Our CDs are not too expensive, see povlegal.doc but I think we should ask them anyway
PERMIT_DISTFILES_FTP= Yes
2004-11-29 20:06:33 -05:00
WANTLIB= c m z
2001-08-09 18:27:06 -04:00
2002-12-18 17:45:12 -05:00
MASTER_SITES= ftp://mirror.nucba.ac.jp/mirror/povray/Old-Versions/Official-3.1g/Unix/ \
ftp://ftp.povray.org/pub/povray/Old-Versions/Official-3.1g/Unix/
2001-08-09 18:27:06 -04:00
DISTFILES= povuni_s.tgz povuni_d.tgz
DIST_SUBDIR= ${DISTNAME}
2001-08-09 18:27:06 -04:00
2006-08-03 08:53:18 -04:00
LIB_DEPENDS= png.>=2.::graphics/png
2001-08-09 18:27:06 -04:00
FLAVORS= no_x11
FLAVOR?=
MAKE_FILE= makefile
WRKDIST= ${WRKDIR}/povray31/source/unix
.if !${FLAVOR:L:Mno_x11}
ALL_TARGET= newxwin
USE_X11= Yes
2004-11-29 20:06:33 -05:00
WANTLIB+= X11
2001-08-09 18:27:06 -04:00
.endif
ALL_TARGET+= newunix
pre-configure:
2001-08-09 18:27:06 -04:00
@perl -i -p -e "s#/usr/local/lib#${PREFIX}/share#" ${WRKDIR}/povray31/povray.ini
2002-10-26 20:03:16 -04:00
NO_REGRESS= Yes
2001-08-09 18:27:06 -04:00
do-install:
${INSTALL_PROGRAM} ${WRKDIST}/povray ${PREFIX}/bin
.if !${FLAVOR:L:Mno_x11}
${INSTALL_PROGRAM} ${WRKDIST}/x-povray ${PREFIX}/bin
.endif
${INSTALL_MAN} ${WRKDIST}/povray.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/povray31
cp -R ${WRKDIR}/povray31/allscene ${WRKDIR}/povray31/include \
${WRKDIR}/povray31/scenes ${PREFIX}/share/povray31
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/povray31
find ${PREFIX}/share/povray31 -type d | xargs chmod ${DIRMODE}
find ${PREFIX}/share/povray31 -type f | xargs chmod ${SHAREMODE}
${INSTALL_DATA} ${WRKDIR}/povray31/allscene.ini \
${WRKDIR}/povray31/allscene.sh ${WRKDIR}/povray31/pngflc.ini \
${WRKDIR}/povray31/pngfli.ini ${WRKDIR}/povray31/povray.ini \
${WRKDIR}/povray31/rerunpov.sh ${WRKDIR}/povray31/res.ini \
${WRKDIR}/povray31/res120.ini ${WRKDIR}/povray31/res1k.ini \
${WRKDIR}/povray31/res320.ini ${WRKDIR}/povray31/res640.ini \
${WRKDIR}/povray31/res800.ini ${WRKDIR}/povray31/runpov.sh \
${WRKDIR}/povray31/shapes.pov ${WRKDIR}/povray31/slow.ini \
${WRKDIR}/povray31/tgaflc.ini ${WRKDIR}/povray31/tgafli.ini \
${WRKDIR}/povray31/xpovicon.xpm ${WRKDIR}/povray31/zipflc.ini \
${WRKDIR}/povray31/zipfli.ini ${PREFIX}/share/povray31
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/povray31
${INSTALL_DATA} ${WRKDIR}/povray31/README.unix \
${WRKDIR}/povray31/betanews.txt ${WRKDIR}/povray31/gamma.gif \
${WRKDIR}/povray31/gamma.gif.txt \
${WRKDIR}/povray31/povlegal.doc \
${WRKDIR}/povray31/povuser.txt \
${WRKDIR}/povray31/povwhere.get\
${WRKDIR}/povray31/revision.doc ${PREFIX}/share/doc/povray31
.include <bsd.port.mk>