components/enscript/Makefile
changeset 1132 a62391631ea1
child 1948 2d1537e7942d
equal deleted inserted replaced
1131:4c414ada49de 1132:a62391631ea1
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		enscript
       
    29 COMPONENT_VERSION=	1.6.4
       
    30 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/enscript
       
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH=	\
       
    34     sha256:45299a4db47c9c08c3649d4f62b211ae79ef5143360c264a40371a728f6ad99b
       
    35 COMPONENT_ARCHIVE_URL=  http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
    36 COMPONENT_BUGDB=	utility/enscript
       
    37 
       
    38 # Ruby enscript support
       
    39 COMPONENT_ARCHIVE_1=    ruby-enscript.tar.gz
       
    40 COMPONENT_ARCHIVE_HASH_1=       \
       
    41     sha256:29c87c4cd5d36b221fd50ad0b2e35a2cc0e1422519bb7f41d400c61db117cff7
       
    42 COMPONENT_ARCHIVE_URL_1= http://neugierig.org/software/ruby/ruby-enscript.tar.gz
       
    43 
       
    44 # PHP enscript support
       
    45 COMPONENT_ARCHIVE_2=    php.st
       
    46 COMPONENT_ARCHIVE_HASH_2=	\
       
    47     sha256:64d5b1ed1044202cda1ddcd591a966d1faff58d60156c4368d485f0405d7a9ee
       
    48 COMPONENT_ARCHIVE_URL_2= http://home.raxnet.net/downloads/viewcvs/php.st
       
    49 
       
    50 include ../../make-rules/prep.mk
       
    51 include ../../make-rules/configure.mk
       
    52 include ../../make-rules/ips.mk
       
    53 
       
    54 PATCH_LEVEL = 1
       
    55 
       
    56 # Get just the ruby enscript support file out of the downloaded tarball, and
       
    57 # move ruby.st and php.st into the correct directory for "gmake install".
       
    58 COMPONENT_PREP_ACTION = \
       
    59 	/usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) ruby.st ; \
       
    60 	$(MV) php.st ruby.st $(SOURCE_DIR)/states/hl ;
       
    61 
       
    62 # There are patches that change a Makefile.am and configure.in
       
    63 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -fiv);
       
    64 
       
    65 # Needed so that enscript can find the enscript.cfg file.
       
    66 CONFIGURE_OPTIONS +=    --sysconfdir=/etc
       
    67 
       
    68 CONFIGURE_OPTIONS +=	--with-media=Letter
       
    69 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    70 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
       
    71 
       
    72 COMPONENT_POST_INSTALL_ACTION = \
       
    73 	$(LN) $(PROTOUSRBINDIR)/$(MACH64)/enscript \
       
    74 		$(PROTOUSRBINDIR)/$(MACH64)/nenscript
       
    75 
       
    76 # common targets
       
    77 build:          $(BUILD_64)
       
    78 
       
    79 install:        $(INSTALL_64)
       
    80 
       
    81 test:           $(TEST_64)
       
    82 
       
    83 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
       
    84 
       
    85 include ../../make-rules/depend.mk