aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tiff
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-11-15 01:14:33 +0800
committerdinoex <dinoex@FreeBSD.org>2013-11-15 01:14:33 +0800
commit16c0444eaa36ebec497b4b4e96a666156548d7b5 (patch)
tree3a6bcff313b4fe7a20987e2860162a54c256c848 /graphics/tiff
parent6f699c1e78f7ad504accf6f1c0b66fe7c4eaa04e (diff)
downloadfreebsd-ports-gnome-16c0444eaa36ebec497b4b4e96a666156548d7b5.tar.gz
freebsd-ports-gnome-16c0444eaa36ebec497b4b4e96a666156548d7b5.tar.zst
freebsd-ports-gnome-16c0444eaa36ebec497b4b4e96a666156548d7b5.zip
- use STAGEDIR
Diffstat (limited to 'graphics/tiff')
-rw-r--r--graphics/tiff/Makefile72
-rw-r--r--graphics/tiff/pkg-plist127
2 files changed, 159 insertions, 40 deletions
diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile
index ab5697a8fddd..3037834c1b8c 100644
--- a/graphics/tiff/Makefile
+++ b/graphics/tiff/Makefile
@@ -13,46 +13,14 @@ COMMENT= Tools and library routines for working with TIFF images
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
- jbig:${PORTSDIR}/graphics/jbigkit
-
-NO_STAGE= yes
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libjbig.so:${PORTSDIR}/graphics/jbigkit
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS+= --with-jpeg-include-dir=${LOCALBASE}/include \
--with-jpeg-lib-dir=${LOCALBASE}/lib
-.if defined(WITH_X11) && !defined(WITHOUT_X11)
-USE_XORG= sm ice xmu xi x11
-USE_GL= glut glu gl
-PLIST_SUB+= WITH_X11=""
-.else
-CONFIGURE_ARGS+= --without-x --without-libgl
-PLIST_SUB+= WITH_X11="@comment "
-.endif
-
-MAN1= bmp2tiff.1 tiff2pdf.1 fax2ps.1 fax2tiff.1 gif2tiff.1 pal2rgb.1 \
- ppm2tiff.1 ras2tiff.1 raw2tiff.1 rgb2ycbcr.1 sgi2tiff.1 \
- thumbnail.1 tiff2bw.1 tiff2ps.1 tiff2rgba.1 tiffcmp.1 tiffcp.1 \
- tiffcrop.1 tiffdither.1 tiffdump.1 tiffgt.1 tiffinfo.1 tiffmedian.1 \
- tiffset.1 tiffsplit.1 tiffsv.1
-MAN3= TIFFClose.3tiff TIFFDataWidth.3tiff TIFFError.3tiff \
- TIFFFieldDataType.3tiff TIFFFieldName.3tiff TIFFFieldPassCount.3tiff \
- TIFFFieldReadCount.3tiff TIFFFieldTag.3tiff TIFFFieldWriteCount.3tiff \
- TIFFFlush.3tiff TIFFGetField.3tiff TIFFOpen.3tiff \
- TIFFPrintDirectory.3tiff TIFFRGBAImage.3tiff TIFFReadDirectory.3tiff \
- TIFFReadEncodedStrip.3tiff TIFFReadEncodedTile.3tiff \
- TIFFReadRGBAImage.3tiff TIFFReadRGBAStrip.3tiff \
- TIFFReadRGBATile.3tiff TIFFReadRawStrip.3tiff TIFFReadRawTile.3tiff \
- TIFFReadScanline.3tiff TIFFReadTile.3tiff TIFFSetDirectory.3tiff \
- TIFFSetField.3tiff TIFFWarning.3tiff TIFFWriteDirectory.3tiff \
- TIFFWriteEncodedStrip.3tiff TIFFWriteEncodedTile.3tiff \
- TIFFWriteRawStrip.3tiff TIFFWriteRawTile.3tiff \
- TIFFWriteScanline.3tiff TIFFWriteTile.3tiff TIFFbuffer.3tiff \
- TIFFcodec.3tiff TIFFcolor.3tiff TIFFmemory.3tiff TIFFquery.3tiff \
- TIFFsize.3tiff TIFFstrip.3tiff TIFFswab.3tiff TIFFtile.3tiff \
- libtiff.3tiff
MLINKS= TIFFError.3tiff TIFFSetErrorHandler.3tiff \
TIFFFlush.3tiff TIFFFlushData.3tiff \
TIFFGetField.3tiff TIFFGetFieldDefaulted.3tiff \
@@ -111,6 +79,29 @@ MLINKS= TIFFError.3tiff TIFFSetErrorHandler.3tiff \
TIFFtile.3tiff TIFFTileRowSize.3tiff \
TIFFtile.3tiff TIFFVTileSize.3tiff
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT=X11
+
+.include <bsd.port.options.mk>
+
+.if !defined(BUILDING_INDEX)
+__pmlinks3!= ${ECHO_CMD} '${MLINKS:S/ / /}' | ${AWK} \
+ '{ if (NF % 2 != 0) { print "broken"; exit; } \
+ for (i=1; i<=NF; i++) { \
+ if ( i % 2 == 0) { print " " $$i " ;"; } \
+ else { printf "${LN} -s " $$i " "; } \
+ } }'
+.endif
+
+.if ${PORT_OPTIONS:MX11}
+USE_XORG= sm ice xmu xi x11
+USE_GL= glut glu gl
+PLIST_SUB+= WITH_X11=""
+.else
+CONFIGURE_ARGS+= --without-x --without-libgl
+PLIST_SUB+= WITH_X11="@comment "
+.endif
+
pre-configure:
${REINPLACE_CMD} \
-e 's|^LIBTIFF_VERSION_INFO =.*$$|LIBTIFF_VERSION_INFO = 4:0:0|' \
@@ -118,13 +109,14 @@ pre-configure:
${REINPLACE_CMD} -e 's|^docfiles|no-docfiles|' \
-e 's|man html|man|' ${WRKSRC}/Makefile.in
-.if !defined(NOPORTDOCS)
post-install:
- ${MKDIR} ${DOCSDIR}/images ${DOCSDIR}/man
- ${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/html/images/*.jpg ${DOCSDIR}/images/
- ${INSTALL_DATA} ${WRKSRC}/html/images/*.gif ${DOCSDIR}/images/
- ${INSTALL_DATA} ${WRKSRC}/html/man/*.html ${DOCSDIR}/man/
+ ( cd ${STAGEDIR}${MANPREFIX}/man/man3 && ${__pmlinks3} )
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/images ${STAGEDIR}${DOCSDIR}/man
+ ${INSTALL_DATA} ${WRKSRC}/html/*.html ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/html/images/*.jpg ${STAGEDIR}${DOCSDIR}/images/
+ ${INSTALL_DATA} ${WRKSRC}/html/images/*.gif ${STAGEDIR}${DOCSDIR}/images/
+ ${INSTALL_DATA} ${WRKSRC}/html/man/*.html ${STAGEDIR}${DOCSDIR}/man/
.endif
regression-test: build
diff --git a/graphics/tiff/pkg-plist b/graphics/tiff/pkg-plist
index c522207fd527..e945bbfbb7c7 100644
--- a/graphics/tiff/pkg-plist
+++ b/graphics/tiff/pkg-plist
@@ -36,6 +36,133 @@ lib/libtiffxx.la
lib/libtiffxx.so
lib/libtiffxx.so.4
libdata/pkgconfig/libtiff-4.pc
+man/man1/bmp2tiff.1.gz
+man/man1/fax2ps.1.gz
+man/man1/fax2tiff.1.gz
+man/man1/gif2tiff.1.gz
+man/man1/pal2rgb.1.gz
+man/man1/ppm2tiff.1.gz
+man/man1/ras2tiff.1.gz
+man/man1/raw2tiff.1.gz
+man/man1/rgb2ycbcr.1.gz
+man/man1/sgi2tiff.1.gz
+man/man1/thumbnail.1.gz
+man/man1/tiff2bw.1.gz
+man/man1/tiff2pdf.1.gz
+man/man1/tiff2ps.1.gz
+man/man1/tiff2rgba.1.gz
+man/man1/tiffcmp.1.gz
+man/man1/tiffcp.1.gz
+man/man1/tiffcrop.1.gz
+man/man1/tiffdither.1.gz
+man/man1/tiffdump.1.gz
+man/man1/tiffgt.1.gz
+man/man1/tiffinfo.1.gz
+man/man1/tiffmedian.1.gz
+man/man1/tiffset.1.gz
+man/man1/tiffsplit.1.gz
+man/man1/tiffsv.1.gz
+man/man3/TIFFCheckTile.3tiff.gz
+man/man3/TIFFClientOpen.3tiff.gz
+man/man3/TIFFClose.3tiff.gz
+man/man3/TIFFComputeStrip.3tiff.gz
+man/man3/TIFFComputeTile.3tiff.gz
+man/man3/TIFFCurrentDirectory.3tiff.gz
+man/man3/TIFFCurrentRow.3tiff.gz
+man/man3/TIFFCurrentStrip.3tiff.gz
+man/man3/TIFFCurrentTile.3tiff.gz
+man/man3/TIFFDataWidth.3tiff.gz
+man/man3/TIFFDefaultStripSize.3tiff.gz
+man/man3/TIFFDefaultTileSize.3tiff.gz
+man/man3/TIFFError.3tiff.gz
+man/man3/TIFFFdOpen.3tiff.gz
+man/man3/TIFFFieldDataType.3tiff.gz
+man/man3/TIFFFieldName.3tiff.gz
+man/man3/TIFFFieldPassCount.3tiff.gz
+man/man3/TIFFFieldReadCount.3tiff.gz
+man/man3/TIFFFieldTag.3tiff.gz
+man/man3/TIFFFieldWriteCount.3tiff.gz
+man/man3/TIFFFileName.3tiff.gz
+man/man3/TIFFFileno.3tiff.gz
+man/man3/TIFFFindCODEC.3tiff.gz
+man/man3/TIFFFlush.3tiff.gz
+man/man3/TIFFFlushData.3tiff.gz
+man/man3/TIFFGetField.3tiff.gz
+man/man3/TIFFGetFieldDefaulted.3tiff.gz
+man/man3/TIFFGetMode.3tiff.gz
+man/man3/TIFFIsByteSwapped.3tiff.gz
+man/man3/TIFFIsMSB2LSB.3tiff.gz
+man/man3/TIFFIsTiled.3tiff.gz
+man/man3/TIFFIsUpSampled.3tiff.gz
+man/man3/TIFFLastDirectory.3tiff.gz
+man/man3/TIFFNumberOfStrips.3tiff.gz
+man/man3/TIFFNumberOfTiles.3tiff.gz
+man/man3/TIFFOpen.3tiff.gz
+man/man3/TIFFPrintDirectory.3tiff.gz
+man/man3/TIFFRGBAImage.3tiff.gz
+man/man3/TIFFRGBAImageBegin.3tiff.gz
+man/man3/TIFFRGBAImageEnd.3tiff.gz
+man/man3/TIFFRGBAImageGet.3tiff.gz
+man/man3/TIFFRGBAImageOK.3tiff.gz
+man/man3/TIFFReadBufferSetup.3tiff.gz
+man/man3/TIFFReadDirectory.3tiff.gz
+man/man3/TIFFReadEncodedStrip.3tiff.gz
+man/man3/TIFFReadEncodedTile.3tiff.gz
+man/man3/TIFFReadRGBAImage.3tiff.gz
+man/man3/TIFFReadRGBAImageOriented.3tiff.gz
+man/man3/TIFFReadRGBAStrip.3tiff.gz
+man/man3/TIFFReadRGBATile.3tiff.gz
+man/man3/TIFFReadRawStrip.3tiff.gz
+man/man3/TIFFReadRawTile.3tiff.gz
+man/man3/TIFFReadScanline.3tiff.gz
+man/man3/TIFFReadTile.3tiff.gz
+man/man3/TIFFRegisterCODEC.3tiff.gz
+man/man3/TIFFReverseBits.3tiff.gz
+man/man3/TIFFRewriteDirectory.3tiff.gz
+man/man3/TIFFScanlineSize.3tiff.gz
+man/man3/TIFFSetDirectory.3tiff.gz
+man/man3/TIFFSetErrorHandler.3tiff.gz
+man/man3/TIFFSetField.3tiff.gz
+man/man3/TIFFSetSubDirectory.3tiff.gz
+man/man3/TIFFSetWarningHandler.3tiff.gz
+man/man3/TIFFStripSize.3tiff.gz
+man/man3/TIFFSwabArrayOfLong.3tiff.gz
+man/man3/TIFFSwabArrayOfShort.3tiff.gz
+man/man3/TIFFSwabLong.3tiff.gz
+man/man3/TIFFSwabShort.3tiff.gz
+man/man3/TIFFTileRowSize.3tiff.gz
+man/man3/TIFFTileSize.3tiff.gz
+man/man3/TIFFUnRegisterCODEC.3tiff.gz
+man/man3/TIFFVGetField.3tiff.gz
+man/man3/TIFFVGetFieldDefaulted.3tiff.gz
+man/man3/TIFFVSetField.3tiff.gz
+man/man3/TIFFVStripSize.3tiff.gz
+man/man3/TIFFVTileSize.3tiff.gz
+man/man3/TIFFWarning.3tiff.gz
+man/man3/TIFFWriteBufferSetup.3tiff.gz
+man/man3/TIFFWriteDirectory.3tiff.gz
+man/man3/TIFFWriteEncodedStrip.3tiff.gz
+man/man3/TIFFWriteEncodedTile.3tiff.gz
+man/man3/TIFFWriteRawStrip.3tiff.gz
+man/man3/TIFFWriteRawTile.3tiff.gz
+man/man3/TIFFWriteScanline.3tiff.gz
+man/man3/TIFFWriteTile.3tiff.gz
+man/man3/TIFFbuffer.3tiff.gz
+man/man3/TIFFcodec.3tiff.gz
+man/man3/TIFFcolor.3tiff.gz
+man/man3/TIFFfree.3tiff.gz
+man/man3/TIFFmalloc.3tiff.gz
+man/man3/TIFFmemcmp.3tiff.gz
+man/man3/TIFFmemcpy.3tiff.gz
+man/man3/TIFFmemory.3tiff.gz
+man/man3/TIFFmemset.3tiff.gz
+man/man3/TIFFquery.3tiff.gz
+man/man3/TIFFrealloc.3tiff.gz
+man/man3/TIFFsize.3tiff.gz
+man/man3/TIFFstrip.3tiff.gz
+man/man3/TIFFswab.3tiff.gz
+man/man3/TIFFtile.3tiff.gz
+man/man3/libtiff.3tiff.gz
%%PORTDOCS%%%%DOCSDIR%%/TIFFTechNote2.html
%%PORTDOCS%%%%DOCSDIR%%/addingtags.html
%%PORTDOCS%%%%DOCSDIR%%/bugs.html