/[gentoo-x86]/sci-libs/liborigin/liborigin-20070529.ebuild
Gentoo

Contents of /sci-libs/liborigin/liborigin-20070529.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 6 23:13:06 2008 UTC (12 years, 8 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump and removed older ones
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/liborigin/liborigin-20070529.ebuild,v 1.1 2007/08/01 17:20:34 bicatali Exp $
4
5 inherit toolchain-funcs multilib
6
7 DESCRIPTION="A library for reading OriginLab OPJ project files"
8 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
9 HOMEPAGE="http://sourceforge.net/projects/liborigin/"
10
11 LICENSE="GPL-2"
12 KEYWORDS="~x86 ~amd64"
13
14 SLOT="0"
15 IUSE=""
16
17 DEPEND="!<sci-visualization/labplot-1.5.1.6"
18 RESTRICT="test"
19
20 S="${WORKDIR}/${PN}"
21
22 src_compile() {
23 # the Makefile.LINUX is very basic, and *both* (and the only) "action" lines
24 # need to be adjusted. It is easier to simply build stuff in a proper way
25 # directly here.
26 $(tc-getCXX) \
27 ${CXXFLAGS} \
28 OPJFile.cpp \
29 -shared -Wl,-soname,liborigin.so.0 -fPIC \
30 -o liborigin.so.0.0.1 || die "lib compilation failed"
31 $(tc-getCXX) \
32 ${CXXFLAGS} \
33 opj2dat.cpp OPJFile.cpp \
34 -o opj2dat || die "exec compilation failed"
35 }
36
37 src_install() {
38 dolib liborigin.so.0.0.1 || die "dolib failed"
39 dosym liborigin.so.0.0.1 /usr/$(get_libdir)/liborigin.so.0
40 dosym liborigin.so.0 /usr/$(get_libdir)/liborigin.so
41 dobin opj2dat || die "dobin failed"
42 dodoc README ws4.opj || die "dodoc failed"
43 insinto /usr/include
44 doins OPJFile.h || die "doins failed"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20