summaryrefslogtreecommitdiff
path: root/package/libpthread
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/libpthread
Initial import
Diffstat (limited to 'package/libpthread')
-rw-r--r--package/libpthread/Config.in7
-rw-r--r--package/libpthread/Makefile25
-rw-r--r--package/libpthread/ipkg/libpthread.control4
3 files changed, 36 insertions, 0 deletions
diff --git a/package/libpthread/Config.in b/package/libpthread/Config.in
new file mode 100644
index 000000000..dab1b0e97
--- /dev/null
+++ b/package/libpthread/Config.in
@@ -0,0 +1,7 @@
+config ADK_PACKAGE_LIBPTHREAD
+ prompt "libpthread........................ POSIX threads library"
+ tristate
+ default n
+ help
+ POSIX threads library
+
diff --git a/package/libpthread/Makefile b/package/libpthread/Makefile
new file mode 100644
index 000000000..483fcc136
--- /dev/null
+++ b/package/libpthread/Makefile
@@ -0,0 +1,25 @@
+# $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
+
+ifeq ($(ADK_TARGET_LIB_GLIBC),y)
+include ${TOPDIR}/toolchain/glibc/Makefile.inc
+else
+include ${TOPDIR}/toolchain/uClibc/Makefile.inc
+endif
+
+PKG_NAME:= libpthread
+NO_DISTFILES:= 1
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBPTHREAD,libpthread,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_LIBPTHREAD}/lib
+ ${CP} ${STAGING_DIR}/lib/libpthread*.so* ${IDIR_LIBPTHREAD}/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libpthread/ipkg/libpthread.control b/package/libpthread/ipkg/libpthread.control
new file mode 100644
index 000000000..73978c2cc
--- /dev/null
+++ b/package/libpthread/ipkg/libpthread.control
@@ -0,0 +1,4 @@
+Package: libpthread
+Priority: optional
+Section: libs
+Description: POSIX threads library