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