Add libpthread package
[openwrt.git] / openwrt / package / libpthread / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := libpthread
6 PKG_VERSION := 0.9.27
7 PKG_RELEASE := 1
8
9 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
10 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
11 PKG_IPK := $(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
12 PKG_IPK_DIR :=$(PKG_BUILD_DIR)/ipkg/
13
14 .NOTPARALLEL:
15
16 $(PKG_IPK): $(STAGING_DIR)/lib/libpthread.so
17 rm -rf $(PKG_BUILD_DIR)
18 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
19 mkdir -p $(PKG_IPK_DIR)/lib
20 cp -fp $(STAGING_DIR)/lib/libpthread.so.* $(PKG_IPK_DIR)/lib/
21 cp -fp $(STAGING_DIR)/lib/libpthread-*.so $(PKG_IPK_DIR)/lib/
22 $(STRIP) $(PKG_IPK_DIR)/lib/*
23 mkdir -p $(PACKAGE_DIR)
24 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
25
26 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
27 $(IPKG) install $(PKG_IPK)
28
29 source:
30 prepare:
31 compile: $(PKG_IPK)
32 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
33
34 clean:
35 rm -rf $(PKG_BUILD_DIR)
36 rm -f $(PKG_IPK)
This page took 0.040312 seconds and 5 git commands to generate.