pkgsrc/graphics/netpbm/Makefile

66 lines
1.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.72 2003/06/11 20:50:55 abs Exp $
DISTNAME= netpbm-10.11.8
CATEGORIES= graphics
2000-11-11 18:49:22 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
EXTRACT_SUFX= .tgz
MAINTAINER= tron@netbsd.org
2001-01-11 22:05:49 +01:00
HOMEPAGE= http://netpbm.sourceforge.net/
COMMENT= toolkit for conversion of images between different formats
USE_BUILDLINK2= yes
USE_GMAKE= yes
USE_PERL5= yes
INSTALL_TARGET= install-dev install-run
MAKE_ENV+= INSTALL="${INSTALL}" STRIPFLAG="${_STRIPFLAG_INSTALL}" \
pkgdir="${STAGEDIR}"
MAKEFILE= GNUmakefile
PLIST_SRC= ${WRKDIR}/PLIST_STAGE
REPLACE_PERL= editor/ppmfade editor/ppmshadow editor/pnmquant \
generator/ppmrainbow
STAGEDIR= ${WRKDIR}/staging
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
USE_GCC3=YES
. include "../../mk/gcc.buildlink2.mk"
.endif
2001-01-14 14:17:55 +01:00
.if (${OPSYS} == SunOS)
MAKE_ENV+= NETWORKLD="-lsocket -lnsl"
BUILD_DEPENDS+= flex>=2.5.4:../../devel/flex
2001-01-14 14:17:55 +01:00
.else
MAKE_ENV+= NETWORKLD=""
.endif
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 | ${SORT} >${PLIST_SRC} && \
${FIND} * -type d | \
while read DIR; do \
${TEST} -d "${PREFIX}/$${DIR}" || \
${ECHO} "@dirrm $${DIR}"; \
done >>${PLIST_SRC} && \
${GTAR} cf - * | ${GTAR} xpCf ${PREFIX} -
${RM} -fr ${STAGEDIR}
.include "../../graphics/png/buildlink2.mk"
.include "../../graphics/tiff/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"