Mercurial > mxe-octave
annotate src/ghostscript.mk @ 3657:9b5ec90d870b
remove redundant package from ghostscript dependency list
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Jul 2014 09:25:57 -0400 |
parents | 3085b1b955dd |
children | 0023c034ec4a |
rev | line source |
---|---|
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) | |
3657
9b5ec90d870b
remove redundant package from ghostscript dependency list
John W. Eaton <jwe@octave.org>
parents:
3653
diff
changeset
|
11 $(PKG)_DEPS := jpeg libpng tiff zlib |
3643 | 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 | |
3653
3085b1b955dd
make native ghostscript build work; include ghostscript patches in dist file
John W. Eaton <jwe@octave.org>
parents:
3643
diff
changeset
|
22 cd '$(1)' && autoreconf |
3643 | 23 cd '$(1)' && '$(1)/configure' \ |
24 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
26 --prefix='$(HOST_PREFIX)' \ | |
27 --with-system-libtiff \ | |
28 && $(CONFIGURE_POST_HOOK) | |
29 | |
30 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
31 $(MAKE) -C '$(1)' install | |
32 endef | |
33 else | |
34 ifeq ($(MXE_SYSTEM),mingw) | |
35 ifneq ($(ENABLE_64),yes) | |
36 ## Ghostscript configure script is not cross-compiler friendly, | |
37 ## so instead of running it, copying configuration files from a | |
38 ## native mingw build. Some configuration is done by compiling | |
39 ## and running programs during the build, but those programs | |
40 ## probe the build system and don't know about cross compiling, | |
41 ## so we generate the files then replace them with files from a | |
42 ## mingw native build. | |
43 define $(PKG)_BUILD | |
44 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile' | |
45 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h | |
46 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/arch.h' | |
47 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/gconfig_.h' | |
48 $(MAKE) -C '$(1)' -j '$(JOBS)' \ | |
49 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' | |
50 $(MAKE) -C '$(1)' \ | |
51 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ | |
52 install | |
53 endef | |
54 endif | |
55 endif | |
56 endif |