Makefile revision 365
178N/A#
178N/A#
178N/A# CDDL HEADER START
178N/A#
178N/A# The contents of this file are subject to the terms of the
178N/A# Common Development and Distribution License (the "License").
178N/A# You may not use this file except in compliance with the License.
178N/A#
178N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
178N/A# or http://www.opensolaris.org/os/licensing.
178N/A# See the License for the specific language governing permissions
178N/A# and limitations under the License.
178N/A#
178N/A# When distributing Covered Code, include this CDDL HEADER in each
178N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
178N/A# If applicable, add the following below this CDDL HEADER, with the
178N/A# fields enclosed by brackets "[]" replaced with your own identifying
178N/A# information: Portions Copyright [yyyy] [name of copyright owner]
178N/A#
178N/A# CDDL HEADER END
178N/A#
178N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
178N/A#
178N/Ainclude ../../make-rules/shared-macros.mk
178N/A
178N/ACOMPONENT_NAME= ghostscript
345N/ACOMPONENT_VERSION= 9.00
178N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
178N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
345N/ACOMPONENT_ARCHIVE_HASH= sha1:96e75675efa0f00813f1608ba2c3833f4103ba19
178N/ACOMPONENT_ARCHIVE_URL= http://ghostscript.com/releases/$(COMPONENT_ARCHIVE)
178N/A
178N/Ainclude ../../make-rules/prep.mk
178N/Ainclude ../../make-rules/ips.mk
178N/Ainclude ../../make-rules/configure.mk
178N/A
178N/A# configure(1) options to use
178N/ACONFIGURE_OPTIONS += --with-drivers=ALL
178N/ACONFIGURE_OPTIONS += --with-ijs
178N/ACONFIGURE_OPTIONS += --without-omni
178N/ACONFIGURE_OPTIONS += --with-jbig2dec
178N/ACONFIGURE_OPTIONS += --with-jasper
178N/ACONFIGURE_OPTIONS += --enable-cups
178N/ACONFIGURE_OPTIONS += --enable-dynamic
178N/ACONFIGURE_OPTIONS += --disable-compile-inits
178N/ACONFIGURE_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
178N/A
178N/A# config env
178N/ACONFIGURE_ENV += LDFLAGS_SO="-G"
178N/ACONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
178N/A
178N/AGS_VARIANT = $(BUILD_DIR)/$(MACH32)
178N/AIJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
178N/A
178N/AVARIANTS = $(GS_VARIANT) $(IJS_VARIANT)
178N/A
178N/A# autoconf - Generate configuration scripts
178N/ACOMPONENT_PREP_ACTION = \
178N/A (cd $(@D); autoconf)
178N/A
178N/A$(GS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
178N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
178N/A
178N/A$(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
178N/A install-exec install-so install-scripts install-data \
178N/A install-contrib-extras
178N/A
178N/A$(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
178N/A ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
181N/A cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
178N/A
178N/ACONFIGURE_SCRIPT = ./configure
178N/A
178N/A# build gs and ijs
178N/Abuild: $(VARIANTS:%=%/.built)
178N/A
178N/A# install gs and ijs
178N/Ainstall: $(VARIANTS:%=%/.installed)
178N/A
178N/A# empty test target
178N/Atest:
178N/A @echo "no tests available"
178N/A
178N/Ainclude ../../make-rules/depend.mk