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
#
# 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 2016 Jim Klimov
#
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=    cxxtools
COMPONENT_VERSION=    2.2.1
COMPONENT_REVISION=    1
COMPONENT_SUMMARY=    Cxxtools is a comprehensive C++ class library for Unix and Linux
COMPONENT_SRC=    $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH=    \
  sha256:8cebb6d6cda7c93cc4f7c0d552a68d50dd5530b699cf87916bb3b708fdc4e342
COMPONENT_ARCHIVE_URL=    \
  http://www.tntnet.org/download/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL=    http://www.tntnet.org/cxxtools.html
COMPONENT_FMRI=    library/$(COMPONENT_NAME)
COMPONENT_CLASSIFICATION=    System/Libraries
COMPONENT_LICENSE=    LGPLv2.1
COMPONENT_LICENSE_FILE=    COPYING
 
include $(WS_TOP)/make-rules/prep.mk
include $(WS_TOP)/make-rules/configure.mk
include $(WS_TOP)/make-rules/ips.mk
 
CXXFLAGS.32=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CFLAGS.32=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 
CXXFLAGS+=$(CXXFLAGS.$(BITS))
CFLAGS+=$(CFLAGS.$(BITS))
 
CONFIGURE_OPTIONS+= --sysconfdir=/etc
 
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)
REQUIRED_PACKAGES += system/library/math