summaryrefslogtreecommitdiff
blob: 6b03bd1227b07aeee52fb9cb7826710eb838fa50 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/helixplayer/helixplayer-1.0_beta1.ebuild,v 1.5 2005/03/27 06:21:38 chriswhite Exp $

inherit nsplugins eutils

DESCRIPTION="A free open-source media player by real"
HOMEPAGE="http://www.helixplayer.org/"
SRC_URI="https://helixcommunity.org/download.php/487/${P}-beta-source.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
# -sparc -amd64: 1.0_beta1: build fails on both platforms... --eradicator
KEYWORDS="~x86 -sparc -amd64"
IUSE="mozilla"
DEPEND="media-libs/libtheora
		media-libs/libogg"
RDEPEND=">=dev-libs/glib-2
		>=x11-libs/pango-1.2
		>=x11-libs/gtk+-2.2"

# Had to change the source directory because of this somewhat
# non-standard naming convention
S=${WORKDIR}/player_all-bingo-beta-20040615

src_unpack() {

	unpack ${A}
	cd ${S}

	#fixes gcc version checking with non C based locales
	epatch ${FILESDIR}/gcc_versioncheck.patch

	#fixes the .bif file to create a gentoo_player custom target
	epatch ${FILESDIR}/${P}-bif.patch

	#fixes the strange tarball name that gets created
	epatch ${FILESDIR}/installer-naming.patch
}

src_compile() {

	#copies our buildrc file over with information on where
	#ogg and theora libs are kept
	cp ${FILESDIR}/buildrc ${S}

	export BUILDRC="${S}/buildrc"
	export BUILD_ROOT="${S}/build"

	#now we can begin the build
	${S}/build/bin/build -m bingo-beta -trelease -k -P helix-client-all-defines-free player_gentoo || die
}

src_install() {

	#you're probably thinking "what on earth is he doing?!"
	#well.. you're right
	#the fact is.. the only way to get the directory structure helixplayer uses
	#is to use their archive installer, unpack it, then copy all the files over
	#This will be fixed soon.. don't worry :)
	mkdir ${S}/release/HelixPlayer
	tar -jxf ${S}/release/helixplayer.tar.bz2 -C ${S}/release/HelixPlayer

	#Ok, now that that little hack is over with ;)
	if use mozilla ; then
		cd ${S}/release/HelixPlayer/mozilla
		exeinto /opt/netscape/plugins
		doexe nphelix.so
		inst_plugin /opt/netscape/plugins/nphelix.so
	fi

	cd ${S}/release/HelixPlayer/codecs
	insinto /opt/HelixPlayer/codecs
	insopts -m755
	doins *

	cd ${S}/release/HelixPlayer/common
	insinto /opt/HelixPlayer/common
	insopts -m755
	doins *

	cd ${S}/release/HelixPlayer/doc
	insinto /opt/HelixPlayer/doc
	doins *

	cd ${S}/release/HelixPlayer/lib
	insinto /opt/HelixPlayer/lib
	insopts -m755
	doins *

	cd ${S}/release/HelixPlayer/plugins
	insinto /opt/HelixPlayer/plugins
	insopts -m755
	doins *

	cd ${S}/release/HelixPlayer/share
	insinto /opt/HelixPlayer/share
	doins *

	cd ${S}/release/HelixPlayer/share/default
	insinto /opt/HelixPlayer/share/default
	insopts -m644
	doins *

	cd ${S}/release/HelixPlayer/share/hxplay
	insinto /opt/HelixPlayer/share/hxplay
	insopts -m644
	doins *

	cd ${S}/release/HelixPlayer/share/icons
	insinto /opt/HelixPlayer/share/icons
	insopts -m644
	doins *

	cd ${S}/release/HelixPlayer/share/locale
	insinto /opt/HelixPlayer/share/locale
	insopts -m755
	doins *

	cd ${S}/release/HelixPlayer/
	insinto /opt/HelixPlayer
	insopts -m755
	doins hxplay hxplay.bin
	insopts -m644
	doins LICENSE README

	insinto /etc/env.d
	insopts -m644
	doins ${FILESDIR}/50helix
}