blob: 0bb82d86b3d9c321a6e3ffcd9214289bd804de52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.79 2003/09/12 20:07:19 grant Exp $
DISTNAME= netpbm-10.11.8
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/}
EXTRACT_SUFX= .tgz
MAINTAINER= tron@NetBSD.org
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 manweb
STAGEDIR= ${WRKDIR}/staging
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
USE_GCC3= # defined
.endif
.if (${OPSYS} == SunOS)
MAKE_ENV+= NETWORKLD="-lsocket -lnsl"
BUILD_DEPENDS+= flex>=2.5.4:../../devel/flex
.else
MAKE_ENV+= NETWORKLD=""
.endif
.if ${OPSYS} == Linux && !exists(/usr/bin/flex)
BUILD_DEPENDS+= flex>=2.5.4:../../devel/flex
.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} -xpC ${PREFIX} -f -
${RM} -fr ${STAGEDIR}
.include "../../graphics/png/buildlink2.mk"
.include "../../graphics/tiff/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|