Makefile revision 441
3a1c8ff7db5e9b31fdd0c0a43c0848f93b88e6bevboxsync#
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync#
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync# CDDL HEADER START
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync#
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# The contents of this file are subject to the terms of the
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# Common Development and Distribution License (the "License").
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# You may not use this file except in compliance with the License.
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync#
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# or http://www.opensolaris.org/os/licensing.
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# See the License for the specific language governing permissions
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# and limitations under the License.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# When distributing Covered Code, include this CDDL HEADER in each
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# If applicable, add the following below this CDDL HEADER, with the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# CDDL HEADER END
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncinclude ../../make-rules/shared-macros.mk
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCOMPONENT_NAME= ghostscript
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCOMPONENT_VERSION= 9.00
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCOMPONENT_ARCHIVE_HASH= sha1:96e75675efa0f00813f1608ba2c3833f4103ba19
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCOMPONENT_ARCHIVE_URL= http://ghostscript.com/releases/$(COMPONENT_ARCHIVE)
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncinclude ../../make-rules/prep.mk
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncinclude ../../make-rules/ips.mk
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncinclude ../../make-rules/configure.mk
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# configure(1) options to use
31cda52093d58f5c604589fa74949c5fddcbde70vboxsyncCONFIGURE_OPTIONS += --with-drivers=ALL
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCONFIGURE_OPTIONS += --with-ijs
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCONFIGURE_OPTIONS += --without-omni
f9750d17a7d29bbec1497f28e9260bf48b0139d0vboxsyncCONFIGURE_OPTIONS += --with-jbig2dec
f9750d17a7d29bbec1497f28e9260bf48b0139d0vboxsyncCONFIGURE_OPTIONS += --with-jasper
f9750d17a7d29bbec1497f28e9260bf48b0139d0vboxsyncCONFIGURE_OPTIONS += --enable-cups
f9750d17a7d29bbec1497f28e9260bf48b0139d0vboxsyncCONFIGURE_OPTIONS += --enable-dynamic
689159685cb28b31b692cddb585519685ce671f6vboxsyncCONFIGURE_OPTIONS += --disable-compile-inits
689159685cb28b31b692cddb585519685ce671f6vboxsyncCONFIGURE_OPTIONS += --disable-freetype
689159685cb28b31b692cddb585519685ce671f6vboxsyncCONFIGURE_OPTIONS += --with-fontpath=/usr/share/ghostscript/$(COMPONENT_VERSION)/Resource:/usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font:/usr/share/ghostscript/fonts:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType:/usr/openwin/lib/X11/fonts/Type3:/usr/X11/lib/X11/fonts/Type1:/usr/X11/lib/fonts/TrueType:/usr/X11/lib/X11/fonts/Type3:/usr/X11/lib/X11/fonts/Resource:/usr/X11/lib/X11/Resource/Font
689159685cb28b31b692cddb585519685ce671f6vboxsync
689159685cb28b31b692cddb585519685ce671f6vboxsync# config env
689159685cb28b31b692cddb585519685ce671f6vboxsyncCONFIGURE_ENV += LDFLAGS_SO="-G"
689159685cb28b31b692cddb585519685ce671f6vboxsyncCONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
689159685cb28b31b692cddb585519685ce671f6vboxsync
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsyncGS_VARIANT = $(BUILD_DIR)/$(MACH32)
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsyncIJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsync
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsyncVARIANTS = $(GS_VARIANT) $(IJS_VARIANT)
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsync
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsync# autoconf - Generate configuration scripts
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsyncCOMPONENT_PREP_ACTION = \
6e0158fc21c9ffd0d988efc7a7fd499540eb2ed5vboxsync (cd $(@D); $(RM) -r libpng zlib jpeg ; autoconf)
144137ce834271f844c21478e9d9797dafaebdedvboxsync
c3aec21658d94ddd769e71e41d8547f07dfa8289vboxsync$(GS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
c3aec21658d94ddd769e71e41d8547f07dfa8289vboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
c3aec21658d94ddd769e71e41d8547f07dfa8289vboxsync
144137ce834271f844c21478e9d9797dafaebdedvboxsync$(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
144137ce834271f844c21478e9d9797dafaebdedvboxsync install-exec install-so install-scripts install-data \
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync install-contrib-extras
f9750d17a7d29bbec1497f28e9260bf48b0139d0vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync$(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncCONFIGURE_SCRIPT = ./configure
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# build gs and ijs
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncbuild: $(VARIANTS:%=%/.built)
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# install gs and ijs
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncinstall: $(VARIANTS:%=%/.installed)
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync# empty test target
ad27e1d5e48ca41245120c331cc88b50464813cevboxsynctest:
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync @echo "no tests available"
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync
fa7c9928985ad8dc74ae6931809083c2af135250vboxsyncinclude ../../make-rules/depend.mk
fa7c9928985ad8dc74ae6931809083c2af135250vboxsync