2003-09-22 20:12:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2003/09/23 00:12:51 naddy Exp $
|
1999-03-18 20:57:41 -05:00
|
|
|
# $NetBSD: Makefile,v 1.25 1999/03/04 14:18:54 tron 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"
|
2003-09-22 20:12:51 -04:00
|
|
|
COMMENT-hpcd= "convert photo CD images into ppm format"
|
2001-04-01 15:01:38 -04:00
|
|
|
|
2003-09-22 20:12:51 -04:00
|
|
|
VERSION= 9.24
|
|
|
|
DISTNAME= netpbm-${VERSION}
|
2003-03-28 23:13:54 -05:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2003-09-22 20:12:51 -04:00
|
|
|
PKGNAME-hpcd= hpcdtoppm-${VERSION}p1
|
1998-05-14 01:41:13 -04:00
|
|
|
CATEGORIES= graphics
|
2002-05-13 19:31:24 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
|
2001-10-02 23:09:31 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
HOMEPAGE= http://netpbm.sourceforge.net/
|
|
|
|
|
|
|
|
LIB_DEPENDS= tiff.35::graphics/tiff \
|
2002-03-01 17:49:19 -05:00
|
|
|
jpeg.62::graphics/jpeg \
|
2001-05-23 22:27:06 -04:00
|
|
|
png.2::graphics/png
|
2000-06-20 13:34:14 -04:00
|
|
|
|
2000-09-24 03:03:59 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1999-06-01 18:36:26 -04:00
|
|
|
|
2003-09-22 20:12:51 -04:00
|
|
|
MULTI_PACKAGES= -hpcd
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2000-03-13 13:57:14 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2003-09-22 20:12:51 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= "no fee"
|
|
|
|
.if ${SUBPACKAGE} == "-hpcd"
|
|
|
|
PERMIT_PACKAGE_CDROM= "no fee"
|
|
|
|
.else
|
2001-10-02 23:09:31 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2003-09-22 20:12:51 -04:00
|
|
|
.endif
|
2000-03-13 13:57:14 -05:00
|
|
|
|
2001-10-02 23:09:31 -04:00
|
|
|
MAKE_FLAGS= CC="${CC}"
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} PREFIX="${WRKINST}${TRUEPREFIX}"
|
1999-10-26 20:09:15 -04:00
|
|
|
|
2001-10-02 23:09:31 -04:00
|
|
|
USE_GMAKE= Yes
|
1998-05-14 01:41:13 -04:00
|
|
|
|
2001-10-02 23:09:31 -04:00
|
|
|
MAKE_FILE= GNUmakefile
|
|
|
|
|
2002-03-01 17:49:19 -05:00
|
|
|
pre-build:
|
|
|
|
@mv -f ${WRKSRC}/pm_config.h ${WRKSRC}/pm_config.h.new
|
|
|
|
@mv -f ${WRKSRC}/pbm/pm.h ${WRKSRC}/pbm/pm.h.new
|
2001-10-02 23:09:31 -04:00
|
|
|
@sed -e s#!!X11R6!!#${X11BASE}#g \
|
2002-03-01 17:49:19 -05:00
|
|
|
${WRKSRC}/pm_config.h.new > ${WRKSRC}/pm_config.h
|
2002-10-04 09:10:34 -04:00
|
|
|
@sed -e 's#<shhopt.h>#<pm_shhopt.h>#g' \
|
2002-03-01 17:49:19 -05:00
|
|
|
${WRKSRC}/pbm/pm.h.new > ${WRKSRC}/pbm/pm.h
|
2001-10-02 23:09:31 -04:00
|
|
|
@cp -f ${FILESDIR}/Makefile.config.OpenBSD \
|
|
|
|
${WRKSRC}/Makefile.config
|
|
|
|
@cd ${WRKSRC}/shhopt; ln -sf shhopt.h pm_shhopt.h
|
1998-05-14 01:41:13 -04:00
|
|
|
|
2002-10-26 20:03:16 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2003-09-22 20:12:51 -04:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-hpcd"
|
|
|
|
LIB_DEPENDS= pbm.1,pgm.1,ppm.1::graphics/netpbm
|
|
|
|
.endif
|
|
|
|
|
1998-05-14 01:41:13 -04:00
|
|
|
.include <bsd.port.mk>
|
2001-10-02 23:09:31 -04:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
|
|
|
MAKE_FLAGS+= NETPBMLIBTYPE=unixstatic
|
|
|
|
.else
|
|
|
|
MAKE_FLAGS+= NETPBMLIBTYPE=unixshared
|
|
|
|
.endif
|