Add libpthread
authorFlorian Fainelli <florian@openwrt.org>
Sat, 1 Jul 2006 10:15:21 +0000 (10:15 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 1 Jul 2006 10:15:21 +0000 (10:15 +0000)
SVN-Revision: 4102

libs/libpthread/Makefile [new file with mode: 0644]

diff --git a/libs/libpthread/Makefile b/libs/libpthread/Makefile
new file mode 100644 (file)
index 0000000..5be6160
--- /dev/null
@@ -0,0 +1,39 @@
+# $Id: Makefile 3843 2006-05-30 18:55:52Z nbd $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libpthread
+PKG_VERSION:=0.9.8
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libpthread
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=A POSIX thread library
+DESCRIPTION:=A POSIX thread library
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
+define Package/libpthread/install
+       install -m0755 -d $(1)/lib
+       $(CP) $(STAGING_DIR)/lib/libpthread.so.* $(1)/lib/
+       $(CP) $(STAGING_DIR)/lib/libpthread-*.so $(1)/lib/
+endef
+
+define Build/InstallDev
+endef
+       
+define Build/UninstallDev
+endef
+
+$(eval $(call BuildPackage,libpthread))