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