Makefile revision 7102
1690N/A#
1690N/A#
1690N/A# CDDL HEADER START
1690N/A#
1690N/A# The contents of this file are subject to the terms of the
1690N/A# Common Development and Distribution License (the "License").
1690N/A# You may not use this file except in compliance with the License.
1690N/A#
1690N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1690N/A# or http://www.opensolaris.org/os/licensing.
1690N/A# See the License for the specific language governing permissions
1690N/A# and limitations under the License.
1690N/A#
1690N/A# When distributing Covered Code, include this CDDL HEADER in each
1690N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1690N/A# If applicable, add the following below this CDDL HEADER, with the
1690N/A# fields enclosed by brackets "[]" replaced with your own identifying
1690N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1690N/A#
1690N/A# CDDL HEADER END
1690N/A#
1690N/A
1690N/A#
1690N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
1690N/A#
1690N/A# parfait seems to spin when looking at the .bc files (13704877), so
1690N/A# for now disable it.
1690N/Aexport PARFAIT_BUILD=no
2086N/A
1690N/A# Prefer 32-bit due to ghostcript's hybrid build system.
1690N/ABUILD_BITS= 32_and_64
1690N/Ainclude ../../make-rules/shared-macros.mk
2561N/A
1690N/A
2800N/ACOMPONENT_NAME= ghostscript
2800N/ACOMPONENT_VERSION= 9.00
2800N/ACOMPONENT_PROJECT_URL= http://ghostscript.com/
1690N/ACOMPONENT_ARCHIVE_HASH= \
2800N/A sha256:9e754c315d68d91a65ef208b9a8bda1fb57e45a7be18aa9397acfcc5ff59de16
1690N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
1690N/A
1842N/ATPNO= 3796
1690N/A
2800N/ACOMMON_TARGETS= no
1858N/Ainclude $(WS_MAKE_RULES)/common.mk
1690N/A
1690N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
2800N/A
2800N/A# ghostscript uses a non-standard hybrid-build to build both 32 and 64-bit;
2601N/A# override these to prevent build failure.
2800N/ACC_FOR_BUILD=
2601N/ACONFIGURE_CPPFLAGS=
2086N/A
2086N/A# configure(1) options to use
1690N/ACONFIGURE_OPTIONS += --with-drivers=ALL
1690N/ACONFIGURE_OPTIONS += --with-ijs
1690N/ACONFIGURE_OPTIONS += --without-omni
1690N/ACONFIGURE_OPTIONS += --with-jbig2dec
1690N/ACONFIGURE_OPTIONS += --with-jasper
2800N/ACONFIGURE_OPTIONS += --enable-cups
2800N/ACONFIGURE_OPTIONS += --enable-dynamic
2800N/ACONFIGURE_OPTIONS += --disable-compile-inits
1690N/ACONFIGURE_OPTIONS += --disable-freetype
2561N/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
2561N/A
2561N/A# configure options to generate 64 bit binaries
2800N/A$(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
2561N/A$(BUILD_DIR)/$(MACH64)/ijs/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
2601N/A
2601N/A# config env
2601N/ACONFIGURE_ENV += LDFLAGS_SO="-G"
2561N/ACONFIGURE_ENV += CUPSCONFIG=$(USRBINDIR)/cups-config
2800N/A
2561N/AGS_VARIANT = $(BUILD_DIR)/$(MACH32)
2561N/AGS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)
2561N/AIJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
1690N/AIJS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)/ijs
1690N/A
2800N/AVARIANTS = $(GS_VARIANT) $(IJS_VARIANT) $(GS_VARIANT_64) $(IJS_VARIANT_64)
2800N/A
2800N/A# autoconf - Generate configuration scripts
2800N/ACOMPONENT_PREP_ACTION = \
2800N/A (cd $(@D); $(RM) -r libpng zlib jpeg ; autoconf)
2800N/A
2800N/A$(GS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
2800N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2601N/A
1690N/A$(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
2800N/A install-exec install-so install-scripts install-data \
2800N/A install-contrib-extras
2800N/A
2800N/A$(GS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
2800N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1690N/A
2037N/A$(GS_VARIANT_64)/.installed: COMPONENT_INSTALL_TARGETS += \
1690N/A install-exec install-so install-scripts install-data \
1690N/A install-contrib-extras
2800N/A
1690N/A$(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
2800N/A ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
2800N/A cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
2037N/A
1690N/A$(IJS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
2800N/A ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
2800N/A cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
2800N/A
2800N/ACONFIGURE_SCRIPT = ./configure
2800N/A
2800N/A# Adjust '#!/usr/bin/perl'
2800N/APERL_SCRIPTS= $(PROTOUSRBINDIR)/fixmswrd.pl
2800N/A
2800N/A# ASLR disabled until sufficient testing can be performed.
2822N/AASLR_MODE= $(ASLR_DISABLE)
2822N/A
2822N/A# configure gs and ijs
2822N/Aconfigure: $(VARIANTS:%=%/.configured)
2822N/A
2822N/A# build gs and ijs
2822N/Abuild: $(VARIANTS:%=%/.built)
2822N/A
2822N/A# install gs and ijs
2822N/Ainstall: $(VARIANTS:%=%/.installed)
2822N/A
2822N/Atest: $(NO_TESTS)
2822N/A
2822N/Asystem-test: $(NO_TESTS)
2822N/A
2822N/A
2800N/AREQUIRED_PACKAGES += image/library/libjpeg
2800N/AREQUIRED_PACKAGES += image/library/libpng
2800N/AREQUIRED_PACKAGES += library/desktop/gtk2
2800N/AREQUIRED_PACKAGES += library/glib2
2800N/AREQUIRED_PACKAGES += library/print/cups-libs
2800N/AREQUIRED_PACKAGES += library/zlib
2800N/AREQUIRED_PACKAGES += print/cups
2800N/AREQUIRED_PACKAGES += $(PERL_PKG)
2800N/AREQUIRED_PACKAGES += shell/ksh93
2800N/AREQUIRED_PACKAGES += system/library/fontconfig
2800N/AREQUIRED_PACKAGES += system/library/math
2800N/AREQUIRED_PACKAGES += x11/library/libx11
2800N/AREQUIRED_PACKAGES += x11/library/libxcursor
2800N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt
2800N/A