ba4ea3e093
PR: 45434 Submitted by: Ports Fury
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# New ports collection makefile for: netpbm
|
|
# Date created: ?
|
|
# Whom: jmz (original)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= netpbm
|
|
PORTVERSION= 10.12
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
jbig.1:${PORTSDIR}/graphics/jbigkit
|
|
|
|
USE_PERL5= yes
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= LN="${LN}" RANLIB="${RANLIB}"
|
|
MAKEFILE= GNUmakefile
|
|
INSTALL_TARGET= install.bin install.lib install.data install-dev
|
|
INSTALLS_SHLIB= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
|
s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/pm_config.h
|
|
@${REINPLACE_CMD} -e 's|<shhopt.h>|<pm_shhopt.h>|g' ${WRKSRC}/lib/pm.h
|
|
@${CP} ${FILESDIR}/Makefile.config.FreeBSD ${WRKSRC}/Makefile.config
|
|
@${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
|
|
|
|
.include <bsd.port.mk>
|