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