summaryrefslogtreecommitdiff
path: root/repo/protobuf/protobuf.xibuild
blob: 187f3a08218c2b78ff55c885c1de3eebf1754fbe (plain)
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
#!/bin/sh

NAME="protobuf"
DESC="Library for extensible, efficient structure packing"

MAKEDEPS="zlib autoconf automake libtool"

PKG_VER=3.18.1
SOURCE="https://github.com/google/protobuf/archive/v$PKG_VER.tar.gz"

ADDITIONAL="
ruby-fix-cflags.patch
skip-failing-tests.patch
trim-rakefile.patch
"

prepare() {
	apply_patches

	./autogen.sh

	# symlink tests to the test directory
	rm -rf third_party/googletest
}

build() {
	CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -Wno-error" \
		./configure --prefix=/usr \
			--sysconfdir=/etc \
			--mandir=/usr/share/man \
			--infodir=/usr/share/info \
			--localstatedir=/var
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
}