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