Merge pull request #1999 from pullmoll/libcdr

libcdr: -O0 prevents _FORTIFY_SOURCE
This commit is contained in:
Jürgen Buchmüller 2015-07-11 20:53:11 +02:00
commit 6e4dc2f189

View file

@ -1,11 +1,11 @@
# Template file for 'libcdr' # Template file for 'libcdr'
pkgname=libcdr pkgname=libcdr
version=0.1.1 version=0.1.1
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
short_desc="Corel Draw file format importer library" short_desc="Corel Draw file format importer library"
maintainer="Enno Boland <eb@s01.de>" maintainer="Enno Boland <eb@s01.de>"
license="LGPL/MPL" license="LGPL-2.1/MPL"
makedepends="lcms2-devel icu-devel librevenge-devel boost-devel" makedepends="lcms2-devel icu-devel librevenge-devel boost-devel"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
homepage="https://wiki.documentfoundation.org/DLP/Libraries/libcdr" homepage="https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
@ -13,6 +13,14 @@ distfiles="http://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.bz2"
checksum=72fe7bbbf2275242acdf67ad2f9b6c71ac9146a56c409def360dabcac5695b49 checksum=72fe7bbbf2275242acdf67ad2f9b6c71ac9146a56c409def360dabcac5695b49
configure_args="--enable-debug" 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
}
libcdr-devel_package() { libcdr-devel_package() {
depends="libcdr>=${version}_${revision} $makedepends" depends="libcdr>=${version}_${revision} $makedepends"
short_desc+=" - development files" short_desc+=" - development files"