openbsd-ports/graphics/netpbm/Makefile

56 lines
1.3 KiB
Makefile
Raw Normal View History

2011-09-16 06:02:36 -04:00
# $OpenBSD: Makefile,v 1.55 2011/09/16 10:02:37 espie Exp $
COMMENT= toolkit for converting images between different formats
2011-03-26 11:43:18 -04:00
DISTNAME= netpbm-10.35.80
2011-09-16 06:02:36 -04:00
REVISION= 0
SHARED_LIBS= netpbm 2.0
CATEGORIES= graphics
2001-10-02 23:09:31 -04:00
HOMEPAGE= http://netpbm.sourceforge.net/
2000-03-13 13:57:14 -05:00
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
2001-10-02 23:09:31 -04:00
PERMIT_PACKAGE_CDROM= Yes
2000-03-13 13:57:14 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
EXTRACT_SUFX= .tgz
MODULES= converters/libiconv
2010-11-17 03:05:12 -05:00
WANTLIB= X11 Xau Xdmcp c m pthread-stubs xcb z tiff>=38 jpeg>=64 \
png>=10 jbig>=2 jasper>=2 xml2>=11
LIB_DEPENDS= graphics/tiff \
graphics/jpeg \
graphics/png \
graphics/jbigkit \
graphics/jasper \
textproc/libxml
2001-10-02 23:09:31 -04:00
USE_GMAKE= Yes
MAKE_FILE= GNUmakefile
ALL_TARGET=
INSTALL_TARGET= install.bin install.lib install.data \
install.hdr install.staticlib
MAKE_FLAGS= CC="${CC}" \
LIBnetpbm_VERSION=${LIBnetpbm_VERSION}
FAKE_FLAGS= PKGDIR="${WRKINST}${TRUEPREFIX}"
2001-10-02 23:09:31 -04:00
pre-patch:
@rm -f ${WRKSRC}/converter/other/jpeg2000/libjasper/include/jasper/jas_types.h.orig
2002-03-01 17:49:19 -05:00
pre-build:
@perl -i -pe 's#%%X11BASE%%#${X11BASE}#g;' \
-e 's#%%PREFIX%%#${PREFIX}#g;' ${WRKSRC}/pm_config.in.h
@cp ${FILESDIR}/Makefile.config.OpenBSD ${WRKSRC}/Makefile.config
2002-10-26 20:03:16 -04:00
NO_REGRESS= Yes
.include <bsd.port.mk>
2001-10-02 23:09:31 -04:00
.if ${NO_SHARED_LIBS:L} == "yes"
2001-10-02 23:09:31 -04:00
MAKE_FLAGS+= NETPBMLIBTYPE=unixstatic
.else
MAKE_FLAGS+= NETPBMLIBTYPE=unixshared
.endif