Aurelien Larcher
2018-01-20 2136604c82fa97645ec6488d4a395fdaebb7eba4
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# 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 2014 Alexander Pyhalov.  All rights reserved.
# Copyright 2016 Jim Klimov
#
 
include ../../../../make-rules/shared-macros.mk
 
COMPONENT_NAME= zeromq
 
# See configure.ac for ABI version mapping to software version
COMPONENT_VERSION_ABI= 3
COMPONENT_VERSION_MAJ= 3
COMPONENT_VERSION_MIN= 2
COMPONENT_VERSION_PAT= 5
COMPONENT_VERSION_MAJ_MIN= $(COMPONENT_VERSION_MAJ).$(COMPONENT_VERSION_MIN)
COMPONENT_VERSION= $(COMPONENT_VERSION_MAJ_MIN).$(COMPONENT_VERSION_PAT)
COMPONENT_REVISION= 3
 
COMPONENT_SUMMARY= Open source message queue optimised for performance
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= \
  sha256:09653e56a466683edb2f87ee025c4de55b8740df69481b9d7da98748f0c92124
COMPONENT_ARCHIVE_URL= \
  http://download.zeromq.org/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL= http://zeromq.org/
# Two licenses in tarball, LGPLv3+ is referenced in their spec-file
COMPONENT_LICENSE_FILE= COPYING.LESSER
COMPONENT_LICENSE= LGPLv3+
COMPONENT_CLASSIFICATION= System/Libraries
 
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk
 
# Note: This USR path is used in build prefix and in p5m manifest,
# except where we mediate the links and the relative SUB path is used
COMPONENT_SUB_DIR=zeromq-$(COMPONENT_VERSION_MAJ_MIN)
COMPONENT_USR_DIR=$(USRDIR)/$(COMPONENT_SUB_DIR)
 
PKG_OPTIONS +=    -D COMPONENT_VERSION_ABI="$(COMPONENT_VERSION_ABI)"
PKG_OPTIONS +=    -D COMPONENT_VERSION_MAJ_MIN="$(COMPONENT_VERSION_MAJ_MIN)"
PKG_OPTIONS +=    -D COMPONENT_SUB_DIR="$(COMPONENT_SUB_DIR)"
PKG_OPTIONS +=    -D COMPONENT_USR_DIR="$(COMPONENT_USR_DIR)"
 
COMPONENT_PREP_ACTION =    \
    ( cd $(@D) && \
      libtoolize --copy --force && \
      aclocal -I m4 && \
      autoheader && \
      automake -c -f -a && \
      autoconf )
 
COMPONENT_PRE_CONFIGURE_ACTION =    ($(CLONEY) $(SOURCE_DIR) $(@D))
 
# Build docs just once (for one ARCH), parameter varies from version to version
CONFIGURE_OPTIONS.32 +=    --with-documentation --with-docs
CONFIGURE_OPTIONS.64 +=    --without-documentation --without-docs
 
CONFIGURE_OPTIONS +=    --enable-static=no
CONFIGURE_OPTIONS +=    --with-libsodium
 
CONFIGURE_PREFIX   =    $(COMPONENT_USR_DIR)
 
CONFIGURE_OPTIONS +=    --sysconfdir=/etc
CONFIGURE_OPTIONS +=    --localstatedir=/var
 
build: $(BUILD_32_and_64)
 
install: $(INSTALL_32_and_64)
 
test: $(TEST_32_and_64)
 
BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
 
include $(WS_MAKE_RULES)/depend.mk
 
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/g++-4-runtime
REQUIRED_PACKAGES += system/library/gcc-6-runtime