aboutsummaryrefslogtreecommitdiff
blob: 00ba216b0ebd48ae90e50969e88268b6bd1bc246 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $


DESCRIPTION="Library for reading Origin spreadshits"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://sourceforge.net/projects/liborigin/"

LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"

SLOT="0"
IUSE=""

DEPEND=""

src_compile() {
	# the Makefile.LINUX is very basic, and *both* (and the only) "action" lines
	# need to be adjusted. It is easier to simply build stuff in a proper way
	# directly here.
	g++ -shared -Wl,-soname,liborigin.so.0 ${CXXFLAGS} -fPIC OPJFile.cpp \
		-o liborigin.so.0.0.1
	g++ -o opj2dat ${CXXFLAGS} opj2dat.cpp OPJFile.cpp
	ln -s liborigin.so.0.0.1 liborigin.so.0
	ln -s liborigin.so.0 liborigin.so
}

src_install() {
	dolib liborigin.so*
	dobin opj2dat
	dodoc COPYING README ws4.opj
	insinto /usr/include
	doins OPJFile.h
}