aboutsummaryrefslogtreecommitdiff
path: root/devel/libantlr3c
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-07-15 14:21:30 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-07-15 14:21:30 +0000
commitd3116291b12ddac050aa148147ce6edd11b142f5 (patch)
treefc041259a1852eab152fbcf68652c24eb117b4b2 /devel/libantlr3c
parentc0a31965b7fce3abc47719f177187c307e61e335 (diff)
Notes
Diffstat (limited to 'devel/libantlr3c')
-rw-r--r--devel/libantlr3c/Makefile1
-rw-r--r--devel/libantlr3c/files/patch-antlr3config.h.in13
-rw-r--r--devel/libantlr3c/files/patch-configure14
3 files changed, 25 insertions, 3 deletions
diff --git a/devel/libantlr3c/Makefile b/devel/libantlr3c/Makefile
index 1f4a0a28487d..7e01536ed4e5 100644
--- a/devel/libantlr3c/Makefile
+++ b/devel/libantlr3c/Makefile
@@ -3,6 +3,7 @@
PORTNAME= libantlr3c
PORTVERSION= 3.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.antlr3.org/download/C/
diff --git a/devel/libantlr3c/files/patch-antlr3config.h.in b/devel/libantlr3c/files/patch-antlr3config.h.in
new file mode 100644
index 000000000000..fd26eed5d9e2
--- /dev/null
+++ b/devel/libantlr3c/files/patch-antlr3config.h.in
@@ -0,0 +1,13 @@
+--- antlr3config.h.in.orig
++++ antlr3config.h.in
+@@ -4,7 +4,9 @@
+ #undef ANTLR3_NODEBUGGER
+
+ /* Define if 64 bit mode required */
+-#undef ANTLR3_USE_64BIT
++#ifdef _LP64
++#define ANTLR3_USE_64BIT
++#endif
+
+ /* Define to 1 if you have the `accept' function. */
+ #undef HAVE_ACCEPT
diff --git a/devel/libantlr3c/files/patch-configure b/devel/libantlr3c/files/patch-configure
index 1ea5573f9b9f..15ff1c8b142e 100644
--- a/devel/libantlr3c/files/patch-configure
+++ b/devel/libantlr3c/files/patch-configure
@@ -1,6 +1,14 @@
--- configure.orig 2014-06-29 05:47:03.653220480 +0600
+++ configure 2014-06-29 05:52:37.044197079 +0600
-@@ -10721,7 +10721,7 @@
+@@ -10657,7 +10657,6 @@
+ ;;
+ esac
+
+-CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
+ $as_echo "$CFLAGS" >&6; }
+
+@@ -10721,7 +10720,7 @@
# Checks for header files.
$ac_includes_default
@@ -9,7 +17,7 @@
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
-@@ -10736,6 +10736,10 @@
+@@ -10736,6 +10735,10 @@
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif
@@ -20,7 +28,7 @@
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-@@ -10818,23 +10822,6 @@
+@@ -10818,23 +10821,6 @@
done