Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 111820 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-misc/lirc/lirc-0.7.2.ebuild (-63 / +76 lines)
Lines 2-67 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.7.2.ebuild,v 1.1 2005/08/23 10:43:47 lanius Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.7.2.ebuild,v 1.1 2005/08/23 10:43:47 lanius Exp $
4
4
5
inherit eutils linux-mod flag-o-matic
5
inherit eutils linux-mod flag-o-matic autotools
6
6
7
DESCRIPTION="LIRC is a package that allows you to decode and send infra-red \
7
DESCRIPTION="LIRC is a package that allows you to decode and send infra-red \
8
	signals of many (but not all) commonly used remote controls."
8
	signals of many (but not all) commonly used remote controls."
9
HOMEPAGE="http://www.lirc.org"
9
HOMEPAGE="http://www.lirc.org"
10
10
11
# LIRC_OPTS = ???? v
12
# This are the defaults. With this support for all supported remotes
13
# will be build.
14
# If you want other options then set the Environment variable to your needs.
15
16
# Note: If you don't specify the driver configure becomes interactiv.
17
18
# You have to know, which driver you want;
19
# --with-driver=X
20
21
# where X is one of:
22
# none, any, act200l, animax, atilibusb,
23
# atiusb, audio, avermedia, avermedia_vdomate,
24
# avermedia98, bestbuy, bestbuy2, breakoutbox,
25
# bte, caraca, chronos, comX,
26
# creative_infracd, dsp, cph03x, cph06x,
27
# creative, devinput, exaudio, flyvideo,
28
# gvbctv5pci, hauppauge, hauppauge_dvb,
29
# hercules_smarttv_stereo, igorplugusb, irdeo,
30
# irdeo_remote, irman, irreal, it87, knc_one,
31
# kworld, leadtek_0007, leadtek_0010,
32
# livedrive_midi, livedrive_seq, logitech,
33
# lptX, mceusb, mediafocusI, mp3anywhere,
34
# packard_bell, parallel, pcmak, pcmak_usb,
35
# pctv, pixelview_bt878, pixelview_pak,
36
# pixelview_pro, provideo, realmagic,
37
# remotemaster, sa1100, sasem, serial,
38
# silitek, sir, slinke, tekram, tekram_bt829,
39
# tira, tvbox, udp, uirt2, uirt2_raw"
40
# winfast_tv2000 is now leadtek_0010
41
# streamzap
42
43
# This could be usefull too
44
45
# --with-port=port	# port number for the lirc device.
46
# --with-irq=irq	# irq line for the lirc device.
47
# --with-timer=value	# timer value for the parallel driver
48
# --with-tty=file	# tty to use (Irman, RemoteMaster, etc.)
49
# --without-soft-carrier	# if your serial hw generates carrier
50
# --with-transmitter	# if you use a transmitter diode
51
52
SLOT="0"
11
SLOT="0"
53
LICENSE="GPL-2"
12
LICENSE="GPL-2"
54
IUSE="debug doc X"
13
IUSE="alsa debug doc X usb"
55
KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64 ~ppc64"
14
KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64 ~ppc64"
56
15
57
RDEPEND="virtual/libc
16
RDEPEND="virtual/libc
17
	virtual/modutils
18
	sys-apps/coreutils
19
	alsa? ( media-libs/alsa-lib )
20
	usb? ( dev-libs/libusb )
58
	X? ( virtual/x11 )"
21
	X? ( virtual/x11 )"
59
22
60
DEPEND="virtual/linux-sources
23
DEPEND="virtual/linux-sources
61
	sys-devel/autoconf
24
	sys-devel/autoconf
25
	sys-devel/libtool
62
	${RDEPEND}"
26
	${RDEPEND}"
