summaryrefslogtreecommitdiff
path: root/package/pcre
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/pcre
Initial import
Diffstat (limited to 'package/pcre')
-rw-r--r--package/pcre/Config.in15
-rw-r--r--package/pcre/Makefile37
-rw-r--r--package/pcre/ipkg/libpcre.control4
3 files changed, 56 insertions, 0 deletions
diff --git a/package/pcre/Config.in b/package/pcre/Config.in
new file mode 100644
index 000000000..955cd3ca4
--- /dev/null
+++ b/package/pcre/Config.in
@@ -0,0 +1,15 @@
+config ADK_COMPILE_PCRE
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBPCRE
+
+config ADK_PACKAGE_LIBPCRE
+ prompt "libpcre........................... A Perl Compatible Regular Expression library"
+ tristate
+ default n
+ select ADK_COMPILE_PCRE
+ help
+ A Perl Compatible Regular Expression library
+
+ http://www.pcre.org/
+
diff --git a/package/pcre/Makefile b/package/pcre/Makefile
new file mode 100644
index 000000000..2a24199ff
--- /dev/null
+++ b/package/pcre/Makefile
@@ -0,0 +1,37 @@
+# $Id$
+#-
+# 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:= pcre
+PKG_VERSION:= 7.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 5ca11a81b753de24fb87ddc872ccaa67
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=pcre/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBPCRE,libpcre,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ARGS+= --enable-utf8
+# C++ support uses libstdc++ not uClibc++ so disable it
+CONFIGURE_ARGS+= --disable-cpp
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+XAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} CFLAGS='${TCFLAGS}'
+
+#pre-build:
+# ${MAKE} -C '${WRKBUILD}' \
+# CC_FOR_BUILD='${HOSTCC}' \
+# LINK_FOR_BUILD='${HOSTCC}' \
+# CFLAGS_FOR_BUILD='${HOSTCFLAGS}' \
+# dftables
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libpcre{,posix}.so.* ${IDIR_LIBPCRE}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/pcre/ipkg/libpcre.control b/package/pcre/ipkg/libpcre.control
new file mode 100644
index 000000000..797453eab
--- /dev/null
+++ b/package/pcre/ipkg/libpcre.control
@@ -0,0 +1,4 @@
+Package: libpcre
+Priority: optional
+Section: libs
+Description: a Perl Compatible Regular Expression library