Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= tiff |
4 |
PORTNAME= tiff |
5 |
PORTVERSION= 4.0.3 |
5 |
PORTVERSION= 4.0.3 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= graphics |
7 |
CATEGORIES= graphics |
7 |
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \ |
8 |
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \ |
8 |
http://download.osgeo.org/libtiff/ |
9 |
http://download.osgeo.org/libtiff/ |
Lines 10-35
Link Here
|
10 |
MAINTAINER= dinoex@FreeBSD.org |
11 |
MAINTAINER= dinoex@FreeBSD.org |
11 |
COMMENT= Tools and library routines for working with TIFF images |
12 |
COMMENT= Tools and library routines for working with TIFF images |
12 |
|
13 |
|
13 |
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ |
|
|
14 |
jbig:${PORTSDIR}/graphics/jbigkit |
15 |
|
16 |
LICENSE= BSD |
14 |
LICENSE= BSD |
17 |
LICENSE_FILE= ${WRKSRC}/COPYRIGHT |
15 |
LICENSE_FILE= ${WRKSRC}/COPYRIGHT |
18 |
|
16 |
|
|
|
17 |
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ |
18 |
jbig:${PORTSDIR}/graphics/jbigkit |
19 |
|
19 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
20 |
USE_AUTOTOOLS= libtool |
21 |
USE_AUTOTOOLS= libtool |
21 |
CONFIGURE_ARGS+= --with-jpeg-include-dir=${LOCALBASE}/include \ |
22 |
CONFIGURE_ARGS+= --with-jpeg-include-dir=${LOCALBASE}/include \ |
22 |
--with-jpeg-lib-dir=${LOCALBASE}/lib |
23 |
--with-jpeg-lib-dir=${LOCALBASE}/lib |
23 |
|
24 |
|
24 |
.if defined(WITH_X11) && !defined(WITHOUT_X11) |
|
|
25 |
USE_XORG= sm ice xmu xi x11 |
26 |
USE_GL= glut glu gl |
27 |
PLIST_SUB+= WITH_X11="" |
28 |
.else |
29 |
CONFIGURE_ARGS+= --without-x --without-libgl |
30 |
PLIST_SUB+= WITH_X11="@comment " |
31 |
.endif |
32 |
|
33 |
MAN1= bmp2tiff.1 tiff2pdf.1 fax2ps.1 fax2tiff.1 gif2tiff.1 pal2rgb.1 \ |
25 |
MAN1= bmp2tiff.1 tiff2pdf.1 fax2ps.1 fax2tiff.1 gif2tiff.1 pal2rgb.1 \ |
34 |
ppm2tiff.1 ras2tiff.1 raw2tiff.1 rgb2ycbcr.1 sgi2tiff.1 \ |
26 |
ppm2tiff.1 ras2tiff.1 raw2tiff.1 rgb2ycbcr.1 sgi2tiff.1 \ |
35 |
thumbnail.1 tiff2bw.1 tiff2ps.1 tiff2rgba.1 tiffcmp.1 tiffcp.1 \ |
27 |
thumbnail.1 tiff2bw.1 tiff2ps.1 tiff2rgba.1 tiffcmp.1 tiffcp.1 \ |
Lines 109-124
Link Here
|
109 |
TIFFtile.3tiff TIFFTileRowSize.3tiff \ |
101 |
TIFFtile.3tiff TIFFTileRowSize.3tiff \ |
110 |
TIFFtile.3tiff TIFFVTileSize.3tiff |
102 |
TIFFtile.3tiff TIFFVTileSize.3tiff |
111 |
|
103 |
|
|
|
104 |
PORTDOCS= ChangeLog README TODO |
105 |
|
106 |
OPTIONS_DEFINE= DOCS X11 |
107 |
|
108 |
.include <bsd.port.options.mk> |
109 |
|
110 |
.if ${PORT_OPTIONS:MX11} |
111 |
USE_XORG= sm ice xmu xi x11 |
112 |
USE_GL= glut glu gl |
113 |
PLIST_SUB+= WITH_X11="" |
114 |
.else |
115 |
CONFIGURE_ARGS+= --without-x --without-libgl |
116 |
PLIST_SUB+= WITH_X11="@comment " |
117 |
.endif |
118 |
|
119 |
.if ${PORT_OPTIONS:MDOCS} |
120 |
PLIST_SUB+= PORTDOCS="" |
121 |
.else |
122 |
PLIST_SUB+= PORTDOCS="@comment " |
123 |
.endif |
124 |
|
125 |
post-patch: |
126 |
@${REINPLACE_CMD} -e 's|pkgconfigdir = $$(libdir)/pkgconfig|pkgconfigdir = $$(prefix)/libdata/pkgconfig|' \ |
127 |
${WRKSRC}/Makefile.in |
128 |
.if ! ${PORT_OPTIONS:MDOCS} |
129 |
${REINPLACE_CMD} -e 's|^docfiles|no-docfiles|' \ |
130 |
${WRKSRC}/Makefile.in |
131 |
.endif |
132 |
|
112 |
pre-configure: |
133 |
pre-configure: |
113 |
${REINPLACE_CMD} \ |
134 |
${REINPLACE_CMD} \ |
114 |
-e 's|^LIBTIFF_VERSION_INFO =.*$$|LIBTIFF_VERSION_INFO = 4:0:0|' \ |
135 |
-e 's|^LIBTIFF_VERSION_INFO =.*$$|LIBTIFF_VERSION_INFO = 4:0:0|' \ |
115 |
${WRKSRC}/libtiff/Makefile.in |
136 |
${WRKSRC}/libtiff/Makefile.in |
116 |
${REINPLACE_CMD} -e 's|^docfiles|no-docfiles|' \ |
137 |
${REINPLACE_CMD} -e 's|man html|man|' \ |
117 |
-e 's|man html|man|' ${WRKSRC}/Makefile.in |
138 |
${WRKSRC}/Makefile.in |
118 |
|
139 |
|
119 |
.if !defined(NOPORTDOCS) |
140 |
.if ${PORT_OPTIONS:MDOCS} |
120 |
post-install: |
141 |
post-install: |
121 |
${MKDIR} ${DOCSDIR}/images ${DOCSDIR}/man |
142 |
@${MKDIR} ${DOCSDIR}/images ${DOCSDIR}/man |
|
|
143 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
122 |
${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCSDIR}/ |
144 |
${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCSDIR}/ |
123 |
${INSTALL_DATA} ${WRKSRC}/html/images/*.jpg ${DOCSDIR}/images/ |
145 |
${INSTALL_DATA} ${WRKSRC}/html/images/*.jpg ${DOCSDIR}/images/ |
124 |
${INSTALL_DATA} ${WRKSRC}/html/images/*.gif ${DOCSDIR}/images/ |
146 |
${INSTALL_DATA} ${WRKSRC}/html/images/*.gif ${DOCSDIR}/images/ |