Aurelien Larcher
2018-05-22 f5010fe9316920bd94de91639b3b87ffe72ffe4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright (c) 2013, Igor Kozhukhov <ikozhukhov@gmail.com>.  All rights reserved.
#
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=       cppunit
COMPONENT_VERSION=      1.14.0
COMPONENT_FMRI=       developer/cppunit
COMPONENT_SUMMARY=    Unit Testing Library for C++
COMPONENT_CLASSIFICATION=Development/C++
COMPONENT_PROJECT_URL=http://www.freedesktop.org/wiki/Software/cppunit/
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH=    \
    sha256:3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780
COMPONENT_ARCHIVE_URL= \
  http://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE)
COMPONENT_LICENSE=    LGPLv2.1
 
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk
 
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-doxygen
CONFIGURE_OPTIONS += --enable-shared
 
# Tests failure
unexport SHELLOPTS
 
COMPONENT_TEST_ENV+= LANG=C
 
COMPONENT_TEST_TRANSFORMS += \
    '-e "/CXX/d"' \
    '-e "/[mM]ake/d"' \
    '-e "/^[mM]aking/d"' \
    '-e "s|make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
    '-e "s|make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
    '-e "s|make.*: Nothing to be done.*$$|XXX_REMOVE_XXX|g" ' \
    '-e "/^XXX_REMOVE_XXX$$/d" '
 
# common targets
build:        $(BUILD_32_and_64)
 
install:    $(INSTALL_32_and_64)
 
test:        $(TEST_32_and_64)
 
# Auto-generated dependencies
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)