2003-06-11 22:50:50 +02:00
|
|
|
# $NetBSD: Makefile,v 1.72 2003/06/11 20:50:55 abs Exp $
|
1997-10-15 17:12:12 +02:00
|
|
|
|
2003-04-28 18:24:32 +02:00
|
|
|
DISTNAME= netpbm-10.11.8
|
1997-10-15 17:12:12 +02:00
|
|
|
CATEGORIES= graphics
|
2000-11-11 18:49:22 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
|
2000-05-17 12:13:19 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1997-10-15 17:12:12 +02:00
|
|
|
|
2000-05-17 12:13:19 +02:00
|
|
|
MAINTAINER= tron@netbsd.org
|
2001-01-11 22:05:49 +01:00
|
|
|
HOMEPAGE= http://netpbm.sourceforge.net/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= toolkit for conversion of images between different formats
|
1998-01-24 06:25:12 +01:00
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
USE_BUILDLINK2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PERL5= yes
|
2002-03-14 23:21:42 +01:00
|
|
|
|
2003-03-18 13:11:55 +01:00
|
|
|
INSTALL_TARGET= install-dev install-run
|
|
|
|
MAKE_ENV+= INSTALL="${INSTALL}" STRIPFLAG="${_STRIPFLAG_INSTALL}" \
|
|
|
|
pkgdir="${STAGEDIR}"
|
2000-05-17 12:13:19 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2003-03-18 13:11:55 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST_STAGE
|
|
|
|
REPLACE_PERL= editor/ppmfade editor/ppmshadow editor/pnmquant \
|
|
|
|
generator/ppmrainbow
|
|
|
|
STAGEDIR= ${WRKDIR}/staging
|
1998-11-13 00:26:58 +01:00
|
|
|
|
2000-05-20 13:02:07 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
|
|
|
USE_GCC3=YES
|
|
|
|
. include "../../mk/gcc.buildlink2.mk"
|
2000-05-20 13:02:07 +02:00
|
|
|
.endif
|
|
|
|
|
2001-01-14 14:17:55 +01:00
|
|
|
.if (${OPSYS} == SunOS)
|
|
|
|
MAKE_ENV+= NETWORKLD="-lsocket -lnsl"
|
2002-07-31 00:30:05 +02:00
|
|
|
BUILD_DEPENDS+= flex>=2.5.4:../../devel/flex
|
2001-01-14 14:17:55 +01:00
|
|
|
.else
|
|
|
|
MAKE_ENV+= NETWORKLD=""
|
|
|
|
.endif
|
|
|
|
|
2002-10-20 02:33:50 +02:00
|
|
|
pre-configure:
|
2002-03-14 23:21:42 +01:00
|
|
|
${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config
|
2000-06-24 03:48:08 +02:00
|
|
|
|
2003-03-18 13:11:55 +01:00
|
|
|
pre-install:
|
2003-04-28 18:27:40 +02:00
|
|
|
${RM} -fr ${STAGEDIR}
|
2003-03-18 13:11:55 +01:00
|
|
|
|
2000-05-17 20:41:21 +02:00
|
|
|
post-install:
|
2003-03-18 13:11:55 +01:00
|
|
|
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} && \
|
2003-04-11 20:56:44 +02:00
|
|
|
${GTAR} cf - * | ${GTAR} xpCf ${PREFIX} -
|
2003-04-28 18:24:32 +02:00
|
|
|
${RM} -fr ${STAGEDIR}
|
2000-05-17 20:41:21 +02:00
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
.include "../../graphics/png/buildlink2.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink2.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|