summaryrefslogtreecommitdiff
path: root/graphics/netpbm
diff options
context:
space:
mode:
authorgrant <grant>2004-02-13 10:53:09 +0000
committergrant <grant>2004-02-13 10:53:09 +0000
commit3b70cdd65b5c1e32fc0c0769f604fbbd889fca0b (patch)
treec25894f4531c5266616618c0234d975ab160960f /graphics/netpbm
parentd005a1a82cbbf1785cc83150e0acd5e876fe80cb (diff)
downloadpkgsrc-3b70cdd65b5c1e32fc0c0769f604fbbd889fca0b.tar.gz
USE_GNU_TOOLS+=lex instead of .if OPSYS || OPSYS .. and simplify
passing the socket libraries on Solaris.
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index f22df7763dc..fb1a49bfbe3 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.90 2004/02/01 01:43:29 jlam Exp $
+# $NetBSD: Makefile,v 1.91 2004/02/13 10:53:09 grant Exp $
DISTNAME= netpbm-10.11.8
PKGREVISION= 1
@@ -13,7 +13,7 @@ COMMENT= Toolkit for conversion of images between different formats
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
-USE_GNU_TOOLS+= make
+USE_GNU_TOOLS+= lex make
USE_PERL5= yes
INSTALL_TARGET= install-dev install-run
@@ -25,23 +25,15 @@ REPLACE_PERL= editor/ppmfade editor/ppmshadow editor/pnmquant \
generator/ppmrainbow manweb
STAGEDIR= ${WRKDIR}/staging
+LIBS.SunOS= -lsocket -lnsl
+MAKE_ENV+= NETWORKLD="${LIBS}"
+
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+= 2.95.3
.endif
-.if ${OPSYS} == SunOS
-MAKE_ENV+= NETWORKLD="-lsocket -lnsl"
-.else
-MAKE_ENV+= NETWORKLD=""
-.endif
-
-.if (${OPSYS} == SunOS) || (${OPSYS} == IRIX) || \
- (${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