gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / mail / abook / Makefile
blob04cdaeb04dc82c8a8c6c2810d9565d5dc68d2d82
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
22 # Copyright (c) 2015 Matt Samudio
25 include ../../../make-rules/shared-macros.mk
27 COMPONENT_NAME= abook
28 COMPONENT_VERSION= 0.5.6
29 COMPONENT_REVISION= 1
30 COMPONENT_PROJECT_URL= http://abook.sourceforge.net/
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:0646f6311a94ad3341812a4de12a5a940a7a44d5cb6e9da5b0930aae9f44756e
35 COMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/abook/$(COMPONENT_ARCHIVE)
36 COMPONENT_FMRI= mail/$(COMPONENT_NAME)
37 COMPONENT_CLASSIFICATION= Applications/Internet
38 COMPONENT_SUMMARY= abook addressbook program
39 COMPONENT_LICENSE= GPLv2
40 COMPONENT_LICENSE_FILE= COPYING
42 include $(WS_MAKE_RULES)/prep.mk
43 include $(WS_MAKE_RULES)/configure.mk
44 include $(WS_MAKE_RULES)/ips.mk
46 CPPFLAGS += -I/usr/include/ncurses
47 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
49 COMPONENT_PRE_CONFIGURE_ACTION = (cp -r $(SOURCE_DIR)/* $(BUILD_DIR_$(BITS))/)
50 COMPONENT_BUILD_ARGS=
51 COMPONENT_BUILD_ENV += CC=$(CC)
53 # common targets
54 build: $(BUILD_32_and_64)
56 install: $(INSTALL_32_and_64)
58 test: $(NO_TESTS)
60 REQUIRED_PACKAGES += library/ncurses
61 REQUIRED_PACKAGES += library/readline
62 REQUIRED_PACKAGES += system/library