gcc-6: don't ship info pages
[unleashed-userland.git] / components / cunit / Makefile
blobf990db47d62cb43f034a870f77cb1f2623ff043f
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.illumos.org/license/CDDL.
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 (c) 2013, Aurelien Larcher. All rights reserved.
23 include ../../make-rules/shared-macros.mk
25 COMPONENT_NAME= cunit
26 COMPONENT_VERSION= 2.1.3
27 COMPONENT_FMRI= developer/cunit
28 COMPONENT_CLASSIFICATION=Development/C
29 COMPONENT_SRC_NAME= CUnit
30 COMPONENT_SRC_VERSION= 2.1-3
31 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_SRC_VERSION)
32 COMPONENT_PROJECT_URL= http://cunit.sourceforge.net/
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214
36 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/cunit/files/CUnit/$(COMPONENT_SRC_VERSION)/$(COMPONENT_ARCHIVE)
37 COMPONENT_LICENSE= LGPLv2
38 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
39 COMPONENT_SUMMARY= Automated testing framework for C
41 include $(WS_MAKE_RULES)/prep.mk
42 include $(WS_MAKE_RULES)/configure.mk
43 include $(WS_MAKE_RULES)/ips.mk
45 COMPONENT_PREP_ACTION = ( cd $(@D) && \
46 aclocal -I m4 --install && \
47 libtoolize -i && \
48 autoheader && \
49 automake --add-missing --include-deps --copy && \
50 autoconf && \
51 chmod u+x configure && \
52 make distclean )
54 CONFIGURE_OPTIONS+= --datadir=$(USRSHAREDIR)
55 CONFIGURE_OPTIONS+= --enable-shared
56 CONFIGURE_OPTIONS+= --disable-static
57 CONFIGURE_OPTIONS+= --enable-memtrace
58 CONFIGURE_OPTIONS+= --enable-automated
59 CONFIGURE_OPTIONS+= --enable-basic
60 CONFIGURE_OPTIONS+= --enable-console
61 CONFIGURE_OPTIONS+= --enable-examples
62 CONFIGURE_OPTIONS+= --enable-test
66 build: $(BUILD_32_and_64)
68 install: $(INSTALL_32_and_64)
70 CUNIT_TESTDIR=CUnit/Sources/Test
71 CUNIT_TESTBIN=test_cunit
73 test: $(TEST_32_and_64)
74 pushd $(BUILD_DIR_32)/$(CUNIT_TESTDIR); ./$(CUNIT_TESTBIN); popd;
75 pushd $(BUILD_DIR_64)/$(CUNIT_TESTDIR); ./$(CUNIT_TESTBIN); popd;
77 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
79 include $(WS_MAKE_RULES)/depend.mk