aboutsummaryrefslogtreecommitdiff
path: root/graphics/raster3d/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 21:42:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 21:42:32 +0000
commit9010280b855a8f663dc0899ba61ab950e6b515da (patch)
treeade0e2be591e771231576c7a69bfc8a5cf0bc252 /graphics/raster3d/Makefile
parent06a3e062ca8655d412fd71bf237d2cbcb5d17726 (diff)
downloadports-9010280b855a8f663dc0899ba61ab950e6b515da.tar.gz
ports-9010280b855a8f663dc0899ba61ab950e6b515da.zip
Notes
Diffstat (limited to 'graphics/raster3d/Makefile')
-rw-r--r--graphics/raster3d/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/graphics/raster3d/Makefile b/graphics/raster3d/Makefile
index f0fcc3ec5402..649ee82bc874 100644
--- a/graphics/raster3d/Makefile
+++ b/graphics/raster3d/Makefile
@@ -20,7 +20,8 @@ LICENSE= ART20
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
tiff.4:${PORTSDIR}/graphics/tiff
-OPTIONS= IMAGEMAGICK "ImageMagick graphics support" on
+OPTIONS_DEFINE= MAGICK DOCS EXAMPLES
+OPTIONS_DEFAULT= MAGICK
USE_FORTRAN= yes
MAKE_ARGS= INCDIRS="-I${LOCALBASE}/include" LIBDIRS="-L${LOCALBASE}/lib" \
@@ -41,12 +42,12 @@ FFLAGS+= -fno-range-check -ffixed-line-length-132
BROKEN= Does not compile with GCC 4.2: internal compiler error
.endif
-.if defined(WITHOUT_IMAGEMAGICK)
-PLIST_SUB+= IMAGEMAGICK="@comment "
-.else
+.if ${PORT_OPTIONS:MMAGiCK}
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick
CFLAGS+= -DIMAGEPIPE
PLIST_SUB+= IMAGEMAGICK=""
+.else
+PLIST_SUB+= IMAGEMAGICK="@comment "
.endif
do-install:
@@ -56,7 +57,7 @@ do-install:
.for file in worms
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${file} ${PREFIX}/bin
.endfor
-.if !defined(WITHOUT_IMAGEMAGICK)
+.if ${PORT_OPTIONS:MIMAGEMAGICK}
.for file in label3d stereo3d
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${file} ${PREFIX}/bin
.endfor
@@ -64,13 +65,13 @@ do-install:
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MANL} ${MANLPREFIX}/man/manl
@${MKDIR} ${DATADIR}/materials
cd ${WRKSRC}/materials && ${INSTALL_DATA} * ${DATADIR}/materials
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} R3D_manual.pdf ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/html
cd ${WRKSRC}/html && ${INSTALL_DATA} * ${DOCSDIR}/html
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${TAR} --exclude "CVS" -cf - . | \
${TAR} -C ${EXAMPLESDIR} --unlink -xf -)