summaryrefslogtreecommitdiffstats
path: root/src/liblaxjson.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblaxjson.mk')
-rw-r--r--src/liblaxjson.mk19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/liblaxjson.mk b/src/liblaxjson.mk
index 2816e40..b491c41 100644
--- a/src/liblaxjson.mk
+++ b/src/liblaxjson.mk
@@ -5,29 +5,20 @@ $(PKG)_WEBSITE := https://github.com/andrewrk/liblaxjson
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.0.5
$(PKG)_CHECKSUM := ffc495b5837e703b13af3f5a5790365dc3a6794f12f0fa93fb8593b162b0b762
-$(PKG)_SUBDIR := liblaxjson-$($(PKG)_VERSION)
-$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL := https://github.com/andrewrk/liblaxjson/archive/$($(PKG)_VERSION).tar.gz
+$(PKG)_GH_CONF := andrewrk/liblaxjson/tags
$(PKG)_DEPS := cc
-define $(PKG)_UPDATE
- $(WGET) -q -O- 'https://github.com/andrewrk/liblaxjson/releases' | \
- $(SED) -n 's,.*/archive/\([0-9][^>]*\)\.tar.*,\1,p' | \
- head -1
-endef
-
define $(PKG)_BUILD
- mkdir '$(1).build'
- cd '$(1).build' && '$(TARGET)-cmake' '$(1)'
+ cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)'
- '$(TARGET)-cmake' --build '$(1).build' -- -j '$(JOBS)'
+ '$(TARGET)-cmake' --build '$(BUILD_DIR)' -- -j '$(JOBS)'
'$(TARGET)-cmake' \
-DCMAKE_INSTALL_COMPONENT=$(if $(BUILD_STATIC),static,shared)-lib \
- -P '$(1).build/cmake_install.cmake'
+ -P '$(BUILD_DIR)/cmake_install.cmake'
'$(TARGET)-cmake' \
-DCMAKE_INSTALL_COMPONENT=header \
- -P '$(1).build/cmake_install.cmake'
+ -P '$(BUILD_DIR)/cmake_install.cmake'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic -std=c99 \