SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
68
graphics/povray/Makefile
Normal file
68
graphics/povray/Makefile
Normal file
|
@ -0,0 +1,68 @@
|
|||
COMMENT= 3D image rendering package
|
||||
|
||||
DISTNAME= povray-3.6.1
|
||||
REVISION = 11
|
||||
CATEGORIES= graphics
|
||||
|
||||
HOMEPAGE= http://www.povray.org/
|
||||
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += ICE SM X11 Xpm c jpeg m ${COMPILER_LIBCXX} tiff z
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
MASTER_SITES= \
|
||||
http://www.povray.org/ftp/pub/povray/Old-Versions/Official-3.62/Unix/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
# We replace the included ancient copy of libpng with a later release
|
||||
# from the 1.2 branch.
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
PNG_V= 1.2.57
|
||||
MASTER_SITES0= ${MASTER_SITE_SOURCEFORGE:=libpng/}
|
||||
DISTFILES= ${EXTRACT_ONLY} libpng-${PNG_V}.tar.gz:0
|
||||
|
||||
|
||||
LIB_DEPENDS= graphics/jpeg \
|
||||
graphics/tiff
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --with-x \
|
||||
--enable-watch-cursor \
|
||||
--disable-optimiz \
|
||||
--x-includes="${X11BASE}/include" \
|
||||
--includedir=${LOCALBASE}
|
||||
|
||||
# POV-Ray 3.6 is incompatible with libpng 1.5.
|
||||
CONFIGURE_ARGS+= ac_cv_search_png_get_libpng_ver=no
|
||||
CONFIGURE_ENV+= COMPILED_BY="OpenBSD Ports <ports@openbsd.org>" \
|
||||
CPPFLAGS="-I${LOCALBASE}/include -DPNG_NO_MMX_CODE" \
|
||||
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/
|
||||
|
||||
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config ${WRKSRC}/libraries/png
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
# Replace the source files for the included libpng.
|
||||
post-extract:
|
||||
cd ${WRKDIST}/libraries; \
|
||||
tar -xzf ${FULLDISTDIR}/libpng-${PNG_V}.tar.gz \
|
||||
-s ',^libpng-${PNG_V},png,' 'libpng-${PNG_V}/png*.[ch]'
|
||||
|
||||
pre-patch:
|
||||
cd ${WRKSRC} && find . -type f -name \*.orig -delete
|
||||
|
||||
post-configure:
|
||||
sed -i '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
|
||||
|
||||
.include <bsd.port.mk>
|
Loading…
Add table
Add a link
Reference in a new issue