openbsd-ports/graphics/netpbm/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.28 2003/03/29 04:13:54 brad 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"
2002-03-01 17:49:19 -05:00
DISTNAME= netpbm-9.24
PKGNAME= ${DISTNAME}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
2000-03-13 13:57:14 -05:00
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_FTP= Yes
2001-10-02 23:09:31 -04:00
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_CDROM= Yes
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
.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