commit: e2522b737e6be889c7c3aa4eeb2523f326218b63
parent e0928eea498362478f693ae87e08b29ed0222c8c
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 10 Apr 2018 13:24:26 -0700
Add flex 2.6.4
This is required to build linux 4.16 and later.
Diffstat:
7 files changed, 122 insertions(+), 0 deletions(-)
diff --git a/pkg/flex/.gitignore b/pkg/flex/.gitignore
@@ -0,0 +1,2 @@
+/flex-2.6.4.tar.gz
+/src
diff --git a/pkg/flex/config.h b/pkg/flex/config.h
@@ -0,0 +1,83 @@
+/* #undef CRAY_STACKSEG_END */
+/* #undef C_ALLOCA */
+/* #undef ENABLE_NLS */
+#define HAVE_ALLOCA 1
+#define HAVE_ALLOCA_H 1
+/* #undef HAVE_AVAILABLE_ */
+/* #undef HAVE_BY */
+/* #undef HAVE_CFLOCALECOPYCURRENT */
+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
+/* #undef HAVE_DCGETTEXT */
+#define HAVE_DLFCN_H 1
+/* #undef HAVE_DNL */
+#define HAVE_DUP2 1
+/* #undef HAVE_ENABLED */
+#define HAVE_FORK 1
+/* #undef HAVE_FUNCTION_ */
+/* #undef HAVE_GETTEXT */
+/* #undef HAVE_HAVE */
+/* #undef HAVE_ICONV */
+/* #undef HAVE_IF */
+#define HAVE_INTTYPES_H 1
+/* #undef HAVE_IS */
+#define HAVE_LIBINTL_H 1
+#define HAVE_LIBM 1
+#define HAVE_LIMITS_H 1
+#define HAVE_LOCALE_H 1
+#define HAVE_MALLOC 1
+#define HAVE_MALLOC_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_MEMSET 1
+/* #undef HAVE_NEEDED */
+#define HAVE_NETINET_IN_H 1
+/* #undef HAVE_NLS */
+/* #undef HAVE_NOT */
+/* #undef HAVE_ONLY */
+/* #undef HAVE_OPENBSD */
+#define HAVE_POW 1
+#define HAVE_PTHREAD_H 1
+#define HAVE_REALLOC 1
+/* #undef HAVE_REALLOCARRAY */
+#define HAVE_REGCOMP 1
+#define HAVE_REGEX_H 1
+/* #undef HAVE_REPLACEMENT */
+#define HAVE_SETLOCALE 1
+#define HAVE_STDBOOL_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRDUP 1
+#define HAVE_STRINGS_H 1
+#define HAVE_STRING_H 1
+#define HAVE_STRTOL 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_WAIT_H 1
+#define HAVE_UNISTD_H 1
+/* #undef HAVE_USED */
+#define HAVE_VFORK 1
+/* #undef HAVE_VFORK_H */
+/* #undef HAVE_WE */
+#define HAVE_WORKING_FORK 1
+#define HAVE_WORKING_VFORK 1
+#define HAVE__BOOL 1
+#define LT_OBJDIR ".libs/"
+#define M4 "/bin/m4"
+#define PACKAGE "flex"
+#define PACKAGE_BUGREPORT "flex-help@lists.sourceforge.net"
+#define PACKAGE_NAME "the fast lexical analyser generator"
+#define PACKAGE_STRING "the fast lexical analyser generator 2.6.4"
+#define PACKAGE_TARNAME "flex"
+#define PACKAGE_URL ""
+#define PACKAGE_VERSION "2.6.4"
+/* #undef STACK_DIRECTION */
+#define STDC_HEADERS 1
+#define VERSION "2.6.4"
+/* #undef YYTEXT_POINTER */
+/* #undef const */
+/* #undef malloc */
+/* #undef pid_t */
+/* #undef realloc */
+/* #undef size_t */
+/* #undef vfork */
diff --git a/pkg/flex/gen.lua b/pkg/flex/gen.lua
@@ -0,0 +1,33 @@
+cflags{
+ '-D HAVE_CONFIG_H',
+ '-I $dir',
+}
+
+exe('flex', [[src/(
+ buf.c
+ ccl.c
+ dfa.c
+ ecs.c
+ filter.c
+ gen.c
+ main.c
+ misc.c
+ nfa.c
+ options.c
+ parse.c
+ regex.c
+ scan.c
+ scanflags.c
+ scanopt.c
+ skel.c
+ sym.c
+ tables.c
+ tables_shared.c
+ tblcmp.c
+ yylex.c
+)]])
+file('bin/flex', '755', '$outdir/flex')
+sym('bin/lex', 'flex')
+man{'doc/flex.1'}
+
+fetch 'curl'
diff --git a/pkg/flex/rev b/pkg/flex/rev
@@ -0,0 +1 @@
+1
diff --git a/pkg/flex/sha256 b/pkg/flex/sha256
@@ -0,0 +1 @@
+e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995 flex-2.6.4.tar.gz
diff --git a/pkg/flex/url b/pkg/flex/url
@@ -0,0 +1 @@
+url = "https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz"
diff --git a/pkg/gen.lua b/pkg/gen.lua
@@ -19,6 +19,7 @@ subgen 'expat'
subgen 'farbfeld'
subgen 'ffmpeg'
subgen 'file'
+subgen 'flex'
subgen 'fontconfig'
subgen 'freetype'
subgen 'fribidi'