summaryrefslogtreecommitdiff
path: root/repo/librevenge/librevenge.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/librevenge/librevenge.xibuild')
-rw-r--r--repo/librevenge/librevenge.xibuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/librevenge/librevenge.xibuild b/repo/librevenge/librevenge.xibuild
new file mode 100644
index 0000000..3c5c224
--- /dev/null
+++ b/repo/librevenge/librevenge.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+NAME="librevenge"
+DESC="Base library for writing document import filters"
+
+MAKEDEPS="boost zlib cppunit doxygen"
+
+PKG_VER=0.0.4
+SOURCE="https://sourceforge.net/projects/libwpd/files/librevenge/librevenge-$PKG_VER/librevenge-$PKG_VER.tar.xz"
+
+build() {
+ # workaround for boost-1.59
+ # http://sourceforge.net/p/libwpd/tickets/6/
+ # http://sourceforge.net/p/libwpd/librevenge/ci/0beee70d1bf52f0d81b60ee8c373e477991fe546/
+ export CPPFLAGS=-DBOOST_ERROR_CODE_HEADER_ONLY
+
+ CXXFLAGS="$CXXFLAGS -Wno-error=implicit-fallthrough -Wno-error=parentheses" \
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-dependency-tracking \
+ --enable-fast-install
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+