libpbc: Pass CFLAGS properly 9849/head
authorRosen Penev <rosenp@gmail.com>
Tue, 27 Aug 2019 22:08:07 +0000 (15:08 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 27 Aug 2019 22:29:34 +0000 (15:29 -0700)
This was breaking ASLR builds.

Fixed license tag.

Added PKG_BUILD_PARALLEL for faster compilation.

Small Makefile cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libpbc/Makefile
libs/libpbc/patches/010-pass-cflags.patch [new file with mode: 0644]

index 5a72b6bea606024c01e27c85a0097da62262bf51..77e04db347a7d02f1f9c31a8644bb7d3e5899933 100644 (file)
@@ -2,18 +2,21 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libpbc
 PKG_VERSION:=0.5.14
-PKG_RELEASE:=1
-PKG_HASH:=772527404117587560080241cedaf441e5cac3269009cdde4c588a1dce4c23d2
+PKG_RELEASE:=2
 
 PKG_SOURCE:=pbc-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://crypto.stanford.edu/pbc/files/
+PKG_HASH:=772527404117587560080241cedaf441e5cac3269009cdde4c588a1dce4c23d2
 PKG_BUILD_DIR:=$(BUILD_DIR)/pbc-$(PKG_VERSION)
-PKG_INSTALL:=1
 
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
-PKG_LICENSE:=LGPL-3.0+
+PKG_LICENSE:=LGPL-3.0-or-later
 PKG_LICENSE_FILES:=COPYING
 
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libpbc
diff --git a/libs/libpbc/patches/010-pass-cflags.patch b/libs/libpbc/patches/010-pass-cflags.patch
new file mode 100644 (file)
index 0000000..078ff83
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -10,7 +10,6 @@ AC_CONFIG_SRCDIR([./])
+ LT_INIT
+ #AC_CANONICAL_HOST
+-CFLAGS=
+ default_fink_path=/sw
+ case $host_os in
+      darwin*)