2012-03-30 15:57:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.24 2012/03/30 19:57:16 naddy Exp $
|
2001-08-09 18:27:06 -04:00
|
|
|
|
2011-07-07 09:45:15 -04:00
|
|
|
COMMENT= 3D image rendering package
|
2001-08-09 18:27:06 -04:00
|
|
|
|
2011-07-07 10:45:22 -04:00
|
|
|
DISTNAME= povray-3.6.1
|
2012-03-30 15:57:16 -04:00
|
|
|
REVISION= 4
|
2011-07-07 09:45:15 -04:00
|
|
|
CATEGORIES= graphics
|
2001-08-09 18:27:06 -04:00
|
|
|
|
2011-07-07 10:45:22 -04:00
|
|
|
HOMEPAGE= http://www.povray.org/
|
2001-08-09 18:27:06 -04:00
|
|
|
|
2011-07-07 09:45:15 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Perhaps we qualify for commercial distribution
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2011-07-07 10:45:22 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Our CDs are not too expensive, see povlegal.doc but I think we should ask them anyway
|
2011-07-07 09:45:15 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2001-08-09 18:27:06 -04:00
|
|
|
|
2011-07-07 10:45:22 -04:00
|
|
|
WANTLIB += ICE SM X11 Xpm c jpeg m stdc++ tiff z
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.povray.org/ftp/pub/povray/Official/Unix/ \
|
|
|
|
ftp://ftp.povray.org/pub/povray/Official/Unix/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2011-07-17 09:32:37 -04:00
|
|
|
|
|
|
|
# We replace the included ancient copy of libpng with a later release
|
|
|
|
# from the 1.2 branch.
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2012-03-30 15:57:16 -04:00
|
|
|
PNG_V= 1.2.49
|
2011-07-17 09:32:37 -04:00
|
|
|
MASTER_SITES0= ${MASTER_SITE_SOURCEFORGE:=libpng/}
|
|
|
|
DISTFILES= ${EXTRACT_ONLY} libpng-${PNG_V}.tar.gz:0
|
|
|
|
|
2011-07-07 10:45:22 -04:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
|
|
|
LIB_DEPENDS= graphics/jpeg \
|
|
|
|
graphics/tiff
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--with-x \
|
|
|
|
--enable-watch-cursor \
|
|
|
|
--disable-optimiz \
|
|
|
|
--x-includes="${X11BASE}/include" \
|
|
|
|
--includedir=${LOCALBASE}
|
2011-07-07 13:46:11 -04:00
|
|
|
|
|
|
|
# POV-Ray 3.6 is incompatible with libpng 1.5.
|
|
|
|
# We do not add -I${LOCALBASE}/include/libpng on purpose, so the
|
|
|
|
# included libpng 1.2 will be used.
|
|
|
|
|
2011-07-07 10:45:22 -04:00
|
|
|
CONFIGURE_ENV+= COMPILED_BY="OpenBSD Ports <ports@openbsd.org>" \
|
2011-07-17 09:32:37 -04:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -DPNG_NO_MMX_CODE" \
|
2011-07-07 10:45:22 -04:00
|
|
|
CXXFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lm"
|
|
|
|
|
|
|
|
MAKE_FLAGS+= povconfdir=${PREFIX}/share/examples/povray/ \
|
|
|
|
povdocdir=${PREFIX}/share/doc/povray/ \
|
|
|
|
povlibdir=${PREFIX}/share/povray/
|
|
|
|
|
2011-07-17 09:32:37 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config ${WRKSRC}/libraries/png
|
|
|
|
|
2011-07-07 10:45:22 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2011-07-17 09:32:37 -04:00
|
|
|
# Replace the source files for the included libpng.
|
2011-07-07 10:45:22 -04:00
|
|
|
post-extract:
|
2011-07-17 09:32:37 -04:00
|
|
|
cd ${WRKDIST}/libraries; \
|
|
|
|
tar -xzf ${FULLDISTDIR}/libpng-${PNG_V}.tar.gz \
|
|
|
|
-s ',^libpng-${PNG_V},png,' 'libpng-${PNG_V}/png*.[ch]'
|
|
|
|
|
|
|
|
pre-patch:
|
2011-07-07 10:45:22 -04:00
|
|
|
cd ${WRKSRC} && find . -type f -name \*.orig | xargs rm
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
perl -pi -e 's,%INSTALLDIR%,${PREFIX}/share/povray/,g' \
|
|
|
|
${WRKSRC}/povray.conf
|
|
|
|
.for f in povray.1 scripts/allanim.sh scripts/allscene.sh scripts/portfolio.sh
|
|
|
|
${SUBST_CMD} ${WRKSRC}/$f
|
|
|
|
.endfor
|
2001-08-09 18:27:06 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|