summaryrefslogtreecommitdiff
blob: 9df7ab45fd8f33b1b6b50305a87c037208cb860a (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
# By eroen <eroen-overlay@occam.eroen.eu>, 2018
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.

EAPI=6

inherit autotools

DESCRIPTION="Header-only library used by synfig"
HOMEPAGE="https://www.synfig.org"
SRC_URI="mirror://sourceforge/synfig/$P.tar.gz"
LICENSE="GPL-2+"

SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

src_prepare() {
	default

	# build system strips away -g* and -O* flags
	sed -e '/CXXFLAGS=.*debug_flags/s@`.*`@$CXXFLAGS@' \
		-e '/CFLAGS=.*debug_flags/s@`.*`@$CFLAGS@' \
		-e '/CXXFLAGS=.*optimization_flags/d' \
		-e '/CFLAGS=.*optimization_flags/d' \
		-i m4/subs.m4 || die

	eautoreconf
}