confuse: update to 3.3
Fixed license information. Switched to PKG_INSTALL and PKG_BUILD_PARALLEL for consistency and faster compilation. Minor cleanups. Remove pointless UninstallDev section. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
e06825218f
commit
0cf116e6bc
1 changed files with 10 additions and 17 deletions
|
@ -8,16 +8,21 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=confuse
|
PKG_NAME:=confuse
|
||||||
PKG_VERSION:=3.2.2
|
PKG_VERSION:=3.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://github.com/martinh/libconfuse/releases/download/v$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/martinh/libconfuse/releases/download/v$(PKG_VERSION)
|
||||||
PKG_HASH:=a9240b653d02e8cfc52db48e8c4224426e528e1faa09b65e8ca08a197fad210b
|
PKG_HASH:=1dd50a0320e135a55025b23fcdbb3f0a81913b6d0b0a9df8cc2fdf3b3dc67010
|
||||||
|
|
||||||
PKG_MAINTAINER:=
|
PKG_MAINTAINER:=
|
||||||
PKG_LICENSE:=ISC
|
PKG_LICENSE:=ISC
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_CPE_ID:=cpe:/a:libconfuse_project:libconfuse
|
PKG_CPE_ID:=cpe:/a:libconfuse_project:libconfuse
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/confuse
|
define Package/confuse
|
||||||
|
@ -42,33 +47,21 @@ define Package/confuse/description
|
||||||
before, but was changed to not confuse with other similar libraries.
|
before, but was changed to not confuse with other similar libraries.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--without-libiconv-prefix \
|
--without-libiconv-prefix \
|
||||||
--without-libintl-prefix \
|
--without-libintl-prefix \
|
||||||
--disable-examples
|
--disable-examples \
|
||||||
|
--with-pic
|
||||||
MAKE_FLAGS += \
|
|
||||||
-C $(PKG_BUILD_DIR)/src \
|
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
||||||
all install \
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/confuse.h $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/confuse.h $(1)/usr/include/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfuse.{a,so*} $(1)/usr/lib/
|
||||||
$(CP) $(PKG_BUILD_DIR)/*.pc $(1)/usr/lib/pkgconfig/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libconfuse.pc $(1)/usr/lib/pkgconfig/
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/UninstallDev
|
|
||||||
rm -rf \
|
|
||||||
$(STAGING_DIR)/usr/include/confuse.h \
|
|
||||||
$(STAGING_DIR)/usr/lib/libconfuse.{a,so*}
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/confuse/install
|
define Package/confuse/install
|
||||||
|
|
Loading…
Reference in a new issue