1995-02-06 11:25:17 +01:00
|
|
|
# New ports collection makefile for: netpbm
|
|
|
|
# Date created: ?
|
|
|
|
# Whom: jmz (original)
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1995-02-06 11:25:17 +01:00
|
|
|
#
|
1995-02-07 02:32:21 +01:00
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= netpbm
|
2006-05-25 22:13:48 +02:00
|
|
|
.if defined(WITH_NETPBM_DEVEL)
|
2006-12-18 08:30:37 +01:00
|
|
|
PORTVERSION= ${DEVEL_PORTVERSION}
|
2006-05-25 22:13:48 +02:00
|
|
|
.else
|
2007-09-30 21:01:42 +02:00
|
|
|
PORTVERSION= 10.26.45
|
2006-05-25 22:13:48 +02:00
|
|
|
.endif
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= graphics
|
2000-06-14 15:21:38 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-05-25 22:13:48 +02:00
|
|
|
.if defined(WITH_NETPBM_DEVEL)
|
|
|
|
PKGNAMESUFFIX= -devel${PKGNAMESUFFIX2}
|
|
|
|
.endif
|
2006-05-25 22:18:16 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2007-01-01 07:56:09 +01:00
|
|
|
.if make(makesum) || defined(FETCH_ALL)
|
2006-12-18 08:30:37 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-${DEVEL_PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
.endif
|
1995-04-09 09:09:55 +02:00
|
|
|
|
2003-12-04 04:31:34 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= A toolkit for conversion of images between different formats
|
1995-02-11 14:51:48 +01:00
|
|
|
|
2000-04-02 01:57:38 +02:00
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
2000-06-05 00:36:27 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2002-03-16 08:12:32 +01:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
jbig.1:${PORTSDIR}/graphics/jbigkit
|
2004-11-14 08:06:38 +01:00
|
|
|
# jasper.4:${PORTSDIR}/graphics/jasper
|
1994-10-15 20:14:08 +01:00
|
|
|
|
2002-07-06 03:17:43 +02:00
|
|
|
USE_PERL5= yes
|
2000-04-02 01:57:38 +02:00
|
|
|
USE_GMAKE= yes
|
2004-01-26 20:33:02 +01:00
|
|
|
MAKE_ENV= CC="${CC}" LN="${LN}" RANLIB="${RANLIB}"
|
2000-05-19 10:34:13 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2002-10-12 18:36:45 +02:00
|
|
|
INSTALL_TARGET= install.bin install.lib install.data install-dev
|
2006-12-14 14:06:15 +01:00
|
|
|
USE_LDCONFIG= yes
|
2007-04-12 16:49:58 +02:00
|
|
|
.if !defined(WITH_NETPBM_DEVEL)
|
2007-04-13 14:16:16 +02:00
|
|
|
PORTSCOUT= limit:^10\.26\.
|
2007-04-12 16:49:58 +02:00
|
|
|
.endif
|
1999-11-01 02:14:38 +01:00
|
|
|
|
2003-08-26 02:17:43 +02:00
|
|
|
MAN1= netpbm.1
|
|
|
|
|
2006-12-18 08:30:37 +01:00
|
|
|
DEVEL_PORTVERSION= 10.31
|
|
|
|
|
2003-11-25 01:26:53 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
# -O causes an ICE in converter/other/exif.c with gcc 3.3.3 on sparc64.
|
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
2006-05-25 22:13:48 +02:00
|
|
|
.if defined(WITH_NETPBM_DEVEL)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/editor-pnmquant-devel.patch
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/converter-other-cameratopam-identify.patch
|
|
|
|
PLIST_SUB+= DEVEL=""
|
|
|
|
.else
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/editor-pnmquant-stable.patch
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/converter-other-pstopnm.patch
|
|
|
|
PLIST_SUB+= DEVEL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-08-18 08:37:40 +02:00
|
|
|
pre-configure:
|
2002-10-06 20:03:02 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
2004-08-18 08:37:40 +02:00
|
|
|
s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/pm_config.in.h
|
2002-06-19 22:21:21 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|<shhopt.h>|<pm_shhopt.h>|g' ${WRKSRC}/lib/pm.h
|
2004-11-14 08:06:38 +01:00
|
|
|
@${REINPLACE_CMD} -e 's| jpeg2000||g' \
|
|
|
|
${WRKSRC}/converter/other/Makefile
|
2001-02-26 04:22:33 +01:00
|
|
|
@${CP} ${FILESDIR}/Makefile.config.FreeBSD ${WRKSRC}/Makefile.config
|
2002-06-19 22:21:21 +02:00
|
|
|
@${LN} -sf ${WRKSRC}/lib/util/shhopt.h ${WRKSRC}/lib/util/pm_shhopt.h
|
|
|
|
@${LN} -sf ${WRKSRC}/lib/util/nstring.h ${WRKSRC}/lib/util/pm_nstring.h
|
2000-04-02 01:57:38 +02:00
|
|
|
|
2003-08-26 02:17:43 +02:00
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} "===> Installing man pages..."
|
2004-01-31 09:14:52 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|doc/USERDOC|${DOCSDIR}/USERDOC|g' \
|
|
|
|
${WRKSRC}/doc/netpbm.1
|
2003-08-26 02:17:43 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/netpbm.1 ${MANPREFIX}/man/man1
|
2004-01-31 09:14:52 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/USERDOC ${DOCSDIR}/
|
|
|
|
.endif
|
2003-08-26 02:17:43 +02:00
|
|
|
|
2004-08-12 14:48:01 +02:00
|
|
|
.if !defined(WITHOUT_PERL) && ${PERL_LEVEL} < 500800
|
2004-04-29 04:49:26 +02:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
|
|
|
|
.endif
|
|
|
|
|
2003-11-25 01:26:53 +01:00
|
|
|
.include <bsd.port.post.mk>
|