gnu-iconv: build 64-bit only
[unleashed-userland.git] / components / gnu-iconv / Makefile
blobfc98d3767cbc484ba8db267a6cb0557366aac7fc
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
21 # Copyright 2011 EveryCity Ltd. All rights reserved.
22 # Copyright 2013 David Hoeppner. All rights reserved.
24 include ../../make-rules/shared-macros.mk
26 COMPONENT_NAME= libiconv
27 COMPONENT_VERSION= 1.14
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
30 COMPONENT_ARCHIVE_HASH= \
31 sha256:72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613
32 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
34 include ../../make-rules/prep.mk
35 include ../../make-rules/configure.mk
36 include ../../make-rules/ips.mk
38 CONFIGURE_BINDIR.64 = $(CONFIGURE_BINDIR.32)
40 CONFIGURE_OPTIONS += --disable-static
41 CONFIGURE_OPTIONS += --enable-shared
43 $(INSTALL_32): COMPONENT_POST_INSTALL_ACTION = \
44 /usr/bin/elfedit -e "dyn:runpath ''" $(PROTOUSRBINDIR)/iconv
46 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION = \
47 /usr/bin/elfedit -e "dyn:runpath ''" $(PROTOUSRBINDIR)/iconv
49 # common targets
50 build: $(BUILD_64)
52 include ../../make-rules/shared-targets.mk
54 install: $(INSTALL_64)
56 # build does this always
57 test: build
58 @cd $(BUILD_DIR_64); $(MAKE) check
60 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
62 include ../../make-rules/depend.mk