1f40f3a084
alternative from mk/jpeg.buildlink3.mk This allows selection of an alternative jpeg library (namely the x86 MMX, SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and follows the current standard model for alternatives (fam, motif, fuse etc). The mechanical edits were applied via the following script: #!/bin/sh for d in */*; do [ -d "$d" ] || continue for i in "$d/"Makefile* "$d/"*.mk; do case "$i" in *.orig|*"*"*) continue;; esac out="$d/x" sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \ -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \ < "$i" > "$out" if cmp -s "$i" "$out"; then rm -f "$out" else echo "Edited $i" mv -f "$i" "$i.orig" && mv "$out" "$i" fi done done
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.46 2010/12/23 11:44:44 dsainty Exp $
|
|
|
|
DISTNAME= povray-3.6.1
|
|
PKGREVISION= 8
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.povray.org/ftp/pub/povray/Official/Unix/ \
|
|
ftp://ftp.povray.org/pub/povray/Official/Unix/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.povray.org/
|
|
COMMENT= Persistence of Vision Ray Tracer
|
|
LICENSE= povray-license
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.1
|
|
|
|
USE_LANGUAGES= c c++
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-optimiz
|
|
CONFIGURE_ARGS+= --enable-strip
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ENV+= COMPILED_BY="The NetBSD Packages Collection"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH} == x86_64
|
|
GCC_REQD+= 3.4
|
|
.endif
|
|
|
|
PLIST_SUBST+= POVRAY=povray-3.6
|
|
|
|
EGDIR= ${PREFIX}/share/examples/povray
|
|
CONF_FILES= ${EGDIR}/povray.conf ${PKG_SYSCONFDIR}/povray.conf
|
|
CONF_FILES+= ${EGDIR}/povray.ini ${PKG_SYSCONFDIR}/povray.ini
|
|
|
|
INSTALLATION_DIRS= share/povray-3.6/scripts
|
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
.include "../../x11/libSM/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|