components/popt/Makefile
changeset 1086 658961e6c9b9
child 1434 c782e620dd26
child 3661 47545fb8aed4
equal deleted inserted replaced
1085:23b00a0af1ef 1086:658961e6c9b9
       
     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) 2012, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		popt
       
    29 COMPONENT_VERSION=	1.7
       
    30 COMPONENT_PROJECT_URL=	http://freecode.com/projects/popt/
       
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH= \
       
    34     sha256:4e75cb28793f0d44134f71fae53057d5f250805e6268fbd9c9780654b73b0dc1
       
    35 COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/cross-stuff/files/cross-stuff/1.0/$(COMPONENT_ARCHIVE)/download
       
    36 COMPONENT_BUGDB=	library/popt
       
    37 
       
    38 include ../../make-rules/prep.mk
       
    39 include ../../make-rules/configure.mk
       
    40 include ../../make-rules/ips.mk
       
    41 
       
    42 COMPONENT_PREP_ACTION = \
       
    43         (cd $(@D) ; \
       
    44 	$(TOUCH) config.rpath ; \
       
    45 	libtoolize -f ; \
       
    46 	aclocal -I . ; \
       
    47 	autoconf ; \
       
    48 	automake -a -c -f )
       
    49 
       
    50 # Needed to get "gmake test" to work.
       
    51 COMPONENT_PRE_CONFIGURE_ACTION = \
       
    52 	($(CLONEY) $(SOURCE_DIR) $(@D))
       
    53 
       
    54 # Add /usr/gnu/bin at the front of $PATH for GNU gettext.
       
    55 CONFIGURE_ENV +=	PATH=/usr/gnu/bin:$(PATH)
       
    56 
       
    57 CONFIGURE_OPTIONS +=	--disable-nls
       
    58 
       
    59 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
       
    60 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
       
    61 
       
    62 PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
       
    63 
       
    64 # common targets
       
    65 build:          $(BUILD_32_and_64)
       
    66 
       
    67 install:        $(INSTALL_32_and_64)
       
    68 
       
    69 test:           $(TEST_32_and_64)
       
    70 
       
    71 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
       
    72 
       
    73 include ../../make-rules/depend.mk