summaryrefslogtreecommitdiff
path: root/package/apr
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/apr
Initial import
Diffstat (limited to 'package/apr')
-rw-r--r--package/apr/Config.in16
-rw-r--r--package/apr/Makefile54
-rw-r--r--package/apr/ipkg/apr.control4
3 files changed, 74 insertions, 0 deletions
diff --git a/package/apr/Config.in b/package/apr/Config.in
new file mode 100644
index 000000000..0cee1afbc
--- /dev/null
+++ b/package/apr/Config.in
@@ -0,0 +1,16 @@
+config ADK_PACKAGE_APR
+ prompt "apr............................... Apache Portable Runtime"
+ tristate
+ default n
+ help
+ Apache Portable Runtime
+
+ http://apr.apache.org
+
+config ADK_PACKAGE_APR_THREADING
+ prompt " Enable threading support"
+ bool
+ default n
+ depends ADK_PACKAGE_APR
+ help
+ Enable threading support in APR.
diff --git a/package/apr/Makefile b/package/apr/Makefile
new file mode 100644
index 000000000..7903f4cf8
--- /dev/null
+++ b/package/apr/Makefile
@@ -0,0 +1,54 @@
+# $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:= apr
+PKG_VERSION:= 0.9.17
+PKG_RELEASE:= 1
+PKG_MD5SUM:= ca1e22d98081a03a33c2a0b8684eb192
+MASTER_SITES:= http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/${PKG_NAME}/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,APR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= ac_cv_func_setpgrp_void=no
+CONFIGURE_ENV+= ac_cv_sizeof_size_t=4
+CONFIGURE_ENV+= ac_cv_sizeof_ssize_t=4
+CONFIGURE_ENV+= ac_cv_file__dev_zero=yes
+CONFIGURE_ENV+= apr_cv_process_shared_works=no
+CONFIGURE_ARGS+= --with-devrandom=/dev/urandom
+
+ifeq (${ADK_PACKAGE_APR_THREADING},y)
+CONFIGURE_ARGS+= --enable-threads
+else
+CONFIGURE_ARGS+= --disable-threads
+endif
+
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_APR}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libapr-0.so* ${IDIR_APR}/usr/lib/
+
+ ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build
+ ${CP} ${WRKINST}/usr/share/build/* ${STAGING_DIR}/usr/share/build/
+
+ # we need to patch paths to get apr-util compiling
+ printf '%s\n%s\n%s\n%s\n%s\nwq\n' \
+ '/^installbuilddir="/s##&${STAGING_DIR}/#' \
+ '/^libdir="/s##&${STAGING_DIR}/#' \
+ '/^datadir="/s##&${STAGING_DIR}/#' \
+ '/^includedir="/s##&${STAGING_DIR}/#' \
+ '/^bindir="/s##&${STAGING_DIR}/#' | \
+ ed -s ${WRKINST}/usr/bin/apr-config
+ifeq (${ADK_PACKAGE_APR_THREADING},y)
+ echo 'Depends: libpthread' >> ${IDIR_APR}/CONTROL/control
+endif
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/apr/ipkg/apr.control b/package/apr/ipkg/apr.control
new file mode 100644
index 000000000..8ea0e5e73
--- /dev/null
+++ b/package/apr/ipkg/apr.control
@@ -0,0 +1,4 @@
+Package: apr
+Priority: optional
+Section: lib
+Description: Apache Portable Runtime