openbsd-ports/graphics/netpbm/Makefile

66 lines
1.6 KiB
Makefile
Raw Normal View History

# $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 $
COMMENT= "toolkit for converting images between different formats"
COMMENT-hpcd= "convert photo CD images into ppm format"
VERSION= 9.24
DISTNAME= netpbm-${VERSION}
PKGNAME= ${DISTNAME}p1
PKGNAME-hpcd= hpcdtoppm-${VERSION}p1
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 \
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
MULTI_PACKAGES= -hpcd
SUBPACKAGE?=
2000-03-13 13:57:14 -05:00
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_FTP= Yes
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
.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}"
2001-10-02 23:09:31 -04:00
USE_GMAKE= Yes
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
@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
2002-10-26 20:03:16 -04:00
NO_REGRESS= Yes
.if defined(PACKAGING) && ${SUBPACKAGE} == "-hpcd"
LIB_DEPENDS= pbm.1,pgm.1,ppm.1::graphics/netpbm
.endif
.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