libyaml-cpp: Update to 0.63 10595/head
authorRosen Penev <rosenp@gmail.com>
Wed, 20 Nov 2019 02:28:15 +0000 (18:28 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 20 Nov 2019 05:23:11 +0000 (21:23 -0800)
Several Makefile cleanups for consistency.

Added ABI_VERSION.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libyaml-cpp/Makefile

index b71be2d623d4918416755706e6b05ff7edbf6148..2355b0a129153681521fc84a65d26306efaa9906 100644 (file)
@@ -8,46 +8,46 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libyaml-cpp
-PKG_VERSION:=0.6.2
-PKG_RELEASE:=2
+PKG_VERSION:=0.6.3
+PKG_RELEASE:=1
 
 PKG_SOURCE:=yaml-cpp-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/jbeder/yaml-cpp/tar.gz/yaml-cpp-$(PKG_VERSION)?
-PKG_HASH:=e4d8560e163c3d875fd5d9e5542b5fd5bec810febdcba61481fe5fc4e6b1fd05
+PKG_HASH:=77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed
+PKG_BUILD_DIR:=$(BUILD_DIR)/yaml-cpp-yaml-cpp-$(PKG_VERSION)
 
 PKG_MAINTAINER:= Steven Hessing <steven.hessing@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:yaml-cpp_project:yaml-cpp
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/yaml-cpp-yaml-cpp-$(PKG_VERSION)
+CMAKE_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
-CMAKE_INSTALL:=1
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
-CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
-#CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=OFF
-CMAKE_OPTIONS += -DYAML_CPP_BUILD_TESTS=OFF
-CMAKE_OPTIONS += -DYAML_CPP_BUILD_TOOLS=OFF
-
 
 define Package/libyaml-cpp
-       SECTION:=development
-       CATEGORY:=Libraries
-       TITLE:=libyaml-cpp
-       URL:=https://github.com/jbeder/yaml-cpp
-       DEPENDS:=+libstdcpp
+  SECTION:=development
+  CATEGORY:=Libraries
+  TITLE:=libyaml-cpp
+  URL:=https://github.com/jbeder/yaml-cpp
+  DEPENDS:=+libstdcpp
+  ABI_VERSION:=0.6
 endef
 
 define Package/libyaml-cpp/description
-yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
+  yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
 endef
 
+CMAKE_OPTIONS += \
+       -DYAML_BUILD_SHARED_LIBS=ON \
+       -DYAML_CPP_BUILD_TESTS=OFF \
+       -DYAML_CPP_BUILD_TOOLS=OFF
+
 define Package/libyaml-cpp/install
        $(INSTALL_DIR) $(1)/usr/lib
-       #$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml-cpp.so.0.6 $(1)/usr/lib/
-       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml-cpp.so.?.? $(1)/usr/lib/
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml-cpp.so.$(ABI_VERSION) $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,libyaml-cpp))