Makefile revision 6131
1379N/A#
1379N/A# CDDL HEADER START
1379N/A#
1379N/A# The contents of this file are subject to the terms of the
1379N/A# Common Development and Distribution License (the "License").
1379N/A# You may not use this file except in compliance with the License.
1379N/A#
1379N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1379N/A# or http://www.opensolaris.org/os/licensing.
1379N/A# See the License for the specific language governing permissions
1379N/A# and limitations under the License.
1379N/A#
1379N/A# When distributing Covered Code, include this CDDL HEADER in each
1379N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1379N/A# If applicable, add the following below this CDDL HEADER, with the
1379N/A# fields enclosed by brackets "[]" replaced with your own identifying
1379N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1379N/A#
1379N/A# CDDL HEADER END
1379N/A#
1379N/A
1379N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1379N/A#
5680N/ABUILD_BITS= 64
1379N/Ainclude ../../make-rules/shared-macros.mk
1379N/A
1379N/ACOMPONENT_NAME= enscript
1379N/ACOMPONENT_VERSION= 1.6.4
1379N/ACOMPONENT_ARCHIVE_HASH= \
1379N/A sha256:45299a4db47c9c08c3649d4f62b211ae79ef5143360c264a40371a728f6ad99b
1379N/A
1379N/A# Ruby enscript support
1379N/ACOMPONENT_ARCHIVE_1= ruby-enscript.tar.gz
1379N/ACOMPONENT_ARCHIVE_HASH_1= \
1379N/A sha256:29c87c4cd5d36b221fd50ad0b2e35a2cc0e1422519bb7f41d400c61db117cff7
1379N/ACOMPONENT_ARCHIVE_URL_1= http://neugierig.org/software/ruby/ruby-enscript.tar.gz
1379N/A
1379N/A# PHP enscript support
1379N/ACOMPONENT_ARCHIVE_2= php.st
1379N/ACOMPONENT_ARCHIVE_HASH_2= \
1379N/A sha256:64d5b1ed1044202cda1ddcd591a966d1faff58d60156c4368d485f0405d7a9ee
1379N/ACOMPONENT_ARCHIVE_URL_2= http://home.raxnet.net/downloads/viewcvs/php.st
1379N/A
2899N/ATPNO= 4380
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
1379N/A
1379N/A# Get just the ruby enscript support file out of the downloaded tarball, and
1379N/A# move ruby.st and php.st into the correct directory for "gmake install".
1379N/ACOMPONENT_PREP_ACTION = \
1379N/A /usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) ruby.st ; \
1379N/A $(MV) php.st ruby.st $(SOURCE_DIR)/states/hl ;
1379N/A
1379N/A# There are patches that change a Makefile.am and configure.in
4086N/A# This version of enscript needs an older automake to reconfigure. When
4086N/A# we upgrade enscript, we can use the newer version.
4086N/ACOMPONENT_PREP_ACTION +=(cd $(@D); ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 \
4086N/A autoreconf -fiv);
1379N/A
1379N/A# Needed so that enscript can find the enscript.cfg file.
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
1379N/A
1379N/ACONFIGURE_OPTIONS += --with-media=Letter
1379N/A
1379N/ACOMPONENT_POST_INSTALL_ACTION = \
5680N/A $(LN) $(PROTOUSRBINDIR)/enscript \
5680N/A $(PROTOUSRBINDIR)/nenscript
4337N/A
5795N/A# Adjust '#!/usr/bin/perl'
5795N/APERL_SCRIPTS = \
5795N/A $(PROTOUSRBINDIR)/diffpp \
5795N/A $(PROTOUSRBINDIR)/sliceprint
1379N/A
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/math