2010-01-18 10:58:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2010/01/18 09:59:07 wiz Exp $
|
2005-02-16 23:17:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= rad3R6P1
|
|
|
|
PKGNAME= radiance-3.6.1
|
2010-01-18 10:58:37 +01:00
|
|
|
PKGREVISION= 6
|
2005-02-16 23:17:33 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.radiance-online.org/software/non-cvs/ \
|
|
|
|
http://www.radiance-online.org/software/
|
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}supp${EXTRACT_SUFX}
|
|
|
|
|
2009-03-17 22:40:44 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-02-16 23:17:33 +01:00
|
|
|
HOMEPAGE= http://www.radiance-online.org/
|
|
|
|
COMMENT= Physically-based, image-generating, backward raytracer
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= radiance-license
|
2005-02-16 23:17:33 +01:00
|
|
|
|
2007-05-28 22:35:38 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2008-05-27 00:37:30 +02:00
|
|
|
NOT_FOR_BULK_PLATFORM= HPUX-*-*
|
2007-05-28 22:35:38 +02:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2005-02-16 23:17:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/ray
|
|
|
|
|
|
|
|
PATCHEES= makeall ./src/rt/Rmakefile ./src/util/Rmakefile \
|
|
|
|
./src/ot/Rmakefile ./src/meta/Rmakefile \
|
|
|
|
./src/hd/Rmakefile ./src/gen/Rmakefile \
|
|
|
|
./src/cv/Rmakefile ./src/common/Rmakefile \
|
|
|
|
./src/cal/Rmakefile installib \
|
|
|
|
./src/cv/mgflib/Makefile ./src/meta/lib4014/Makefile \
|
|
|
|
./src/px/Rmakefile \
|
|
|
|
./src/px/tiff/contrib/acorn/Makefile \
|
|
|
|
./src/px/tiff/contrib/addtiffo/Makefile \
|
|
|
|
./src/px/tiff/contrib/iptcutil/Makefile
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= gl
|
|
|
|
|
2005-02-16 23:17:33 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
PKGSRC_ARCH= 9
|
|
|
|
.elif ${OPSYS} == "FreeBSD"
|
|
|
|
PKGSRC_ARCH= 8
|
2006-02-26 22:26:32 +01:00
|
|
|
.elif ${OPSYS} == "DragonFly"
|
|
|
|
PKGSRC_ARCH= 12
|
2005-02-18 04:51:07 +01:00
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
PKGSRC_ARCH= 6
|
2005-02-17 01:38:37 +01:00
|
|
|
.elif ${OPSYS} == "IRIX"
|
|
|
|
PKGSRC_ARCH= 3
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.gl= yes
|
2005-02-16 23:17:33 +01:00
|
|
|
.endif
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= MV=${MV:Q} RM=${RM:Q} CP=${CP:Q} \
|
|
|
|
INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} \
|
|
|
|
INSTALL_PROGRAM=${INSTALL_PROGRAM:Q} \
|
|
|
|
RANLIB=${RANLIB:Q} AR=${AR:Q}
|
2005-02-16 23:17:33 +01:00
|
|
|
|
2007-05-28 22:35:38 +02:00
|
|
|
DESTDIRPREFIX= ${DESTDIR}${PREFIX}
|
|
|
|
|
2005-02-16 23:17:33 +01:00
|
|
|
do-configure:
|
|
|
|
.for patchee in ${PATCHEES}
|
|
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
|
|
|
|
-e 's|@PKGSRC_ARCH@|${PKGSRC_ARCH}|g' \
|
|
|
|
-e 's|@WRKSRC@|${WRKSRC}|g' \
|
|
|
|
-e 's|@X11BASE@|${X11BASE}|g' \
|
|
|
|
-e 's|@MAKE@|${MAKE}|g' \
|
|
|
|
${WRKSRC}/${patchee} > ${WRKSRC}/${patchee}.tmp && \
|
|
|
|
${MV} ${WRKSRC}/${patchee}.tmp ${WRKSRC}/${patchee}
|
|
|
|
.endfor
|
2005-02-17 01:38:37 +01:00
|
|
|
${RM} ${WRKSRC}/lib/.gdb_history
|
2005-02-16 23:17:33 +01:00
|
|
|
|
|
|
|
do-build:
|
2009-04-29 07:15:14 +02:00
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${SH} ./makeall install
|
|
|
|
${RM} -f ${WRKSRC}/radiance/bin/wish*
|
2005-02-16 23:17:33 +01:00
|
|
|
|
|
|
|
do-install:
|
2007-05-28 22:35:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIRPREFIX:Q}/radiance
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/radiance && pax -rw -s '|.*/\.DS_Store||' . ${DESTDIRPREFIX:Q}/radiance/
|
2007-05-28 22:35:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIRPREFIX:Q}/radiance/obj
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/obj && pax -rw -s '|.*/\.DS_Store||' . ${DESTDIRPREFIX:Q}/radiance/obj/
|
2007-05-28 22:35:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIRPREFIX:Q}/radiance/lib
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/lib && pax -rw -s '|.*/\.DS_Store||' . ${DESTDIRPREFIX:Q}/radiance/lib/
|
2007-05-28 22:35:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIRPREFIX:Q}/radiance/man
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/doc/man && pax -rw -s '|.*/\.DS_Store||' . ${DESTDIRPREFIX:Q}/radiance/man/
|
2007-05-28 22:35:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIRPREFIX:Q}/share/doc/radiance
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/pdf/*.pdf \
|
|
|
|
${DESTDIRPREFIX:Q}/share/doc/radiance/
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIRPREFIX:Q}/share/doc/html/radiance
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ray.html \
|
|
|
|
${DESTDIRPREFIX:Q}/share/doc/radiance/index.html
|
2005-02-16 23:17:33 +01:00
|
|
|
|
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
2005-02-17 18:54:12 +01:00
|
|
|
.include "../../x11/tk/buildlink3.mk"
|
2005-02-16 23:17:33 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|