summaryrefslogtreecommitdiff
blob: 45efc9209306a684b7a514a48dbacf7c4e41c092 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools libtool multiprocessing

DESCRIPTION="City simulation game"
HOMEPAGE="https://github.com/lincity-ng/lincity-ng"
SRC_URI="https://github.com/lincity-ng/lincity-ng/archive/lincity-ng-${PV/_/-}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2 BitstreamVera CC-BY-SA-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-games/physfs
	dev-libs/libxml2:2
	media-libs/libsdl[sound,joystick,opengl,video]
	media-libs/sdl-gfx
	media-libs/sdl-image[png]
	media-libs/sdl-mixer[vorbis]
	media-libs/sdl-ttf
	sys-libs/zlib
	virtual/opengl"
DEPEND="${RDEPEND}"
BDEPEND="dev-util/ftjam
	virtual/pkgconfig"

S="${WORKDIR}/${PN}-${P/_/-}"

src_prepare() {
	default
	sed -i "/COPYING COPYING-data.txt COPYING-fonts.txt CREDITS /d" \
		Jamfile || die

	# Can't use eautoreconf as it does weird jam stuff.
	autotools_run_tool ./autogen.sh
	elibtoolize
}

src_compile() {
	jam -q -dx -j $(makeopts_jobs) || die "jam failed"
}

src_install() {
	jam -sDESTDIR="${D}" \
		-sappdocdir="${EPREFIX}/usr/share/doc/${PF}" \
		-sapplicationsdir="${EPREFIX}/usr/share/applications" \
		-spixmapsdir="${EPREFIX}/usr/share/pixmaps" \
		install \
		|| die "jam install failed"
}