summaryrefslogtreecommitdiff
path: root/repo/libfreehand/libfreehand.xibuild
blob: 779bfcab12e8049afe4fccb8e5a97ac0eabc9f7e (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="libfreehand"
DESC="Import filter and tools for Adobe FreeHand documents"

MAKEDEPS="libxml2 lcms2 icu gperf perl doxygen librevenge zlib"

PKG_VER=0.1.2
SOURCE="https://dev-www.libreoffice.org/src/libfreehand/libfreehand-$PKG_VER.tar.xz"

ADDITIONAL="
fix-build.patch
parentheses-gcc8-fix.patch
"

prepare() {
    apply_patches
}

build() {
	export CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-copy"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

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