History

ghostscript v10.01.1

Ghostscript needs pread() and pwrite() to use tesseract, so it has to be disabled. The test binary fails to build with -pedantic: include/ghostscript/iapi.h:395:27: error: enumerator value for 'gs_spt_more_to_come' is not an integer constant expression [-Werror=pedantic]

darealshinji committed 3 years ago

Commit 2846c1e1 parent 82339a22 files · +11 −767Browse files

Showing the changes to src/ghostscript.mk (1 of 2 files). Show all

Unified · Split

src/ghostscript.mk+11−12
@@ -3,9 +3,10 @@ · 2 unmodified lines
3PKG := ghostscript3PKG := ghostscript
4$(PKG)_WEBSITE := https://www.ghostscript.com/4$(PKG)_WEBSITE := https://www.ghostscript.com/
5$(PKG)_IGNORE :=5$(PKG)_IGNORE :=
6$(PKG)_VERSION := 9.506$(PKG)_VERSION := 10.01.1
7$(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION))7$(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION))
8$(PKG)_CHECKSUM := db9bb0817b6f22974e6d5ad751975f346420c2c86a0afcfe6b4e09c47803e7d48$(PKG)_MAJORVER := $(firstword $(subst ., ,$($(PKG)_VERSION)))
9$(PKG)_CHECKSUM := c91193635aa2578f9508b8ba846106c1e3705fbd3fed5fd9a015f21b55f15d68
9$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)10$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
10$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz11$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
11$(PKG)_URL := https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$($(PKG)_NODOTVER)/$($(PKG)_FILE)12$(PKG)_URL := https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$($(PKG)_NODOTVER)/$($(PKG)_FILE)
@@ -18,16 +19,14 @@ define $(PKG)_UPDATE · 6 unmodified lines
18endef19endef
19 20
20define $(PKG)_BUILD21define $(PKG)_BUILD
21 cp -f `automake --print-libdir`/{config.guess,config.sub,install-sh} '$(SOURCE_DIR)'
22 cd '$(SOURCE_DIR)' && rm -rf freetype jpeg lcms2mt libpng openjpeg tiff22 cd '$(SOURCE_DIR)' && rm -rf freetype jpeg lcms2mt libpng openjpeg tiff
23 cd '$(SOURCE_DIR)' && autoreconf -f -i
24 cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \23 cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
25 CPPFLAGS='$(CPPFLAGS) -DHAVE_SYS_TIMES_H=0' \
26 $(MXE_CONFIGURE_OPTS) \24 $(MXE_CONFIGURE_OPTS) \
27 --with-libiconv=gnu \25 --with-libiconv=gnu \
28 --without-local-zlib26 --without-local-zlib \
29 $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(if $(BUILD_STATIC),libgs,so) || \27 --without-tesseract
30 $(MAKE) -C '$(BUILD_DIR)' -j '1' $(if $(BUILD_STATIC),libgs,so)28 $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(if $(BUILD_STATIC),libgs,so-only) || \
29 $(MAKE) -C '$(BUILD_DIR)' -j '1' $(if $(BUILD_STATIC),libgs,so-only)
31 30
32 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/ghostscript'31 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/ghostscript'
33 $(INSTALL) '$(SOURCE_DIR)/devices/gdevdsp.h' '$(PREFIX)/$(TARGET)/include/ghostscript/gdevdsp.h'32 $(INSTALL) '$(SOURCE_DIR)/devices/gdevdsp.h' '$(PREFIX)/$(TARGET)/include/ghostscript/gdevdsp.h'
@@ -38,7 +37,7 @@ define $(PKG)_BUILD · 4 unmodified lines
38 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'37 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'
39 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'38 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
40 $(if $(BUILD_STATIC),$(INSTALL) '$(BUILD_DIR)/bin/gs.a' '$(PREFIX)/$(TARGET)/lib/libgs.a', \39 $(if $(BUILD_STATIC),$(INSTALL) '$(BUILD_DIR)/bin/gs.a' '$(PREFIX)/$(TARGET)/lib/libgs.a', \
41 $(INSTALL) '$(BUILD_DIR)/sobin/libgs-9.dll' '$(PREFIX)/$(TARGET)/bin/libgs-9.dll' && \40 $(INSTALL) '$(BUILD_DIR)/sobin/libgs-$($(PKG)_MAJORVER).dll' '$(PREFIX)/$(TARGET)/bin/libgs-$($(PKG)_MAJORVER).dll' && \
42 $(INSTALL) '$(BUILD_DIR)/sobin/libgs.dll.a' '$(PREFIX)/$(TARGET)/lib/libgs.dll.a')41 $(INSTALL) '$(BUILD_DIR)/sobin/libgs.dll.a' '$(PREFIX)/$(TARGET)/lib/libgs.dll.a')
43 42
44 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'43 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
@@ -47,13 +46,13 @@ define $(PKG)_BUILD · 2 unmodified lines
47 echo 'Description: Ghostscript library'; \46 echo 'Description: Ghostscript library'; \
48 echo 'Cflags: -I"$(PREFIX)/$(TARGET)/include/ghostscript"'; \47 echo 'Cflags: -I"$(PREFIX)/$(TARGET)/include/ghostscript"'; \
49 echo 'Libs: -L"$(PREFIX)/$(TARGET)/lib" -lgs'; \48 echo 'Libs: -L"$(PREFIX)/$(TARGET)/lib" -lgs'; \
50 echo 'Requires: fontconfig freetype2 lcms2 libidn libtiff-4 libpng libopenjp2 libjpeg zlib'; \49 echo 'Requires: dbus-1 fontconfig freetype2 lcms2 libidn libpaper libtiff-4 libpng libopenjp2 libjpeg zlib'; \
51 echo '# https://github.com/mxe/mxe/issues/1446'; \50 echo '# https://github.com/mxe/mxe/issues/1446'; \
52 echo 'Libs.private: -lm -liconv -lpaper -lwinspool';) \51 echo 'Libs.private: -lm -liconv -lwinspool';) \
53 > '$(PREFIX)/$(TARGET)/lib/pkgconfig/ghostscript.pc'52 > '$(PREFIX)/$(TARGET)/lib/pkgconfig/ghostscript.pc'
54 53
55 '$(TARGET)-gcc' \54 '$(TARGET)-gcc' \
56 -W -Wall -Werror -pedantic \55 -W -Wall -Werror \
57 '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-ghostscript.exe' \56 '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-ghostscript.exe' \
58 `$(TARGET)-pkg-config --cflags --libs ghostscript`57 `$(TARGET)-pkg-config --cflags --libs ghostscript`
59endef58endef

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t