Subject: pkg/22541: graphics/netpbm needs flex on GNU/Linux systems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <soren@bob.blef.org>
List: netbsd-bugs
Date: 08/18/2003 16:28:34
>Number:         22541
>Category:       pkg
>Synopsis:       graphics/netpbm needs flex on GNU/Linux systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 18 23:29:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Soren Jacobsen
>Release:        NetBSD 1.6.1
>Organization:
>Environment:
Debian GNU/Linux without the 'flex' deb installed.
pkgsrc as of 08/18/2003.
>Description:
netpbm needs flex to build, but on my Debian system it is not present.
>How-To-Repeat:
Try to install netpbm on any system without flex.
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/netpbm/Makefile,v
retrieving revision 1.76
diff -u -r1.76 Makefile
--- Makefile	2003/07/21 16:51:48	1.76
+++ Makefile	2003/08/18 23:23:28
@@ -36,6 +36,10 @@
 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
 
>Release-Note:
>Audit-Trail:
>Unformatted: