components/enscript/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 Feb 2016 12:18:19 -0800
changeset 5385 ada5863c16fd
parent 4746 8e237ffd0a48
child 5682 94c0ca64c022
permissions -rw-r--r--
22649522 Popplet should be Poppler in its package manifest file.

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
#

include ../../make-rules/shared-macros.mk

COMPONENT_NAME=		enscript
COMPONENT_VERSION=	1.6.4
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/enscript
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH=	\
    sha256:45299a4db47c9c08c3649d4f62b211ae79ef5143360c264a40371a728f6ad99b
COMPONENT_ARCHIVE_URL=  http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB=	utility/enscript

# Ruby enscript support
COMPONENT_ARCHIVE_1=    ruby-enscript.tar.gz
COMPONENT_ARCHIVE_HASH_1=       \
    sha256:29c87c4cd5d36b221fd50ad0b2e35a2cc0e1422519bb7f41d400c61db117cff7
COMPONENT_ARCHIVE_URL_1= http://neugierig.org/software/ruby/ruby-enscript.tar.gz

# PHP enscript support
COMPONENT_ARCHIVE_2=    php.st
COMPONENT_ARCHIVE_HASH_2=	\
    sha256:64d5b1ed1044202cda1ddcd591a966d1faff58d60156c4368d485f0405d7a9ee
COMPONENT_ARCHIVE_URL_2= http://home.raxnet.net/downloads/viewcvs/php.st

TPNO=			4380

include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk

PATCH_LEVEL = 1

# Get just the ruby enscript support file out of the downloaded tarball, and
# move ruby.st and php.st into the correct directory for "gmake install".
COMPONENT_PREP_ACTION = \
	/usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) ruby.st ; \
	$(MV) php.st ruby.st $(SOURCE_DIR)/states/hl ;

# There are patches that change a Makefile.am and configure.in
# This version of enscript needs an older automake to reconfigure.  When
# we upgrade enscript, we can use the newer version.
COMPONENT_PREP_ACTION +=(cd $(@D); ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 \
				   autoreconf -fiv);

# Needed so that enscript can find the enscript.cfg file.
CONFIGURE_OPTIONS +=    --sysconfdir=/etc

CONFIGURE_OPTIONS +=	--with-media=Letter
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"

COMPONENT_POST_INSTALL_ACTION = \
	$(LN) $(PROTOUSRBINDIR)/$(MACH64)/enscript \
		$(PROTOUSRBINDIR)/$(MACH64)/nenscript

# common targets
configure:	$(CONFIGURE_64)

build:          $(BUILD_64)

install:        $(INSTALL_64)

test:           $(TEST_64)

system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)


REQUIRED_PACKAGES += runtime/perl-512
REQUIRED_PACKAGES += runtime/perl-520
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math