2006-10-19 12:05:19 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.41 2006/10/19 16:05:19 naddy Exp $
|
1998-05-14 01:41:13 -04:00
|
|
|
|
2001-04-01 15:01:38 -04:00
|
|
|
COMMENT= "toolkit for converting images between different formats"
|
2005-12-29 10:45:42 -05:00
|
|
|
|
2006-10-19 12:05:19 -04:00
|
|
|
DISTNAME= netpbm-10.26.32
|
2006-10-02 12:00:21 -04:00
|
|
|
SHARED_LIBS= netpbm 0.1
|
1998-05-14 01:41:13 -04:00
|
|
|
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
|
2006-06-11 14:22:06 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2001-10-02 23:09:31 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-03-13 13:57:14 -05:00
|
|
|
|
2006-06-11 14:22:06 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
1999-10-26 20:09:15 -04:00
|
|
|
|
2006-06-11 14:22:06 -04:00
|
|
|
WANTLIB= c m z
|
2006-08-03 08:53:18 -04:00
|
|
|
LIB_DEPENDS= tiff.>=35::graphics/tiff \
|
|
|
|
jpeg.>=62::graphics/jpeg \
|
|
|
|
png.>=2::graphics/png \
|
|
|
|
jbig.>=2::graphics/jbigkit \
|
|
|
|
jasper.>=1::graphics/jasper
|
2004-02-23 03:20:11 -05:00
|
|
|
|
2001-10-02 23:09:31 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
MAKE_FILE= GNUmakefile
|
2006-06-11 14:22:06 -04:00
|
|
|
ALL_TARGET=
|
|
|
|
INSTALL_TARGET= install.bin install.lib install.data \
|
|
|
|
install.hdr install.staticlib
|
|
|
|
|
|
|
|
MAKE_FLAGS= CC="${CC}" \
|
|
|
|
LIBnetpbm_VERSION=${LIBnetpbm_VERSION}
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} PKGDIR="${WRKINST}${TRUEPREFIX}"
|
2001-10-02 23:09:31 -04:00
|
|
|
|
2002-03-01 17:49:19 -05:00
|
|
|
pre-build:
|
2006-06-11 14:22:06 -04:00
|
|
|
@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
|
1998-05-14 01:41:13 -04:00
|
|
|
|
2002-10-26 20:03:16 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1998-05-14 01:41:13 -04:00
|
|
|
.include <bsd.port.mk>
|
2001-10-02 23:09:31 -04:00
|
|
|
|
2006-06-11 14:22:06 -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
|