2018-03-12 12:15:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.44 2018/03/12 11:16:49 wiz Exp $
|
2005-02-16 23:17:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= rad3R6P1
|
|
|
|
PKGNAME= radiance-3.6.1
|
2018-03-12 12:15:24 +01:00
|
|
|
PKGREVISION= 17
|
2005-02-16 23:17:33 +01:00
|
|
|
CATEGORIES= graphics
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= http://www.radiance-online.org/software/non-cvs/
|
|
|
|
MASTER_SITES+= http://www.radiance-online.org/software/
|
2005-02-16 23:17:33 +01:00
|
|
|
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
|
|
|
|
2011-07-21 07:53:23 +02:00
|
|
|
USE_TOOLS+= pax csh:run
|
2008-05-26 04:13:14 +02:00
|
|
|
|
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
|
|
|
|
|
2012-02-06 07:19:17 +01:00
|
|
|
REPLACE_CSH= src/cal/cal/colorcal.csh src/cal/cal/illumcal.csh
|
|
|
|
REPLACE_CSH+= src/cal/cal/reinhard.csh src/gen/genwindow.csh
|
|
|
|
REPLACE_CSH+= src/gen/genbackg.csh src/gen/genpine.csh
|
|
|
|
REPLACE_CSH+= src/gen/glaze.csh src/gen/markpath.csh
|
|
|
|
REPLACE_CSH+= src/px/falsecolor.csh src/px/normpat.csh
|
|
|
|
REPLACE_CSH+= src/px/pacuity.csh src/px/pbilat.csh src/px/pdelta.csh
|
|
|
|
REPLACE_CSH+= src/px/pdfblur.csh src/px/pgblur.csh src/px/phisteq.csh
|
|
|
|
REPLACE_CSH+= src/px/phisto.csh src/px/pmblur.csh src/px/psquish.csh
|
|
|
|
REPLACE_CSH+= src/px/pveil.csh src/px/vlpic.csh src/px/xyzimage.csh
|
|
|
|
REPLACE_CSH+= src/util/compamb.csh src/util/dayfact.csh
|
|
|
|
REPLACE_CSH+= src/util/debugcal.csh src/util/genambpos.csh
|
|
|
|
REPLACE_CSH+= src/util/help2roff.csh src/util/glare.csh
|
|
|
|
REPLACE_CSH+= src/util/ivpict.csh src/util/ivprep.csh
|
|
|
|
REPLACE_CSH+= src/util/objline.csh src/util/objpict.csh
|
|
|
|
REPLACE_CSH+= src/util/objview.csh src/util/raddepend.csh
|
|
|
|
REPLACE_CSH+= src/util/rlux.csh src/util/tradinstall.csh
|
|
|
|
REPLACE_CSH+= src/util/vinfo.csh
|
|
|
|
REPLACE_CSH+= obj/cabin/anim1/script obj/cabin/anim1/script2
|
|
|
|
REPLACE_CSH+= obj/cabin/runscript.csh
|
|
|
|
REPLACE_CSH+= obj/office/anim.csh obj/office/anim2.csh
|
2011-07-21 07:53:23 +02:00
|
|
|
|
2005-02-16 23:17:33 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= gl
|
|
|
|
|
2015-10-18 00:23:25 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Bitrig"
|
2005-02-16 23:17:33 +01:00
|
|
|
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
|
2012-04-13 07:16:18 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
|
|
|
PKGSRC_ARCH= 1
|
2014-06-29 06:16:51 +02:00
|
|
|
.elif ${OPSYS} == "Darwin"
|
|
|
|
PKGSRC_ARCH= 7
|
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
|
2012-04-07 15:12:10 +02:00
|
|
|
cd ${WRKSRC}/doc/man && pax -rw -s '|.*/cat.*/.*||' -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"
|