mxe/src/poppler.mk

31 lines
1.1 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2012-04-17 20:07:25 +01:00
PKG := poppler
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://poppler.freedesktop.org/
2012-04-17 20:07:25 +01:00
$(PKG)_IGNORE :=
2019-03-03 16:45:42 +00:00
$(PKG)_VERSION := 0.74.0
$(PKG)_CHECKSUM := 92e09fd3302567fd36146b36bb707db43ce436e8841219025a82ea9fb0076b2f
2012-04-17 20:07:25 +01:00
$(PKG)_SUBDIR := poppler-$($(PKG)_VERSION)
2013-10-05 18:56:28 +01:00
$(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.xz
2017-03-05 03:41:39 +00:00
$(PKG)_URL := https://poppler.freedesktop.org/$($(PKG)_FILE)
2019-03-03 16:45:42 +00:00
$(PKG)_DEPS := cc cairo curl freetype glib jpeg lcms libpng libwebp openjpeg qtbase tiff zlib
2012-04-17 20:07:25 +01:00
define $(PKG)_UPDATE
2019-03-03 16:45:42 +00:00
$(call GET_LATEST_VERSION, https://poppler.freedesktop.org/releases.html, poppler-)
2012-04-17 20:07:25 +01:00
endef
define $(PKG)_BUILD
2019-03-03 16:45:42 +00:00
# build and install the library
cd '$(BUILD_DIR)' && $(TARGET)-cmake \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON -DENABLE_TESTS=OFF -DENABLE_UTILS=OFF \
'$(SOURCE_DIR)'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
2012-04-17 20:07:25 +01:00
2019-03-03 16:45:42 +00:00
# compile test
2012-04-17 20:07:25 +01:00
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
2019-03-03 16:45:42 +00:00
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' poppler-cpp --cflags --libs`
2012-04-17 20:07:25 +01:00
endef