source: app-misc/irtrans-irclient/irtrans-irclient-6.01.16.ebuild @ f3987e6

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

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2019 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=7
5
6inherit flag-o-matic toolchain-funcs
7
8RESTRICT="strip"
9
10DESCRIPTION="ASCII Client for the IRTrans Server"
11HOMEPAGE="http://www.irtrans.de"
12SRC_URI="http://ftp.disconnected-by-peer.at/irtrans/irclient-src-${PV}.tar.gz
13        http://www.irtrans.de/download/Client/irclient-src.tar.gz -> irclient-src-${PV}.tar.gz
14        http://ftp.disconnected-by-peer.at/irtrans/${PN}-5.11.04-ip_assign-1.patch.bz2"
15
16LICENSE="BSD"
17SLOT="0"
18KEYWORDS="~amd64 ~arm ~x86"
19
20S="${WORKDIR}"
21
22PATCHES=( "${WORKDIR}/${PN}"-5.11.04-ip_assign-1.patch )
23
24src_compile() {
25        append-flags -DLINUX
26
27        # Set sane defaults (arm target has no -D flags added)
28        local irbuild
29        local ipbuild
30        irclient=irclient
31        ip_assign=ip_assign
32
33        # change variable by need
34        if use amd64; then
35                irbuild=irclient64
36                irclient=irclient64
37                ipbuild=ip_assign64
38                ip_assign=ip_assign64
39        elif use arm; then
40                irbuild=irclient_arm
41                ipbuild=ip_assign_arm
42        elif use x86; then
43                irbuild=irclient
44                ipbuild=ip_assign
45        fi
46
47        emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" \
48                CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" \
49                "${irbuild}"
50        emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" \
51                CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" \
52                "${ipbuild}"
53}
54
55src_install() {
56        newbin "${irclient}" irclient
57        newbin "${ip_assign}" ip_assign
58}
Note: See TracBrowser for help on using the repository browser.