openbsd-ports/graphics/netpbm/Makefile
2011-09-16 10:02:36 +00:00

56 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.55 2011/09/16 10:02:37 espie Exp $
COMMENT= toolkit for converting images between different formats
DISTNAME= netpbm-10.35.80
REVISION= 0
SHARED_LIBS= netpbm 2.0
CATEGORIES= graphics
HOMEPAGE= http://netpbm.sourceforge.net/
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
EXTRACT_SUFX= .tgz
MODULES= converters/libiconv
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
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}"
pre-patch:
@rm -f ${WRKSRC}/converter/other/jpeg2000/libjasper/include/jasper/jas_types.h.orig
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
NO_REGRESS= Yes
.include <bsd.port.mk>
.if ${NO_SHARED_LIBS:L} == "yes"
MAKE_FLAGS+= NETPBMLIBTYPE=unixstatic
.else
MAKE_FLAGS+= NETPBMLIBTYPE=unixshared
.endif