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