Makefile revision 3996
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# CDDL HEADER START
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# The contents of this file are subject to the terms of the
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# Common Development and Distribution License (the "License").
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# You may not use this file except in compliance with the License.
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# or http://www.opensolaris.org/os/licensing.
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# See the License for the specific language governing permissions
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# and limitations under the License.
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hogan# When distributing Covered Code, include this CDDL HEADER in each
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# If applicable, add the following below this CDDL HEADER, with the
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# fields enclosed by brackets "[]" replaced with your own identifying
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# information: Portions Copyright [yyyy] [name of copyright owner]
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# CDDL HEADER END
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
61ea54c309169801a1833f99729723071c24c047Dirk Hogan#
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# parfait seems to spin when looking at the .bc files (13704877), so
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# for now disable it.
61ea54c309169801a1833f99729723071c24c047Dirk HoganPARFAIT_BUILD=no
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hoganinclude ../../make-rules/shared-macros.mk
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_NAME= ghostscript
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_VERSION= 9.00
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_PROJECT_URL= http://ghostscript.com/
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_ARCHIVE_HASH= \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan sha256:9e754c315d68d91a65ef208b9a8bda1fb57e45a7be18aa9397acfcc5ff59de16
61ea54c309169801a1833f99729723071c24c047Dirk HoganCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
3744900be632496920d4c9aca8f94ba6db4dd882Dirk HoganCOMPONENT_BUGDB= utility/ghostscript
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hogan
3744900be632496920d4c9aca8f94ba6db4dd882Dirk HoganTPNO= 3796
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hogan
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hoganinclude $(WS_MAKE_RULES)/prep.mk
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hoganinclude $(WS_MAKE_RULES)/ips.mk
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hoganinclude $(WS_MAKE_RULES)/configure.mk
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hogan
3744900be632496920d4c9aca8f94ba6db4dd882Dirk HoganPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# configure(1) options to use
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --with-drivers=ALL
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --with-ijs
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --without-omni
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --with-jbig2dec
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --with-jasper
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --enable-cups
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --enable-dynamic
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --disable-compile-inits
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_OPTIONS += --disable-freetype
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_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
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# configure options to generate 64 bit binaries
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(BUILD_DIR)/$(MACH64)/ijs/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# config env
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_ENV += LDFLAGS_SO="-G"
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk HoganGS_VARIANT = $(BUILD_DIR)/$(MACH32)
61ea54c309169801a1833f99729723071c24c047Dirk HoganGS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)
61ea54c309169801a1833f99729723071c24c047Dirk HoganIJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
61ea54c309169801a1833f99729723071c24c047Dirk HoganIJS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)/ijs
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk HoganVARIANTS = $(GS_VARIANT) $(IJS_VARIANT) $(GS_VARIANT_64) $(IJS_VARIANT_64)
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# autoconf - Generate configuration scripts
3744900be632496920d4c9aca8f94ba6db4dd882Dirk HoganCOMPONENT_PREP_ACTION = \
3744900be632496920d4c9aca8f94ba6db4dd882Dirk Hogan (cd $(@D); $(RM) -r libpng zlib jpeg ; autoconf)
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(GS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan ($(CLONEY) $(SOURCE_DIR) $(@D))
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan install-exec install-so install-scripts install-data \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan install-contrib-extras
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(GS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan ($(CLONEY) $(SOURCE_DIR) $(@D))
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(GS_VARIANT_64)/.installed: COMPONENT_INSTALL_TARGETS += \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan install-exec install-so install-scripts install-data \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan install-contrib-extras
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan$(IJS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan ($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
61ea54c309169801a1833f99729723071c24c047Dirk Hogan cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk HoganCONFIGURE_SCRIPT = ./configure
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# build gs and ijs
61ea54c309169801a1833f99729723071c24c047Dirk Hoganbuild: $(VARIANTS:%=%/.built)
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# install gs and ijs
61ea54c309169801a1833f99729723071c24c047Dirk Hoganinstall: $(VARIANTS:%=%/.installed)
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk Hogan# empty test target
61ea54c309169801a1833f99729723071c24c047Dirk Hogantest:
61ea54c309169801a1833f99729723071c24c047Dirk Hogan @echo "no tests available"
61ea54c309169801a1833f99729723071c24c047Dirk Hogan
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += image/library/libjpeg
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += image/library/libpng
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += library/desktop/gtk2
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += library/glib2
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += library/print/cups-libs
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += library/zlib
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += runtime/perl-512
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += shell/ksh93
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += system/library
4cc414596f330cc595f62252d964ef97b3795056Dirk HoganREQUIRED_PACKAGES += system/library/fontconfig
4cc414596f330cc595f62252d964ef97b3795056Dirk HoganREQUIRED_PACKAGES += system/library/math
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += system/linker
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += x11/library/libx11
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += x11/library/libxcursor
61ea54c309169801a1833f99729723071c24c047Dirk HoganREQUIRED_PACKAGES += x11/library/toolkit/libxt
61ea54c309169801a1833f99729723071c24c047Dirk Hogan