Changes 10.34: * Add pamthreshold, pamx, pamtoxvmini. * pammasksharpen: Add -threshold. * pnmtopng: make "N colors found" message verbose-only. * pnmtopng: make "no room in palette" message non-verbose. * picttoppm: Tolerate various PICT file corruptions. * picttoppm: Don't issue warning message when file named 'fontdir' doesn't exist. * libnetpbm: Add ppmd_fill_path(). * ppmtobmp: Fix for PBM input. * bmptopnm: Don't crash on BMP with no color map. * bmptopnm: Fix wrong file name in error messages. * ppmtogif: fix bug: always produces garbage output. * ppmtompeg: fix input from Standard Input. * pnmflip: fix bug: -rotate90, -rotate180, and -rotate270 (and synonyms) don't work when followed by other rotation options. * ppmtoilbm: Fig bug: generates more planes than necessary. * pamtofits: fix buffer overflow in asembling header. * picttoppm: fix bug - interprets some images wrong because of bogus "rowBytes" value. * Redo asprintfN(), etc. so as not to use va_list in a way that doesn't work on some machines. * cameratopam: remove definition of memmem() so it doesn't collide with same in some C libraries. Add memmemN() and MEMEQ to libnetpbm. * Fix build of filename.o.
91 lines
2.7 KiB
Makefile
91 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.143 2006/06/25 06:35:58 adam Exp $
|
|
|
|
DISTNAME= netpbm-10.34
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= adam@NetBSD.org
|
|
HOMEPAGE= http://netpbm.sourceforge.net/
|
|
COMMENT= Toolkit for conversion of images between different formats
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_TOOLS+= bash:run gmake lex perl
|
|
|
|
INSTALL_TARGET= install-dev install-run
|
|
MAKE_ENV+= INSTALL=${INSTALL:Q} STRIPFLAG=${_STRIPFLAG_INSTALL:Q} \
|
|
pkgdir=${STAGEDIR:Q} MACHINE=${MACHINE:Q}
|
|
MAKEFILE= GNUmakefile
|
|
PLIST_SRC= ${WRKDIR}/PLIST_STAGE
|
|
REPLACE_PERL+= editor/ppmfade editor/ppmshadow editor/pnmquant \
|
|
generator/ppmrainbow manweb editor/pnmflip editor/ppmquant
|
|
STAGEDIR= ${WRKDIR}/staging
|
|
|
|
LIBS.SunOS+= -lsocket -lnsl
|
|
MAKE_ENV+= NETWORKLD=${LIBS:M*:Q}
|
|
|
|
# Several of the netpbm shell scripts use bashisms, so force using
|
|
# bash for all of the shell scripts.
|
|
#
|
|
REPLACE_INTERPRETER+= bash
|
|
REPLACE.bash.old= .*/bin/sh
|
|
REPLACE.bash.new= ${TOOLS_PATH.bash}
|
|
REPLACE_FILES.bash= converter/other/anytopnm
|
|
REPLACE_FILES.bash+= converter/other/pnmtoplainpnm
|
|
REPLACE_FILES.bash+= converter/ppm/hpcdtoppm/hpcdtoppm
|
|
REPLACE_FILES.bash+= converter/ppm/hpcdtoppm/pcdovtoppm
|
|
REPLACE_FILES.bash+= editor/pamstretch-gen
|
|
REPLACE_FILES.bash+= editor/pnmindex.sh
|
|
REPLACE_FILES.bash+= editor/pnmmargin
|
|
REPLACE_FILES.bash+= editor/ppmquantall
|
|
REPLACE_FILES.bash+= other/ppmtomap
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# Fiasco fails to compile on Darwin-8.x.
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-8.*-*)
|
|
MAKE_ENV+= BUILD_FIASCO=N
|
|
.endif
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
MAKE_ENV+= NETPBMLIBTYPE="dylib" NETPBMLIBSUFFIX="dylib"
|
|
.else
|
|
MAKE_ENV+= NETPBMLIBTYPE="unixshared" NETPBMLIBSUFFIX="so"
|
|
.endif
|
|
|
|
MAKE_ENV+= JASPERLIB="${LDFLAGS} -ljasper"
|
|
MAKE_ENV+= JASPERHDR_DIR=${CPPFLAGS:M*:Q}
|
|
|
|
.include "../../graphics/jasper/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
|
|
pre-configure:
|
|
${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config
|
|
|
|
pre-install:
|
|
${RM} -fr ${STAGEDIR}
|
|
|
|
post-install:
|
|
cd ${STAGEDIR} && \
|
|
${MV} link/* lib && \
|
|
${RM} -rf link man/web && \
|
|
${MKDIR} share/doc/netpbm && \
|
|
${CP} ${WRKSRC}/doc/* share/doc/netpbm && \
|
|
${MV} share/doc/netpbm/*.1 man/man1 && \
|
|
${MV} misc share/netpbm && \
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} . && \
|
|
${FIND} * \! -type d -print | ${SORT} >${PLIST_SRC} && \
|
|
${FIND} * -type d -print | \
|
|
while read DIR; do \
|
|
${TEST} -d "${PREFIX}/$${DIR}" || \
|
|
${ECHO} "@dirrm $${DIR}"; \
|
|
done >>${PLIST_SRC} && \
|
|
${PAX} -rwpppm . ${PREFIX}
|
|
${RM} -fr ${STAGEDIR}
|
|
${FIND} ${PREFIX}/share/doc/netpbm -type f -print | \
|
|
${XARGS} ${CHMOD} ${NONBINMODE}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|