Thu Jul 17 12:53:49 2014 UTC ()
Fix SCO OpenServer 5.0.7/3.2 build.
libsocket is needed.


(ryoon)
diff -r1.40 -r1.41 pkgsrc/devel/flex/Makefile

cvs diff -r1.40 -r1.41 pkgsrc/devel/flex/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/flex/Makefile 2014/04/17 16:44:30 1.40
+++ pkgsrc/devel/flex/Makefile 2014/07/17 12:53:49 1.41
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.40 2014/04/17 16:44:30 adam Exp $ 1# $NetBSD: Makefile,v 1.41 2014/07/17 12:53:49 ryoon Exp $
2 2
3DISTNAME= flex-2.5.39 3DISTNAME= flex-2.5.39
4CATEGORIES= lang 4CATEGORIES= lang
5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/} 5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/}
6EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://flex.sourceforge.net/ 9HOMEPAGE= http://flex.sourceforge.net/
10COMMENT= Fast clone of lex(1), the lexical scanner generator 10COMMENT= Fast clone of lex(1), the lexical scanner generator
11LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
12 12
13# needed for building flex.pdf, make it an option? 13# needed for building flex.pdf, make it an option?
14#BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo 14#BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
@@ -21,20 +21,24 @@ USE_PKGLOCALEDIR= yes @@ -21,20 +21,24 @@ USE_PKGLOCALEDIR= yes
21USE_TOOLS+= gm4:run makeinfo 21USE_TOOLS+= gm4:run makeinfo
22GNU_CONFIGURE= yes 22GNU_CONFIGURE= yes
23INFO_FILES= yes 23INFO_FILES= yes
24 24
25TEST_TARGET= check 25TEST_TARGET= check
26LIBS.SunOS+= -lm 26LIBS.SunOS+= -lm
27 27
28.include "../../mk/bsd.prefs.mk" 28.include "../../mk/bsd.prefs.mk"
29 29
30.if ${LOWER_OPSYS} == "aix" 30.if ${LOWER_OPSYS} == "aix"
31CFLAGS+= -D_LINUX_SOURCE_COMPAT 31CFLAGS+= -D_LINUX_SOURCE_COMPAT
32.endif 32.endif
33 33
 34.if ${OS_VARIANT} == "SCOOSR5"
 35LDFLAGS.SCO_SV+= -lsocket
 36.endif
 37
34#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) 38#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
35USE_LANGUAGES= c c++ 39USE_LANGUAGES= c c++
36USE_TOOLS+= gmake # bmake has problems with the test suite 40USE_TOOLS+= gmake # bmake has problems with the test suite
37#.endif 41#.endif
38 42
39.include "../../devel/gettext-lib/buildlink3.mk" 43.include "../../devel/gettext-lib/buildlink3.mk"
40.include "../../mk/bsd.pkg.mk" 44.include "../../mk/bsd.pkg.mk"