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#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
178N/A#
814N/A
3442N/A# parfait seems to spin when looking at the .bc files (13704877), so
2705N/A# for now disable it.
2705N/APARFAIT_BUILD=no
2705N/A
178N/Ainclude ../../make-rules/shared-macros.mk
178N/A
3442N/A
178N/ACOMPONENT_NAME= ghostscript
345N/ACOMPONENT_VERSION= 9.00
618N/ACOMPONENT_PROJECT_URL= http://ghostscript.com/
178N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
178N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:9e754c315d68d91a65ef208b9a8bda1fb57e45a7be18aa9397acfcc5ff59de16
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/ghostscript
178N/A
3661N/ATPNO= 3796
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
178N/A
519N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
519N/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
441N/ACONFIGURE_OPTIONS += --disable-freetype
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
1400N/A# configure options to generate 64 bit binaries
1400N/A$(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
1400N/A$(BUILD_DIR)/$(MACH64)/ijs/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
1400N/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)
1400N/AGS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)
178N/AIJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
1400N/AIJS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)/ijs
178N/A
1400N/AVARIANTS = $(GS_VARIANT) $(IJS_VARIANT) $(GS_VARIANT_64) $(IJS_VARIANT_64)
178N/A
178N/A# autoconf - Generate configuration scripts
178N/ACOMPONENT_PREP_ACTION = \
441N/A (cd $(@D); $(RM) -r libpng zlib jpeg ; 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
1400N/A$(GS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
1400N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1400N/A
1400N/A$(GS_VARIANT_64)/.installed: COMPONENT_INSTALL_TARGETS += \
1400N/A install-exec install-so install-scripts install-data \
1400N/A install-contrib-extras
1400N/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
1400N/A$(IJS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
1400N/A ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
1400N/A cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
1400N/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
3996N/AREQUIRED_PACKAGES += image/library/libjpeg
3996N/AREQUIRED_PACKAGES += image/library/libpng
3996N/AREQUIRED_PACKAGES += library/desktop/gtk2
3996N/AREQUIRED_PACKAGES += library/glib2
3996N/AREQUIRED_PACKAGES += library/print/cups-libs
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += runtime/perl-512
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/fontconfig
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += system/linker
3996N/AREQUIRED_PACKAGES += x11/library/libx11
3996N/AREQUIRED_PACKAGES += x11/library/libxcursor
3996N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt