diff options
author | tijl <tijl@FreeBSD.org> | 2013-12-22 21:15:23 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2013-12-22 21:15:23 +0800 |
commit | 33cb899ab6cc89b95d27199a26b361730e7fe7ed (patch) | |
tree | 2ac4914a60aee0c4d2b745e5e2d552810e5aea51 /graphics/raster3d | |
parent | 8ad07569e2702dfa8f0d3206868e9c61c681ad26 (diff) | |
download | freebsd-ports-gnome-33cb899ab6cc89b95d27199a26b361730e7fe7ed.tar.gz freebsd-ports-gnome-33cb899ab6cc89b95d27199a26b361730e7fe7ed.tar.zst freebsd-ports-gnome-33cb899ab6cc89b95d27199a26b361730e7fe7ed.zip |
- New LIB_DEPENDS syntax.
- Fix IMAGEMAGICK option.
- USES=fortran.
- Staging.
Diffstat (limited to 'graphics/raster3d')
-rw-r--r-- | graphics/raster3d/Makefile | 56 | ||||
-rw-r--r-- | graphics/raster3d/pkg-plist | 12 |
2 files changed, 35 insertions, 33 deletions
diff --git a/graphics/raster3d/Makefile b/graphics/raster3d/Makefile index 97360b163b89..97698113d615 100644 --- a/graphics/raster3d/Makefile +++ b/graphics/raster3d/Makefile @@ -3,7 +3,7 @@ PORTNAME= raster3d PORTVERSION= 3.0.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics biology MASTER_SITES= http://skuld.bmsc.washington.edu/${PORTNAME}/ DISTNAME= Raster3D_${PORTVERSION:R}-${PORTVERSION:E} @@ -13,64 +13,54 @@ COMMENT= Set of tools for generating raster images of proteins and molecules LICENSE= ART20 -LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \ - tiff:${PORTSDIR}/graphics/tiff +LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \ + libtiff.so:${PORTSDIR}/graphics/tiff -OPTIONS_DEFINE= MAGICK DOCS EXAMPLES -OPTIONS_DEFAULT= MAGICK +OPTIONS_DEFINE= IMAGEMAGICK DOCS EXAMPLES +OPTIONS_DEFAULT=IMAGEMAGICK -USE_FORTRAN= yes +USES= fortran MAKE_ARGS= INCDIRS="-I${LOCALBASE}/include" LIBDIRS="-L${LOCALBASE}/lib" \ CC="${CC}" CFLAGS="${CFLAGS}" FC="${FC}" FFLAGS="${FFLAGS}" \ RM="${RM}" OS="${OPSYS}" ALL_TARGET= linux all MAKE_JOBS_UNSAFE= yes -MANL= avs2ps.l balls.l label3d.l r3d_objects.l r3dtops.l rastep.l \ - raster3d.l render.l ribbon.l rods.l normal3d.l stereo3d.l - CFLAGS+= -DLINUX -DNETWORKBYTEORDER -Dgfortran FFLAGS+= -fno-range-check -ffixed-line-length-132 -MAGICK_RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick -MAGICK_CFLAGS= -DIMAGEPIPE +IMAGEMAGICK_RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick OPTIONS_SUB= yes -NO_STAGE= yes -.include <bsd.port.pre.mk> +BROKEN_sparc64= Does not compile with GCC 4.2: internal compiler error -.if ${ARCH} == "sparc64" -BROKEN= Does not compile with GCC 4.2: internal compiler error -.endif +.include <bsd.port.options.mk> do-install: .for file in avs2ps balls normal3d rastep render ribbon rings3d rods - cd ${WRKSRC} && ${INSTALL_PROGRAM} ${file} ${PREFIX}/bin + cd ${WRKSRC} && ${INSTALL_PROGRAM} ${file} ${STAGEDIR}${PREFIX}/bin .endfor .for file in worms - cd ${WRKSRC} && ${INSTALL_SCRIPT} ${file} ${PREFIX}/bin + cd ${WRKSRC} && ${INSTALL_SCRIPT} ${file} ${STAGEDIR}${PREFIX}/bin .endfor .if ${PORT_OPTIONS:MIMAGEMAGICK} .for file in label3d stereo3d - cd ${WRKSRC} && ${INSTALL_SCRIPT} ${file} ${PREFIX}/bin + cd ${WRKSRC} && ${INSTALL_SCRIPT} ${file} ${STAGEDIR}${PREFIX}/bin .endfor .endif - cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MANL} ${MANLPREFIX}/man/manl - @${MKDIR} ${DATADIR}/materials - cd ${WRKSRC}/materials && ${INSTALL_DATA} * ${DATADIR}/materials + cd ${WRKSRC}/doc && ${INSTALL_MAN} *.l ${STAGEDIR}${MANLPREFIX}/man/manl + ${MKDIR} ${STAGEDIR}${DATADIR}/materials + cd ${WRKSRC}/materials && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/materials .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 + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${INSTALL_DATA} R3D_manual.pdf ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR}/html + cd ${WRKSRC}/html && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/html .endif .if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - @(cd ${WRKSRC}/examples && ${TAR} --exclude "CVS" -cf - . | \ - ${TAR} -C ${EXAMPLESDIR} --unlink -xf -) - @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} - @${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx - @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + ${RM} -rf ${STAGEDIR}${EXAMPLESDIR}/msms/CVS .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/graphics/raster3d/pkg-plist b/graphics/raster3d/pkg-plist index b33b7e1ca06b..0a81b9c20473 100644 --- a/graphics/raster3d/pkg-plist +++ b/graphics/raster3d/pkg-plist @@ -9,6 +9,18 @@ bin/normal3d %%IMAGEMAGICK%%bin/label3d %%IMAGEMAGICK%%bin/stereo3d bin/worms +man/manl/avs2ps.l.gz +man/manl/balls.l.gz +man/manl/label3d.l.gz +man/manl/r3d_objects.l.gz +man/manl/r3dtops.l.gz +man/manl/rastep.l.gz +man/manl/raster3d.l.gz +man/manl/render.l.gz +man/manl/ribbon.l.gz +man/manl/rods.l.gz +man/manl/normal3d.l.gz +man/manl/stereo3d.l.gz %%PORTDOCS%%%%DOCSDIR%%/R3D_manual.pdf %%PORTDOCS%%%%DOCSDIR%%/html/README %%PORTDOCS%%%%DOCSDIR%%/html/avs2ps.html |