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