blob: 424d72ce75dcc63eb8d49714cf1a0abab21e5673 (
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: /var/cvsroot/gentoo-x86/sci-libs/liborigin/liborigin-20060616.ebuild,v 1.2 2006/11/08 08:26:14 george Exp $
DESCRIPTION="A library for reading OriginLab OPJ project files"
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
}
|