summaryrefslogtreecommitdiffstats
path: root/src/libharu.mk
diff options
context:
space:
mode:
authorMartin Müllenhaupt <mm+git@netlair.de>2017-06-05 09:51:05 (GMT)
committerMartin Müllenhaupt <mm+git@netlair.de>2017-07-21 09:18:38 (GMT)
commit1ec5fc610a590c27251f565f59c17dce735b8626 (patch)
tree05ecbb7b01eb33249bc1fd01c6033016794122b4 /src/libharu.mk
parent487359e28300ad5601379afac2cc347f8ba22d4d (diff)
downloadmxe-1ec5fc610a590c27251f565f59c17dce735b8626.zip
mxe-1ec5fc610a590c27251f565f59c17dce735b8626.tar.gz
mxe-1ec5fc610a590c27251f565f59c17dce735b8626.tar.bz2
libharu: update
Diffstat (limited to 'src/libharu.mk')
-rw-r--r--src/libharu.mk31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/libharu.mk b/src/libharu.mk
index a405240..0aca0b8 100644
--- a/src/libharu.mk
+++ b/src/libharu.mk
@@ -3,11 +3,11 @@
PKG := libharu
$(PKG)_WEBSITE := http://libharu.org/
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 2.2.1
-$(PKG)_CHECKSUM := 45fd57044042c0e290ad0f11fc19eeb31b50c4b9edadf9d89dd5a7d9ae4865a7
-$(PKG)_SUBDIR := libharu-$($(PKG)_VERSION)
-$(PKG)_FILE := libharu-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL := http://libharu.org/files/$($(PKG)_FILE)
+$(PKG)_VERSION := 2.3.0
+$(PKG)_CHECKSUM := 34de0ed4e994d9c704339292740b8019c33e8538814e104d882508a33517d1a8
+$(PKG)_SUBDIR := libharu-RELEASE_$(subst .,_,$($(PKG)_VERSION))
+$(PKG)_FILE := $($(PKG)_SUBDIR).zip
+$(PKG)_URL := https://github.com/$(PKG)/$(PKG)/archive/RELEASE_$(subst .,_,$($(PKG)_VERSION)).zip
$(PKG)_DEPS := gcc libpng zlib
define $(PKG)_UPDATE
@@ -19,13 +19,16 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- cd '$(1)' && ./configure \
- --host='$(TARGET)' \
- --prefix='$(PREFIX)/$(TARGET)' \
- --disable-shared \
- --with-zlib='$(PREFIX)/$(TARGET)' \
- --with-png='$(PREFIX)/$(TARGET)'
- $(MAKE) -C '$(1)' -j '$(JOBS)' install
+ mkdir '$(1)/build'
+ cd '$(1)/build' && '$(TARGET)-cmake' .. \
+ -DCMAKE_C_FLAGS=$(if $(BUILD_STATIC),,-DHPDF_DLL_MAKE) \
+ -DLIBHPDF_SHARED=$(if $(BUILD_STATIC),FALSE,TRUE) \
+ -DLIBHPDF_STATIC=$(if $(BUILD_STATIC),TRUE,FALSE) \
+ -DDEVPAK=ON
+ $(MAKE) -C '$(1)/build' -j '$(JOBS)' install VERBOSE=1
+ $(TARGET)-gcc -o $(PREFIX)/$(TARGET)/bin/test-$(PKG).exe \
+ $(if $(BUILD_STATIC),,-DHPDF_DLL) \
+ '$(1)/demo/slide_show_demo.c' \
+ $(if $(BUILD_STATIC),'-lhpdfs','-lhpdf') \
+ `$(TARGET)-pkg-config libpng zlib --libs`
endef
-
-$(PKG)_BUILD_SHARED =