json-c: add 32 bit library, needed in order to be able to build fontconfig in 32...
[oi-userland.git] / components / library / poppler / Makefile
blob466d1981e8da1229a7cc3fc4086f0d51b6628a9a
1 #! /usr/bin/sh
4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
7 # 1.0 of the CDDL.
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
15 # Copyright 2014 Andrzej Szeszo. All rights reserved.
18 BUILD_STYLE= cmake
19 USE_PARALLEL_BUILD= yes
20 USE_DEFAULT_TEST_TRANSFORMS= yes
21 include ../../../make-rules/shared-macros.mk
23 COMPONENT_NAME= poppler
24 COMPONENT_VERSION= 24.12.0
25 #HUMAN_VERSION= 24.09.0
26 COMPONENT_SUMMARY= Poppler is a PDF rendering library based on the xpdf-3.0 code base
27 COMPONENT_PROJECT_URL= https://poppler.freedesktop.org
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
30 COMPONENT_ARCHIVE_HASH= sha256:1cf374c3146f3f685d9257701bf0c2866c61d6c202c14d1f5c01a1f3a089028a
31 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
32 COMPONENT_FMRI= library/libpoppler
33 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
34 COMPONENT_LICENSE= GPLv2
35 COMPONENT_LICENSE_FILE= COPYING
37 COMPONENT_NAME_1= testfiles
38 GIT_REPO_1= https://gitlab.freedesktop.org/poppler/test.git
39 GIT_COMMIT_ID_1= ff3133cd
42 include $(WS_MAKE_RULES)/common.mk
44 PATH= $(QT5_BINDIR):$(PATH.gnu)
45 PKG_CONFIG_PATH += $(QT5_PKG_CONFIG_PATH)
47 CFLAGS += $(XPG6MODE)
49 # Add qt library run path
50 LDFLAGS += -Wl,-rpath,$(QT5_LIBDIR)
52 CMAKE_OPTIONS += -DENABLE_STATIC=FALSE
53 CMAKE_OPTIONS += -DWITH_Cairo=ON
54 CMAKE_OPTIONS += -DWITH_GLIB=ON
55 CMAKE_OPTIONS += -DWITH_GTK=ON
56 CMAKE_OPTIONS += -DWITH_JPEG=ON
57 CMAKE_OPTIONS += -DWITH_PNG=ON
58 CMAKE_OPTIONS += -DWITH_GObjectIntrospection=ON
59 CMAKE_OPTIONS += -DENABLE_UNSTABLE_API_ABI_HEADERS=ON
60 CMAKE_OPTIONS += -DENABLE_BOOST=OFF
61 # We don't have gpgmepp.
62 CMAKE_OPTIONS += -DENABLE_GPGME=OFF
63 # jpeg-turbo is not detected without this.
64 CMAKE_OPTIONS += -DENABLE_QT6=OFF
65 CMAKE_OPTIONS += -DQt5Core_DIR=$(QT5_LIBDIR)/cmake/Qt5Core
66 CMAKE_OPTIONS += -DQt5Gui_DIR=$(QT5_LIBDIR)/cmake/Qt5Gui
67 CMAKE_OPTIONS += -DQt5Xml_DIR=$(QT5_LIBDIR)/cmake/Qt5Xml
68 CMAKE_OPTIONS += -DQt5Widgets_DIR=$(QT5_LIBDIR)/cmake/Qt5Widgets
69 CMAKE_OPTIONS += -DQt5Test_DIR=$(QT5_LIBDIR)/cmake/Qt5Test
70 CMAKE_OPTIONS += -DTESTDATADIR=$(COMPONENT_DIR)/$(COMPONENT_NAME_1)-$(GIT_COMMIT_ID_1)
72 COMPONENT_TEST_ENV += LC_ALL=en_US.UTF-8
73 COMPOMENT_TEST_ENV += PATH="$(PATH)"
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
77 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
78 REQUIRED_PACKAGES += image/library/libpng16
79 REQUIRED_PACKAGES += image/library/libtiff
80 REQUIRED_PACKAGES += image/library/openjpeg
81 REQUIRED_PACKAGES += library/desktop/cairo
82 REQUIRED_PACKAGES += library/glib2
83 REQUIRED_PACKAGES += library/lcms2
84 REQUIRED_PACKAGES += library/libpoppler-data
85 REQUIRED_PACKAGES += library/nspr
86 REQUIRED_PACKAGES += library/qt5
87 REQUIRED_PACKAGES += library/zlib
88 REQUIRED_PACKAGES += system/library
89 REQUIRED_PACKAGES += system/library/fontconfig
90 REQUIRED_PACKAGES += system/library/freetype-2
91 REQUIRED_PACKAGES += system/library/math
92 REQUIRED_PACKAGES += system/library/mozilla-nss
93 REQUIRED_PACKAGES += web/curl