summaryrefslogtreecommitdiff
path: root/repo/protobuf/protobuf.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/protobuf/protobuf.xibuild')
-rw-r--r--repo/protobuf/protobuf.xibuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/protobuf/protobuf.xibuild b/repo/protobuf/protobuf.xibuild
new file mode 100644
index 0000000..187f3a0
--- /dev/null
+++ b/repo/protobuf/protobuf.xibuild
@@ -0,0 +1,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
+}