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
|
2003-12-04 19:41:29 +00:00
|
|
|
PORTVERSION= 10.19
|
2003-12-29 19:59:33 +00:00
|
|
|
PORTREVISION?= 3
|
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}
|
2000-04-01 23:57:38 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
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
|
1994-10-15 19:14:08 +00:00
|
|
|
|
2002-07-06 01:17:43 +00:00
|
|
|
USE_PERL5= yes
|
2002-06-20 02:08:57 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-04-01 23:57:38 +00:00
|
|
|
USE_GMAKE= yes
|
2001-07-24 14:07:58 +00:00
|
|
|
MAKE_ENV= 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
|
2000-07-01 19:26:13 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-05-01 16:13:29 +00:00
|
|
|
NO_CDROM= "Not allowed to sell"
|
1999-11-01 01:14:38 +00:00
|
|
|
|
2003-08-26 00:17:43 +00:00
|
|
|
MAN1= netpbm.1
|
|
|
|
|
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
|
|
|
|
|
1999-11-01 01:14:38 +00:00
|
|
|
post-patch:
|
2002-10-06 18:03:02 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
|
|
|
s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/pm_config.h
|
2002-06-19 20:21:21 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|<shhopt.h>|<pm_shhopt.h>|g' ${WRKSRC}/lib/pm.h
|
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..."
|
|
|
|
@${REINPLACE_CMD} -e 's|doc/USERDOC|${DOCSDIR}/USERDOC|g' ${WRKSRC}/doc/netpbm.1
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/USERDOC ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/netpbm.1 ${MANPREFIX}/man/man1
|
|
|
|
|
2003-11-25 00:26:53 +00:00
|
|
|
.include <bsd.port.post.mk>
|