Makefile revision 1923
855N/A#
1472N/A# CDDL HEADER START
855N/A#
855N/A# The contents of this file are subject to the terms of the
855N/A# Common Development and Distribution License (the "License").
855N/A# You may not use this file except in compliance with the License.
855N/A#
855N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
855N/A# or http://www.opensolaris.org/os/licensing.
855N/A# See the License for the specific language governing permissions
855N/A# and limitations under the License.
855N/A#
855N/A# When distributing Covered Code, include this CDDL HEADER in each
855N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
855N/A# If applicable, add the following below this CDDL HEADER, with the
855N/A# fields enclosed by brackets "[]" replaced with your own identifying
855N/A# information: Portions Copyright [yyyy] [name of copyright owner]
855N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A
855N/A#
855N/A# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
855N/A#
855N/A
855N/Ainclude ../../make-rules/shared-macros.mk
855N/A
855N/ACOMPONENT_NAME= enscript
855N/ACOMPONENT_VERSION= 1.6.4
855N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/enscript
855N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
855N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
855N/ACOMPONENT_ARCHIVE_HASH= \
855N/A sha256:45299a4db47c9c08c3649d4f62b211ae79ef5143360c264a40371a728f6ad99b
855N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
855N/ACOMPONENT_BUGDB= utility/enscript
855N/A
855N/A# Ruby enscript support
855N/ACOMPONENT_ARCHIVE_1= ruby-enscript.tar.gz
855N/ACOMPONENT_ARCHIVE_HASH_1= \
855N/A sha256:29c87c4cd5d36b221fd50ad0b2e35a2cc0e1422519bb7f41d400c61db117cff7
855N/ACOMPONENT_ARCHIVE_URL_1= http://neugierig.org/software/ruby/ruby-enscript.tar.gz
855N/A
855N/A# PHP enscript support
855N/ACOMPONENT_ARCHIVE_2= php.st
855N/ACOMPONENT_ARCHIVE_HASH_2= \
855N/A sha256:64d5b1ed1044202cda1ddcd591a966d1faff58d60156c4368d485f0405d7a9ee
855N/ACOMPONENT_ARCHIVE_URL_2= http://home.raxnet.net/downloads/viewcvs/php.st
855N/A
855N/Ainclude ../../make-rules/prep.mk
855N/Ainclude ../../make-rules/configure.mk
855N/Ainclude ../../make-rules/ips.mk
855N/A
855N/APATCH_LEVEL = 1
855N/A
855N/A# Get just the ruby enscript support file out of the downloaded tarball, and
855N/A# move ruby.st and php.st into the correct directory for "gmake install".
855N/ACOMPONENT_PREP_ACTION = \
855N/A /usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) ruby.st ; \
855N/A $(MV) php.st ruby.st $(SOURCE_DIR)/states/hl ;
855N/A
855N/A# There are patches that change a Makefile.am and configure.in
855N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -fiv);
855N/A
855N/A# Needed so that enscript can find the enscript.cfg file.
855N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
855N/A
855N/ACONFIGURE_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
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(TEST_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk