source: app-misc/irtrans-irserver/irtrans-irserver-6.10.23.ebuild @ f3987e6

Revision f3987e6, 1.8 KB checked in by Mario Fetka <mario.fetka@…>, 10 months ago (diff)

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2018 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=7
5
6inherit flag-o-matic toolchain-funcs mono-env
7
8DESCRIPTION="Server software for IRTrans"
9HOMEPAGE="http://www.irtrans.de"
10SRC_URI="http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz
11         http://ftp.disconnected-by-peer.at/irtrans/irserver-${PV}.tar.gz
12        http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz
13        http://www.irtrans.de/download/Server/Linux/irserver.tar.gz -> irserver-${PV}.tar.gz"
14
15LICENSE="BSD GPL-2"
16SLOT="0"
17KEYWORDS="~amd64 ~arm ~x86"
18IUSE="mono"
19RESTRICT="strip"
20
21RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )"
22
23S="${WORKDIR}"
24
25src_prepare() {
26        default
27        sed -e 's!^ODIRARM = .*!ODIRARM = n800!' -i makefile || die
28}
29
30src_compile() {
31        append-flags -DLINUX -DMEDIACENTER
32        append-ldflags --static
33
34        # Set sane defaults (arm target has no -D flags added)
35        local irbuild=irserver_arm_noccf
36        irserver=irserver
37
38        # change variable by need
39        if use x86 ; then
40                irbuild=irserver
41        elif use amd64 ; then
42                irbuild=irserver64
43                irserver=irserver64
44        elif use arm ; then
45                irbuild=irserver_arm
46        fi
47
48        emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
49                CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}"
50}
51
52src_install() {
53        newbin "${WORKDIR}/${irserver}" irserver
54
55        keepdir /etc/irserver/remotes
56
57        docinto remotes
58        dodoc -r remotes
59
60        newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
61        newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
62
63        if use mono ; then
64                # Wrapper script to launch mono
65                make_wrapper irguiclient "mono /usr/$(get_libdir)/${PN}/GUIClient.exe"
66
67                insinto /usr/$(get_libdir)/${PN}/
68                exeinto /usr/$(get_libdir)/${PN}/
69
70                # The Libs and Translations
71                doins GUIClient/*.tra
72                doexe GUIClient/*.dll
73
74                # The actual executable
75                doexe GUIClient/*.exe
76        fi
77}
Note: See TracBrowser for help on using the repository browser.