source: packages/libs/pthsem/Makefile @ 23357

Last change on this file since 23357 was 23357, checked in by mb, 6 years ago

pthsem: Update. This fixes parallel build.

File size: 1.4 KB
Line 
1
2include $(TOPDIR)/rules.mk
3
4PKG_NAME:=pthsem
5PKG_VERSION:=2.0.8
6PKG_RELEASE:=1
7
8PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
9PKG_SOURCE_URL:=http://www.auto.tuwien.ac.at/~mkoegler/pth/
10PKG_MD5SUM:=9144b26dcc27e67498d63dd5456f934c
11
12PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13PKG_FIXUP:=libtool
14PKG_BUILD_PARALLEL:=1
15PKG_INSTALL:=1
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/pthsem
20  SECTION:=libs
21  CATEGORY:=Libraries
22  TITLE:=GNU pth extended with semaphore support
23  URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
24endef
25
26define Package/pthsem/description
27  GNU pth is a user mode multi threading library.
28  pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth.
29endef
30
31MAKE_FLAGS += \
32        OPTIM="$(TARGET_CFLAGS)" \
33        CFLAGS="$(TARGET_CFLAGS)" \
34        DESTDIR="$(PKG_INSTALL_DIR)"
35
36define Build/InstallDev
37        $(INSTALL_DIR) $(2)/bin
38        $(INSTALL_BIN) \
39                $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \
40                $(2)/bin/
41        $(SED) \
42                's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
43                $(2)/bin/pthsem-config
44
45        $(INSTALL_DIR) $(1)/usr/include
46        $(CP)   $(PKG_INSTALL_DIR)/usr/include/*.h \
47                $(1)/usr/include/
48        $(INSTALL_DIR) $(1)/usr/lib
49        $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \
50                $(1)/usr/lib/
51endef
52
53define Package/pthsem/install
54        $(INSTALL_DIR) $(1)/usr/lib
55        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
56endef
57
58$(eval $(call BuildPackage,pthsem))
Note: See TracBrowser for help on using the repository browser.