/[gentoo-x86]/media-video/helixplayer/helixplayer-1.0.5.ebuild
Gentoo

Contents of /media-video/helixplayer/helixplayer-1.0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Nov 23 11:22:13 2005 UTC (14 years, 6 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Removed helixplayer as intended.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/helixplayer/helixplayer-1.0.5.ebuild,v 1.5 2005/11/22 10:31:12 flameeyes Exp $
4
5 inherit nsplugins eutils
6
7 MY_PKG=${P/helixplayer/hxplay}
8
9 PATCHLEVEL="1"
10 DESCRIPTION="A free open-source media player by real"
11 HOMEPAGE="http://www.helixplayer.org/"
12 SRC_URI="https://helixcommunity.org/download.php/1340/${MY_PKG}.tar.bz2
13 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 # -sparc -amd64: 1.0_beta1: build fails on both platforms... --eradicator
18 KEYWORDS="-amd64 ~x86"
19 IUSE="nsplugin nptl"
20 DEPEND="media-libs/libtheora
21 media-libs/libogg"
22 RDEPEND=">=dev-libs/glib-2
23 >=x11-libs/pango-1.2
24 >=x11-libs/gtk+-2.2"
25
26 # Had to change the source directory because of this somewhat
27 # non-standard naming convention
28 S=${WORKDIR}/${MY_PKG}
29
30 src_unpack() {
31 unpack ${A}
32 cd ${S}
33
34 use nptl || EPATCH_EXCLUDE="03_all_sem-t.patch"
35 EPATCH_SUFFIX="patch" epatch ${WORKDIR}/1.0.4
36
37 #fixes icon name in .desktop file
38 sed -i -e 's:hxplay.png:hxplay:' ${S}/player/installer/common/hxplay.desktop
39 }
40
41 src_compile() {
42
43 #copies our buildrc file over with information on where
44 #ogg and theora libs are kept
45 cp ${WORKDIR}/1.0.4/buildrc ${S}
46
47 export BUILDRC="${S}/buildrc"
48 export BUILD_ROOT="${S}/build"
49
50 #now we can begin the build
51 ${S}/build/bin/build -m hxplay_gtk_release -trelease -k -P helix-client-all-defines-free player_gentoo || die
52 }
53
54 src_install() {
55
56 # install the tarballed installation into
57 # the /opt directory
58 keepdir /opt/HelixPlayer
59 tar -jxf ${S}/release/helixplayer.tar.bz2 -C ${D}/opt/HelixPlayer
60
61 if use nsplugin ; then
62 cd ${D}/opt/HelixPlayer/mozilla
63 exeinto /opt/netscape/plugins
64 doexe nphelix.so
65 inst_plugin /opt/netscape/plugins/nphelix.so
66 fi
67
68 doenvd ${WORKDIR}/1.0.4/50helix
69
70 for res in 16 192 32 48; do
71 insinto /usr/share/icons/hicolor/${res}x${res}/apps
72 newins ${S}/player/app/gtk/res/icons/hxplay/hxplay_${res}x${res}.png \
73 hxplay.png
74 done
75
76 domenu ${S}/player/installer/common/hxplay.desktop
77
78 # Remove setup script as it's dangerous, and the directory if it's empty
79 rm -rf ${D}/opt/HelixPlayer/Bin/setup
80 rm -f ${D}/opt/HelixPlayer/Bin
81 }

  ViewVC Help
Powered by ViewVC 1.1.20