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