openbsd-ports/graphics/netpbm/Makefile

73 lines
1.7 KiB
Makefile
Raw Normal View History

2005-01-18 07:30:57 -05:00
# $OpenBSD: Makefile,v 1.32 2005/01/18 12:30:57 alek 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?=
2005-01-18 07:30:57 -05:00
WANTLIB= c
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
2005-01-18 07:30:57 -05:00
WANTLIB+= m z
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}"
# gcc3 ICE on exif.c
.if ${MACHINE_ARCH} == "sparc64"
MAKE_FLAGS+= CFLAGS="${CFLAGS} -O0"
.endif
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