blob: ce967c1412ea30f9bbeccf6b379e7fdd51acb812 (
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
39
40
41
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic toolchain-funcs
DESCRIPTION="An Object File Converter"
HOMEPAGE="http://www.agner.org/optimize#objconv"
SRC_URI="http://www.agner.org/optimize/${PN}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="doc"
DEPEND="app-arch/unzip"
RDEPEND="${DEPEND}"
MY_SOURCE="source.zip"
src_unpack() {
unpack ${PN}.zip
unpack ./${MY_SOURCE}
}
src_compile() {
SOURCES=$(ls *.cpp)
local x
for x in $SOURCES ; do
echo "Compiling $x..."
$(tc-getCXX ) ${CXXFLAGS} -c ${x} \
|| die "Compile failed."
done
OBJS=$(ls *.o)
echo "Creating objconv..."
$(tc-getCXX ) ${CXXFLAGS} -o ${PN} $OBJS
}
src_install() {
dobin ${PN} || die "Install failed!"
if use doc ; then
dodoc objconv-instructions.pdf || die "Unable to install manual!"
fi
}
|