You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit autotools flag-o-matic
|
||
13 years ago
|
|
||
|
DESCRIPTION="ROM management tools and library"
|
||
|
HOMEPAGE="http://mamory.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
|
DEPEND="dev-libs/expat"
|
||
6 years ago
|
RDEPEND="${DEPEND}"
|
||
13 years ago
|
|
||
10 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
13 years ago
|
# Make sure the system expat is used
|
||
|
sed -i \
|
||
|
-e 's/#ifdef.*SYSEXPAT/#if 1/' \
|
||
9 years ago
|
mamory/amlxml.c mamory/amlxml.h || die
|
||
13 years ago
|
|
||
|
# Remove hardcoded CFLAGS options
|
||
|
sed -i \
|
||
|
-e '/AC_ARG_ENABLE(debug,/ {N;N;N;d}' \
|
||
9 years ago
|
configure.ac || die
|
||
13 years ago
|
|
||
|
# Make it possible for eautoreconf to fix fPIC etc.
|
||
|
sed -i \
|
||
|
-e '/libcommon_la_LDFLAGS= -static/d' \
|
||
9 years ago
|
common/Makefile.am || die
|
||
13 years ago
|
|
||
12 years ago
|
AT_M4DIR="config" eautoreconf
|
||
8 years ago
|
append-cflags -std=gnu89 # build with gcc5 (bug #570500)
|
||
13 years ago
|
}
|
||
|
|
||
10 years ago
|
src_configure() {
|
||
6 years ago
|
econf \
|
||
|
--includedir=/usr/include \
|
||
|
--disable-static
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
HTML_DOCS="DOCS/mamory.html" default
|
||
|
find "${D}" -name '*.la' -delete || die
|
||
13 years ago
|
}
|