Makefile revision 181
58042eafd071de078c4f2d8fa69791a86eb58667William King#
58042eafd071de078c4f2d8fa69791a86eb58667William King#
58042eafd071de078c4f2d8fa69791a86eb58667William King# CDDL HEADER START
58042eafd071de078c4f2d8fa69791a86eb58667William King#
58042eafd071de078c4f2d8fa69791a86eb58667William King# The contents of this file are subject to the terms of the
58042eafd071de078c4f2d8fa69791a86eb58667William King# Common Development and Distribution License (the "License").
58042eafd071de078c4f2d8fa69791a86eb58667William King# You may not use this file except in compliance with the License.
58042eafd071de078c4f2d8fa69791a86eb58667William King#
58042eafd071de078c4f2d8fa69791a86eb58667William King# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
58042eafd071de078c4f2d8fa69791a86eb58667William King# or http://www.opensolaris.org/os/licensing.
58042eafd071de078c4f2d8fa69791a86eb58667William King# See the License for the specific language governing permissions
58042eafd071de078c4f2d8fa69791a86eb58667William King# and limitations under the License.
58042eafd071de078c4f2d8fa69791a86eb58667William King#
58042eafd071de078c4f2d8fa69791a86eb58667William King# When distributing Covered Code, include this CDDL HEADER in each
58042eafd071de078c4f2d8fa69791a86eb58667William King# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
58042eafd071de078c4f2d8fa69791a86eb58667William King# If applicable, add the following below this CDDL HEADER, with the
58042eafd071de078c4f2d8fa69791a86eb58667William King# fields enclosed by brackets "[]" replaced with your own identifying
58042eafd071de078c4f2d8fa69791a86eb58667William King# information: Portions Copyright [yyyy] [name of copyright owner]
58042eafd071de078c4f2d8fa69791a86eb58667William King#
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley# CDDL HEADER END
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
58042eafd071de078c4f2d8fa69791a86eb58667William King#
58042eafd071de078c4f2d8fa69791a86eb58667William Kinginclude ../../make-rules/shared-macros.mk
58042eafd071de078c4f2d8fa69791a86eb58667William King
58042eafd071de078c4f2d8fa69791a86eb58667William KingCOMPONENT_NAME= ghostscript
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingCOMPONENT_VERSION= 8.64
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingCOMPONENT_ARCHIVE_HASH= sha1:2e56a2fdd7912c0d04ad52c05d0e93e3e473b131
58042eafd071de078c4f2d8fa69791a86eb58667William KingCOMPONENT_ARCHIVE_URL= http://ghostscript.com/releases/$(COMPONENT_ARCHIVE)
58042eafd071de078c4f2d8fa69791a86eb58667William King
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William Kinginclude ../../make-rules/prep.mk
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William Kinginclude ../../make-rules/ips.mk
58042eafd071de078c4f2d8fa69791a86eb58667William Kinginclude ../../make-rules/configure.mk
58042eafd071de078c4f2d8fa69791a86eb58667William King
58042eafd071de078c4f2d8fa69791a86eb58667William King# configure(1) options to use
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_OPTIONS += --with-drivers=ALL
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingCONFIGURE_OPTIONS += --with-ijs
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingCONFIGURE_OPTIONS += --without-omni
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_OPTIONS += --with-jbig2dec
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_OPTIONS += --with-jasper
02cae3f3257aeb0ae28613245b3f65d7202b27f2William KingCONFIGURE_OPTIONS += --enable-cups
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_OPTIONS += --enable-dynamic
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_OPTIONS += --disable-compile-inits
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_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
58042eafd071de078c4f2d8fa69791a86eb58667William King
58042eafd071de078c4f2d8fa69791a86eb58667William King# config env
58042eafd071de078c4f2d8fa69791a86eb58667William KingCONFIGURE_ENV += LDFLAGS_SO="-G"
CONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
GS_VARIANT = $(BUILD_DIR)/$(MACH32)
IJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
VARIANTS = $(GS_VARIANT) $(IJS_VARIANT)
# autoconf - Generate configuration scripts
COMPONENT_PREP_ACTION = \
(cd $(@D)/jasper/src/libjasper/jpc ; \
$(MV) jpc_qmfb.c jpc_qmfb.c.orig ; \
dos2unix jpc_qmfb.c.orig >jpc_qmfb.c) ; \
(cd $(@D); autoconf)
$(GS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
($(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