components/pwgen/Makefile
changeset 107 1c15e37261c1
child 151 f9e42a3f7095
equal deleted inserted replaced
106:15c2a44d66c6 107:1c15e37261c1
       
     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) 2011, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		pwgen
       
    29 COMPONENT_VERSION=	2.06
       
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_ARCHIVE_HASH=	sha1:43dc4fbe6c3bdf96ae24b20d44c4a4584df93d8e
       
    33 COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/pwgen/files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)	
       
    34 
       
    35 include ../../make-rules/prep.mk
       
    36 include ../../make-rules/configure.mk
       
    37 include ../../make-rules/ips.mk
       
    38 
       
    39 # IPS Package versions contain sequences of non-negative (for now) integers,
       
    40 # separated by dots.  Leading zeroes are not allowed, due to ordering
       
    41 # ambiguity, so IPS team has to massage "06" into "6" and thus IPS version
       
    42 # of pwgen is actually 2.6 and not 2.06.  IPS_COMPONENT_VERSION is by default
       
    43 # set to $(COMPONENT_VERSION) but in this case it has to be set specifically
       
    44 # to "2.6" to comply with the convention described above.
       
    45 #
       
    46 IPS_COMPONENT_VERSION=	2.6
       
    47 
       
    48 # configure in pwgen is generated by autoconf 2.13, which does not accept the
       
    49 # variables like CC, CXX, etc.  The solution is to generate a new configure
       
    50 # using modern autoconf available on the build system (version 2.63 in the
       
    51 # time of creating this makefile).
       
    52 #
       
    53 COMPONENT_PREP_ACTION=	(cd $(@D) ; autoconf) 
       
    54 
       
    55 CONFIGURE_OPTIONS+= 	CFLAGS="$(CFLAGS)"
       
    56 
       
    57 # This is to get rid of gcc specific -Wxxx options in pwgen makefile
       
    58 #
       
    59 COMPONENT_BUILD_TARGETS= WALL_OPTS=
       
    60 
       
    61 # common targets
       
    62 build:		$(BUILD_32)
       
    63 
       
    64 install:	$(INSTALL_32)
       
    65 	sed -f pwgen.1.oracleman-stability $(COMPONENT_SRC)/pwgen.1 > \
       
    66 				   $(PROTO_DIR)/$(USRSHAREMAN1DIR)/pwgen.1
       
    67 test:
       
    68 	@echo "no tests available"
       
    69 
       
    70 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    71 
       
    72 include ../../make-rules/depend.mk