From 9fe2d12df9f2231ea0c44afde377de3f4ac292af Mon Sep 17 00:00:00 2001 From: Othmar Truniger Date: Wed, 31 Dec 2014 10:03:15 +0100 Subject: [PATCH 1/3] pthsem: add Makefile for new package should replace the one in old packages Signed-off-by: Othmar Truniger --- libs/pthsem/Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 libs/pthsem/Makefile diff --git a/libs/pthsem/Makefile b/libs/pthsem/Makefile new file mode 100644 index 000000000..e69c7f52d --- /dev/null +++ b/libs/pthsem/Makefile @@ -0,0 +1,68 @@ +# +# Copyright (C) 2008-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=pthsem +PKG_VERSION:=2.0.8 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Othmar Truniger +PKG_LICENSE:=LGPL-2.1+ +PKG_LICENSE_FILES:=COPYING + +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.auto.tuwien.ac.at/~mkoegler/pth/ +PKG_MD5SUM:=9144b26dcc27e67498d63dd5456f934c + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_FIXUP:=autoreconf +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/pthsem + SECTION:=libs + CATEGORY:=Libraries + TITLE:=GNU pth extended with semaphore support + URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth +endef + +define Package/pthsem/description + GNU pth is a user mode multi threading library. + pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth. +endef + +MAKE_FLAGS += \ + OPTIM="$(TARGET_CFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + DESTDIR="$(PKG_INSTALL_DIR)" + +define Build/InstallDev + $(INSTALL_DIR) $(2)/bin + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \ + $(2)/bin/ + $(SED) \ + 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \ + $(2)/bin/pthsem-config + + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h \ + $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \ + $(1)/usr/lib/ +endef + +define Package/pthsem/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,pthsem)) From c44dfcf4ec41bc4bafce491a9b6bb7c6cb2c87ac Mon Sep 17 00:00:00 2001 From: Othmar Truniger Date: Wed, 31 Dec 2014 10:04:55 +0100 Subject: [PATCH 2/3] pthsem: add patch for linux 3.x Signed-off-by: Othmar Truniger --- libs/pthsem/patches/001-linux3x-fix.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libs/pthsem/patches/001-linux3x-fix.patch diff --git a/libs/pthsem/patches/001-linux3x-fix.patch b/libs/pthsem/patches/001-linux3x-fix.patch new file mode 100644 index 000000000..3b968f727 --- /dev/null +++ b/libs/pthsem/patches/001-linux3x-fix.patch @@ -0,0 +1,12 @@ +--- pthsem-2.0.8/acinclude.m4 ++++ pthsem-2.0.8/acinclude.m4 +@@ -892,6 +892,8 @@ + case "x`uname -r`" in + changequote(, )dnl + x2.[23456789]* ) ;; ++changequote(, )dnl ++ x3.* ) ;; + changequote([, ]) + * ) braindead=yes ;; + esac + From 1b32623c5ac59686fece2cb7cf948c4fa9d14c48 Mon Sep 17 00:00:00 2001 From: Othmar Truniger Date: Wed, 31 Dec 2014 13:56:28 +0100 Subject: [PATCH 3/3] pthsem: updated Makefile Signed-off-by: Othmar Truniger --- libs/pthsem/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pthsem/Makefile b/libs/pthsem/Makefile index e69c7f52d..a36bc0296 100644 --- a/libs/pthsem/Makefile +++ b/libs/pthsem/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pthsem PKG_VERSION:=2.0.8 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Othmar Truniger PKG_LICENSE:=LGPL-2.1+