42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'libcdr'
|
|
pkgname=libcdr
|
|
version=0.1.3
|
|
revision=3
|
|
build_style=gnu-configure
|
|
short_desc="Corel Draw file format importer library"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="LGPL-2.1/MPL"
|
|
makedepends="lcms2-devel icu-devel librevenge-devel boost-devel"
|
|
hostmakedepends="pkg-config"
|
|
homepage="https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
|
|
distfiles="http://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.bz2"
|
|
checksum=5160bbbfefe52bd4880840fad2b07a512813e37bfaf8ccac062fca238f230f4d
|
|
configure_args="--enable-debug"
|
|
|
|
post_configure() {
|
|
local _f
|
|
# -O0 prevents _FORTIFY_SOURCE working
|
|
for _f in $(find ${wrksrc} -name Makefile); do
|
|
sed -i $_f -e "s; -O0;;"
|
|
done
|
|
# Fix for gcc7 -Werror=implicit-fallthrough=
|
|
sed -i src/lib/CMXParser.cpp -e's;Fallthrough ;Fallthrough- ;'
|
|
}
|
|
|
|
libcdr-devel_package() {
|
|
depends="libcdr>=${version}_${revision} $makedepends"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libcdr-tools_package() {
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|