| @@ -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 | |
3 | DISTNAME= flex-2.5.39 | | 3 | DISTNAME= flex-2.5.39 |
4 | CATEGORIES= lang | | 4 | CATEGORIES= lang |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/} | | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/} |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://flex.sourceforge.net/ | | 9 | HOMEPAGE= http://flex.sourceforge.net/ |
10 | COMMENT= Fast clone of lex(1), the lexical scanner generator | | 10 | COMMENT= Fast clone of lex(1), the lexical scanner generator |
11 | LICENSE= 2-clause-bsd | | 11 | LICENSE= 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 |
21 | USE_TOOLS+= gm4:run makeinfo | | 21 | USE_TOOLS+= gm4:run makeinfo |
22 | GNU_CONFIGURE= yes | | 22 | GNU_CONFIGURE= yes |
23 | INFO_FILES= yes | | 23 | INFO_FILES= yes |
24 | | | 24 | |
25 | TEST_TARGET= check | | 25 | TEST_TARGET= check |
26 | LIBS.SunOS+= -lm | | 26 | LIBS.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" |
31 | CFLAGS+= -D_LINUX_SOURCE_COMPAT | | 31 | CFLAGS+= -D_LINUX_SOURCE_COMPAT |
32 | .endif | | 32 | .endif |
33 | | | 33 | |
| | | 34 | .if ${OS_VARIANT} == "SCOOSR5" |
| | | 35 | LDFLAGS.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]) |
35 | USE_LANGUAGES= c c++ | | 39 | USE_LANGUAGES= c c++ |
36 | USE_TOOLS+= gmake # bmake has problems with the test suite | | 40 | USE_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" |