3643
|
1 # This file is part of MXE. |
|
2 # See index.html for further information. |
|
3 |
|
4 PKG := ghostscript |
|
5 $(PKG)_IGNORE := |
|
6 $(PKG)_VERSION := 9.07 |
|
7 $(PKG)_CHECKSUM := 550a85e73b7213d8ae41ea06523661638b4bc1a2 |
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 |
|
10 $(PKG)_URL := http://downloads.ghostscript.com/public/$($(PKG)_FILE) |
|
11 $(PKG)_DEPS := build-gcc jpeg libpng jpeg tiff zlib |
|
12 |
|
13 define $(PKG)_UPDATE |
|
14 echo 'Warning: Updates are temporarily disabled for package ghostscript.' >&2; |
|
15 echo $($(PKG)_VERSION) |
|
16 endef |
|
17 |
|
18 ## Currently only works for native builds and i686 mingw cross builds. |
|
19 |
|
20 ifeq ($(MXE_NATIVE_BUILD),yes) |
|
21 define $(PKG)_BUILD |
|
22 cd '$(1)' && '$(1)/configure' \ |
|
23 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
|
24 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
|
25 --prefix='$(HOST_PREFIX)' \ |
|
26 --with-system-libtiff \ |
|
27 && $(CONFIGURE_POST_HOOK) |
|
28 |
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' |
|
30 $(MAKE) -C '$(1)' install |
|
31 endef |
|
32 else |
|
33 ifeq ($(MXE_SYSTEM),mingw) |
|
34 ifneq ($(ENABLE_64),yes) |
|
35 ## Ghostscript configure script is not cross-compiler friendly, |
|
36 ## so instead of running it, copying configuration files from a |
|
37 ## native mingw build. Some configuration is done by compiling |
|
38 ## and running programs during the build, but those programs |
|
39 ## probe the build system and don't know about cross compiling, |
|
40 ## so we generate the files then replace them with files from a |
|
41 ## mingw native build. |
|
42 define $(PKG)_BUILD |
|
43 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile' |
|
44 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h |
|
45 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/arch.h' |
|
46 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/gconfig_.h' |
|
47 $(MAKE) -C '$(1)' -j '$(JOBS)' \ |
|
48 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' |
|
49 $(MAKE) -C '$(1)' \ |
|
50 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ |
|
51 install |
|
52 endef |
|
53 endif |
|
54 endif |
|
55 endif |