Makefile revision 3477
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# CDDL HEADER START
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# The contents of this file are subject to the terms of the
c1d279fc0865b91a40b30eda02ed14f6533fe1a4vboxsync# Common Development and Distribution License (the "License").
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# You may not use this file except in compliance with the License.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# or http://www.opensolaris.org/os/licensing.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# See the License for the specific language governing permissions
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# and limitations under the License.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# When distributing Covered Code, include this CDDL HEADER in each
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# If applicable, add the following below this CDDL HEADER, with the
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# CDDL HEADER END
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# parfait seems to spin when looking at the .bc files (13704877), so
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# for now disable it.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncPARFAIT_BUILD=no
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
2d97f8baccdd684bc0a8a15eb86bbe9ff2b85374vboxsyncinclude ../../make-rules/shared-macros.mk
2d97f8baccdd684bc0a8a15eb86bbe9ff2b85374vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
7481bcc52798a04f39bb360635624df5658d2791vboxsyncCOMPONENT_NAME= ghostscript
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_VERSION= 9.00
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_PROJECT_URL= http://ghostscript.com/
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_ARCHIVE_HASH= \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync sha256:9e754c315d68d91a65ef208b9a8bda1fb57e45a7be18aa9397acfcc5ff59de16
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_BUGDB= utility/ghostscript
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncTPNO= 3796
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude ../../make-rules/prep.mk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude ../../make-rules/ips.mk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude ../../make-rules/configure.mk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# configure(1) options to use
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --with-drivers=ALL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --with-ijs
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --without-omni
24986763e9e9e6633a4a54479be945d577fdfd34vboxsyncCONFIGURE_OPTIONS += --with-jbig2dec
24986763e9e9e6633a4a54479be945d577fdfd34vboxsyncCONFIGURE_OPTIONS += --with-jasper
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --enable-cups
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --enable-dynamic
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --disable-compile-inits
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_OPTIONS += --disable-freetype
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCONFIGURE_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
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# configure options to generate 64 bit binaries
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(BUILD_DIR)/$(MACH64)/ijs/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
99fc25fde31ac60ee18ac48eab7027dea4272a0bvboxsync# config env
99fc25fde31ac60ee18ac48eab7027dea4272a0bvboxsyncCONFIGURE_ENV += LDFLAGS_SO="-G"
b5df661c6d68070ecfcdc7498caff796805912ecvboxsyncCONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
b5df661c6d68070ecfcdc7498caff796805912ecvboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncGS_VARIANT = $(BUILD_DIR)/$(MACH32)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncGS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncIJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncIJS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)/ijs
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVARIANTS = $(GS_VARIANT) $(IJS_VARIANT) $(GS_VARIANT_64) $(IJS_VARIANT_64)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# autoconf - Generate configuration scripts
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncCOMPONENT_PREP_ACTION = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync (cd $(@D); $(RM) -r libpng zlib jpeg ; autoconf)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(GS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync install-exec install-so install-scripts install-data \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync install-contrib-extras
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(GS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync$(GS_VARIANT_64)/.installed: COMPONENT_INSTALL_TARGETS += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync install-exec install-so install-scripts install-data \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync install-contrib-extras
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync$(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync$(IJS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncCONFIGURE_SCRIPT = ./configure
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# configure gs and ijs
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncconfigure: $(VARIANTS:%=%/.configured)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# build gs and ijs
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncbuild: $(VARIANTS:%=%/.built)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# install gs and ijs
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncinstall: $(VARIANTS:%=%/.installed)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsynctest: $(NO_TESTS)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncinclude ../../make-rules/depend.mk
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync