summaryrefslogtreecommitdiff
path: root/package/libantlr3c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-05-12 12:36:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-05-12 12:36:21 +0200
commit8732b26738a41671d8d2223e4d629c20c7e622cc (patch)
tree06c8c984653e39d2039f5fc262cf97ec9140ed65 /package/libantlr3c
parent6964a9c72877e278846d19174819b720b2815ae1 (diff)
add forked-daapd server and all deps
Diffstat (limited to 'package/libantlr3c')
-rwxr-xr-xpackage/libantlr3c/Makefile24
-rw-r--r--package/libantlr3c/patches/patch-antlr3config_h11
-rw-r--r--package/libantlr3c/patches/patch-configure20
3 files changed, 55 insertions, 0 deletions
diff --git a/package/libantlr3c/Makefile b/package/libantlr3c/Makefile
new file mode 100755
index 000000000..cb5d58571
--- /dev/null
+++ b/package/libantlr3c/Makefile
@@ -0,0 +1,24 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= libantlr3c
+PKG_VERSION:= 3.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 674646e1d1bf5c6015435480cead725a
+PKG_DESCR:= ANother Tool for Language Recognition
+PKG_SECTION:= libs
+PKG_SITES:= http://www.antlr.org/download/C/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBANTLR3C,libantlr3c,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIGURE_ENV+= OPTIMFLAGS="$(TARGET_CFLAGS)"
+
+libantlr3c-install:
+ ${INSTALL_DIR} ${IDIR_LIBANTLR3C}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libantlr3c.so* ${IDIR_LIBANTLR3C}/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libantlr3c/patches/patch-antlr3config_h b/package/libantlr3c/patches/patch-antlr3config_h
new file mode 100644
index 000000000..bf860a508
--- /dev/null
+++ b/package/libantlr3c/patches/patch-antlr3config_h
@@ -0,0 +1,11 @@
+--- libantlr3c-3.2.orig/antlr3config.h 2009-09-23 22:50:45.000000000 +0200
++++ libantlr3c-3.2/antlr3config.h 2011-05-10 14:06:43.000000000 +0200
+@@ -5,7 +5,7 @@
+ /* #undef ANTLR3_NODEBUGGER */
+
+ /* Define if 64 bit mode required */
+-#define ANTLR3_USE_64BIT 1
++/* #undef ANTLR3_USE_64BIT */
+
+ /* Define to 1 if you have the `accept' function. */
+ #define HAVE_ACCEPT 1
diff --git a/package/libantlr3c/patches/patch-configure b/package/libantlr3c/patches/patch-configure
new file mode 100644
index 000000000..4fd248902
--- /dev/null
+++ b/package/libantlr3c/patches/patch-configure
@@ -0,0 +1,20 @@
+--- libantlr3c-3.2.orig/configure 2009-12-11 23:55:07.000000000 +0100
++++ libantlr3c-3.2/configure 2011-05-10 14:08:20.000000000 +0200
+@@ -19533,7 +19533,7 @@ sparc*-*solaris*)
+ *)
+ CPPCMNTFLAGS=
+ CCFLAGS64=
+- OPTIMFLAGS="-O"
++ OPTIMFLAGS=""
+ if test x"$enable_debuginfo" = xyes; then
+ DEBUGFLAGS='-g'
+ fi
+@@ -19543,7 +19543,7 @@ esac
+ ;;
+ esac
+
+-CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
++CFLAGS="$CFLAGS $CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
+ { $as_echo "$as_me:$LINENO: result: $CFLAGS" >&5
+ $as_echo "$CFLAGS" >&6; }
+