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
33 PKG := ghostscript
44 $(PKG)_WEBSITE := https://www.ghostscript.com/
55 $(PKG)_IGNORE :=
6−$(PKG)_VERSION := 9.50
6+$(PKG)_VERSION := 10.01.1
77 $(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION))
8−$(PKG)_CHECKSUM := db9bb0817b6f22974e6d5ad751975f346420c2c86a0afcfe6b4e09c47803e7d4
8+$(PKG)_MAJORVER := $(firstword $(subst ., ,$($(PKG)_VERSION)))
9+$(PKG)_CHECKSUM := c91193635aa2578f9508b8ba846106c1e3705fbd3fed5fd9a015f21b55f15d68
910 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1011 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
1112 $(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
1819 endef
1920
2021 define $(PKG)_BUILD
21− cp -f `automake --print-libdir`/{config.guess,config.sub,install-sh} '$(SOURCE_DIR)'
2222 cd '$(SOURCE_DIR)' && rm -rf freetype jpeg lcms2mt libpng openjpeg tiff
23− cd '$(SOURCE_DIR)' && autoreconf -f -i
2423 cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
25− CPPFLAGS='$(CPPFLAGS) -DHAVE_SYS_TIMES_H=0' \
2624 $(MXE_CONFIGURE_OPTS) \
2725 --with-libiconv=gnu \
28− --without-local-zlib
29− $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(if $(BUILD_STATIC),libgs,so) || \
30− $(MAKE) -C '$(BUILD_DIR)' -j '1' $(if $(BUILD_STATIC),libgs,so)
26+ --without-local-zlib \
27+ --without-tesseract
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)
3130
3231 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/ghostscript'
3332 $(INSTALL) '$(SOURCE_DIR)/devices/gdevdsp.h' '$(PREFIX)/$(TARGET)/include/ghostscript/gdevdsp.h'
@@ -38,7 +37,7 @@ define $(PKG)_BUILD · 4 unmodified lines
3837 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'
3938 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
4039 $(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' && \
4241 $(INSTALL) '$(BUILD_DIR)/sobin/libgs.dll.a' '$(PREFIX)/$(TARGET)/lib/libgs.dll.a')
4342
4443 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
@@ -47,13 +46,13 @@ define $(PKG)_BUILD · 2 unmodified lines
4746 echo 'Description: Ghostscript library'; \
4847 echo 'Cflags: -I"$(PREFIX)/$(TARGET)/include/ghostscript"'; \
4948 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'; \
5150 echo '# https://github.com/mxe/mxe/issues/1446'; \
52− echo 'Libs.private: -lm -liconv -lpaper -lwinspool';) \
51+ echo 'Libs.private: -lm -liconv -lwinspool';) \
5352 > '$(PREFIX)/$(TARGET)/lib/pkgconfig/ghostscript.pc'
5453
5554 '$(TARGET)-gcc' \
56− -W -Wall -Werror -pedantic \
55+ -W -Wall -Werror \
5756 '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-ghostscript.exe' \
5857 `$(TARGET)-pkg-config --cflags --libs ghostscript`
5958 endef

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