# $OpenBSD: Makefile,v 1.30 2004/02/23 08:20:11 pvalchev Exp $ # $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 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/} EXTRACT_SUFX= .tgz HOMEPAGE= http://netpbm.sourceforge.net/ LIB_DEPENDS= tiff.35::graphics/tiff \ jpeg.62::graphics/jpeg \ png.2::graphics/png MAINTAINER= Brad Smith MULTI_PACKAGES= -hpcd SUBPACKAGE?= PERMIT_DISTFILES_FTP= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= "no fee" .if ${SUBPACKAGE} == "-hpcd" PERMIT_PACKAGE_CDROM= "no fee" .else PERMIT_PACKAGE_CDROM= Yes .endif 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 USE_GMAKE= Yes MAKE_FILE= GNUmakefile pre-build: @mv -f ${WRKSRC}/pm_config.h ${WRKSRC}/pm_config.h.new @mv -f ${WRKSRC}/pbm/pm.h ${WRKSRC}/pbm/pm.h.new @sed -e s#!!X11R6!!#${X11BASE}#g \ ${WRKSRC}/pm_config.h.new > ${WRKSRC}/pm_config.h @sed -e 's###g' \ ${WRKSRC}/pbm/pm.h.new > ${WRKSRC}/pbm/pm.h @cp -f ${FILESDIR}/Makefile.config.OpenBSD \ ${WRKSRC}/Makefile.config @cd ${WRKSRC}/shhopt; ln -sf shhopt.h pm_shhopt.h NO_REGRESS= Yes .if defined(PACKAGING) && ${SUBPACKAGE} == "-hpcd" LIB_DEPENDS= pbm.1,pgm.1,ppm.1::graphics/netpbm .endif .include .if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes" MAKE_FLAGS+= NETPBMLIBTYPE=unixstatic .else MAKE_FLAGS+= NETPBMLIBTYPE=unixshared .endif