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
|
# -*-makefile-*-
#
# Copyright (C) 2012 by Adrian Baumgarth <adrian.baumgarth@l-3com.com>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_PROTOBUF) += protobuf
#
# Paths and names
#
PROTOBUF_VERSION := 3.6.1
PROTOBUF_MD5 := d4c50a611ac6486c6433eb53e3f60d1f
PROTOBUF := protobuf-all-$(PROTOBUF_VERSION)
PROTOBUF_SUFFIX := tar.gz
PROTOBUF_URL := https://github.com/google/protobuf/releases/download/v$(PROTOBUF_VERSION)/$(PROTOBUF).$(PROTOBUF_SUFFIX)
PROTOBUF_SOURCE := $(SRCDIR)/$(PROTOBUF).$(PROTOBUF_SUFFIX)
PROTOBUF_DIR := $(BUILDDIR)/$(PROTOBUF)
PROTOBUF_LICENSE := BSD-3-Clause
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
PROTOBUF_CONF_TOOL := autoconf
PROTOBUF_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--disable-64bit-solaris \
--disable-static \
--$(call ptx/wwo, PTXCONF_PROTOBUF_ZLIB)-zlib \
--with-protoc=$(PTXDIST_SYSROOT_HOST)/bin/protoc
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/protobuf.targetinstall:
@$(call targetinfo)
@$(call install_init, protobuf)
@$(call install_fixup, protobuf,PRIORITY,optional)
@$(call install_fixup, protobuf,SECTION,base)
@$(call install_fixup, protobuf,AUTHOR,"Adrian Baumgarth <adrian.baumgarth@l-3com.com>")
@$(call install_fixup, protobuf,DESCRIPTION,missing)
@$(call install_lib, protobuf, 0, 0, 0644, libprotobuf-lite)
@$(call install_lib, protobuf, 0, 0, 0644, libprotobuf)
@$(call install_finish, protobuf)
@$(call touch)
# vim: syntax=make
|