63
27
64
SRC_URI="mirror://sourceforge/lirc/${P}.tar.bz2"
28
#SRC_URI="mirror://sourceforge/lirc/${P/_pre/pre}.tar.bz2"
29
SRC_URI="http://lirc.sourceforge.net/software/snapshots/lirc-0.7.3pre1.tar.bz2"
30
31
S=${WORKDIR}/${P/_pre/pre}
32
33
pkg_setup() {
34
	linux-mod_pkg_setup
35
	
36
	if [ "x${LIRC_OPTS}" = x ] ; then
37
		echo
38
		ewarn "By default this package will not compile a driver for your hardware"
39
		ewarn "unless you specify LIRC_OPTS. The best place to save this is in"
40
		ewarn "/etc/make.conf"
41
		ewarn "For example, PVR-x50 users should add the following to /etc/make.conf"
42
		ewarn "LIRC_OPTS=\"--with-driver=hauppauge\""
43
		echo
44
		ewarn "Possible options are listed below:"
45
		echo
46
		cat <<-EOF
47
# You have to know, which driver you want;
48
# --with-driver=X
49
50
# where X is one of:
51
# none, any, act200l, animax, atilibusb, atiusb, audio, avermedia, avermedia_vdomate,
52
# avermedia98, bestbuy, bestbuy2, breakoutbox, bte, caraca, chronos, comX,
53
# creative_infracd, dsp, cph03x, cph06x, creative, devinput, exaudio, flyvideo,
54
# gvbctv5pci, hauppauge, hauppauge_dvb, hercules_smarttv_stereo, igorplugusb, irdeo,
55
# irdeo_remote, irman, irreal, it87, knc_one, kworld, leadtek_0007, leadtek_0010,
56
# livedrive_midi, livedrive_seq, logitech, lptX, mceusb, mediafocusI, mp3anywhere,
57
# packard_bell, parallel, pcmak, pcmak_usb, pctv, pixelview_bt878, pixelview_pak,
58
# pixelview_pro, provideo, realmagic, remotemaster, sa1100, sasem, serial,
59
# silitek, sir, slinke, tekram, tekram_bt829, tira, tvbox, udp, uirt2, uirt2_raw
60
# winfast_tv2000 is now leadtek_0010, streamzap
61
62
# This could be useful too
63
64
# --with-port=port      # port number for the lirc device.
65
# --with-irq=irq        # irq line for the lirc device.
66
# --with-timer=value    # timer value for the parallel driver
67
# --with-tty=file       # tty to use (Irman, RemoteMaster, etc.)
68
# --without-soft-carrier        # if your serial hw generates carrier
69
70
# --with-port=port      # port number for the lirc device.
71
# --with-irq=irq        # irq line for the lirc device.
72
# --with-timer=value    # timer value for the parallel driver
73
# --with-tty=file       # tty to use (Irman, RemoteMaster, etc.)
74
# --without-soft-carrier        # if your serial hw generates carrier
75
# --with-transmitter    # if you use a transmitter diode
76
		EOF
77
		sleep 5
78
	fi
79
}
65
80
66
src_unpack() {
81
src_unpack() {
67
	unpack ${A}
82
	unpack ${A}
Lines 69-114 Link Here
69
	#epatch ${FILESDIR}/lirc-0.7.0-xbox.patch.bz2
84
	#epatch ${FILESDIR}/lirc-0.7.0-xbox.patch.bz2
70
85
71
	filter-flags -Wl,-O1
86
	filter-flags -Wl,-O1
72
	sed	-i -e "s:-O2 -g:${CFLAGS}:" configure configure.in
87
	sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.in
73
88
74
	# fix bz878 compilation, bug #87505
89
	# fix bz878 compilation, bug #87505
75
	sed -i -e "s:lircd.conf.pixelview_bt878:lircd.conf.playtv_bt878:" configure configure.in
90
#	sed -i -e "s:lircd.conf.pixelview_bt878:lircd.conf.playtv_bt878:" configure configure.in
91
92
        # Patch bad configure for /usr/src/linux
93
	sed -si "s|/usr/src/kernel\-source\-\`uname \-r\` /usr/src/linux\-\`uname \-r\` ||" \
94
		acinclude.m4 || die "/usr/src/linux sed failed"
95
96
	eautoreconf || "autoreconf failed"
76
}
97
}
77
98
99
78
src_compile() {
100
src_compile() {
101
	get_version
102
79
	# set default configure options
103
	# set default configure options
80
	[ "x${LIRC_OPTS}" = x ] && [ "${PROFILE_ARCH}" == "xbox" ] && \
104
	[ "x${LIRC_OPTS}" = x ] && [ "${PROFILE_ARCH}" == "xbox" ] && \
81
		LIRC_OPTS="--with-driver=xboxusb"
105
		LIRC_OPTS="--with-driver=xboxusb"
82
	[ "x${LIRC_OPTS}" = x ] && LIRC_OPTS="--with-driver=serial \
106
	[ "x${LIRC_OPTS}" = x ] && LIRC_OPTS="--with-driver=none"
83
		--with-port=0x3f8 --with-irq=4"
84
107
85
	# remove parallel driver on SMP systems
108
	# remove parallel driver on SMP systems
86
	if linux_chkconfig_present SMP ; then
109
	if linux_chkconfig_present SMP ; then
87
		sed -i -e "s:lirc_parallel::" drivers/Makefile
110
		sed -i -e "s:lirc_parallel::" drivers/Makefile.in
88
	fi
111
	fi
89
112
90
	# Patch bad configure for /usr/src/linux
91
	libtoolize --copy --force || die "libtoolize failed"
92
	sed -si "s|/usr/src/kernel\-source\-\`uname \-r\` /usr/src/linux\-\`uname \-r\` ||" \
93
		acinclude.m4 aclocal.m4 configure || die "/usr/src/linux sed failed"
94
95
	get_version
96
	sed -si "s|\`uname \-r\`|${KV_FULL}|" configure configure.in setup.sh || \
97
		die "/lib/modules sed failed"
98
99
	unset ARCH
113
	unset ARCH
100
	export WANT_AUTOCONF=2.5
114
	export WANT_AUTOCONF=2.5
101
115
102
	econf \
116
	econf \
103
		--disable-manage-devices \
104
		--localstatedir=/var \
117
		--localstatedir=/var \
105
		--with-syslog=LOG_DAEMON \
118
		--with-syslog=LOG_DAEMON \
106
		--enable-sandboxed \
119
		--enable-sandboxed \
120
		--with-moduledir=${ROOT}/lib/modules/${KV_FULL}/misc \
107
		`use_enable debug` \
121
		`use_enable debug` \
108
		`use_with X` \
122
		`use_with X` \
109
		${LIRC_OPTS} || die "./configure failed"
123
		${LIRC_OPTS} || die "./configure failed"
110
124
111
	convert_to_m ${S}/Makefile
125
#	convert_to_m ${S}/Makefile
112
	emake || die
126
	emake || die
113
127
114
}
128
}
Lines 139-153 Link Here
139
}
153
}
140
154
141
pkg_postinst() {
155
pkg_postinst() {
156
	linux-mod_pkg_postinst
142
	einfo
157
	einfo
143
	einfo "The lirc Linux Infrared Remote Control Package has been"
158
	einfo "The lirc Linux Infrared Remote Control Package has been"
144
	einfo "merged, please read the documentation, and if necessary"
159
	einfo "merged, please read the documentation, and if necessary"
145
	einfo "add what is needed to /etc/modules.autoload or"
160
	einfo "add what is needed to /etc/modules.autoload.d/kernel-2.x or"
146
	einfo "/etc/modules.d.  If you need special compile options"
161
	einfo "/etc/modules.d.  If you need special compile options"
147
	einfo "then read the comments at the begin of this"
162
	einfo "then read the comments at the begin of this"
148
	einfo "ebuild (source) and set the LIRC_OPTS environment"
163
	einfo "ebuild (source) and set the LIRC_OPTS environment"
149
	einfo "variable to your needs."
164
	einfo "variable to your needs."
150
	einfo
165
	einfo
151
152
	update_depmod
153
}
166
}

Return to bug 111820