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