Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 160134
Collapse All | Expand All

(-)/usr/portage/app-misc/lirc/lirc-0.9.0.ebuild (-5 / +34 lines)
Lines 225-235 Link Here
225
		fi
225
		fi
226
	fi
226
	fi
227
227
228
	# Setup parameter for linux-mod.eclass
228
	EXTRA_ECONF="	--localstatedir=/var
229
	MODULE_NAMES="lirc(misc:${S})"
230
	BUILD_TARGETS="all"
231
232
	ECONF_PARAMS="	--localstatedir=/var
233
					--with-syslog=LOG_DAEMON
229
					--with-syslog=LOG_DAEMON
234
					--enable-sandboxed
230
					--enable-sandboxed
235
					--with-kerneldir=${KV_DIR}
231
					--with-kerneldir=${KV_DIR}
Lines 273-278 Link Here
273
	# respect CFLAGS
269
	# respect CFLAGS
274
	sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
270
	sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
275
271
272
	# Do not build drivers from the top-level Makefile
273
	sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
274
276
	# setting default device-node
275
	# setting default device-node
277
	local f
276
	local f
278
	for f in configure.ac acconfig.h; do
277
	for f in configure.ac acconfig.h; do
Lines 283-291 Link Here
283
	eautoreconf
282
	eautoreconf
284
}
283
}
285
284
285
src_compile() {
286
	# configure needs to be run with "kernel style" ABI to configure 
287
	# the drivers, but the lirc tree uses autoconf/libtool which has
288
	# a different interpretation to the kernel tree of some things.  In
289
	# particular LDFLAGS.
290
        local myABI="${ABI}"
291
        set_arch_to_kernel 
292
        ABI="${KERNEL_ABI}"
293
294
	econf || die
295
296
	set_arch_to_portage
297
	ABI="${myABI}"
298
299
	# The drivers subdir has been disabled from the top-level Makefile
300
	# above to separate the libtool based stage from the kernel modules.
301
	# Build everything but drivers
302
	emake || die
303
304
	# Now build the drivers using linux-mod.eclass
305
	# Setup parameter for linux-mod.eclass
306
	MODULE_NAMES="lirc(misc:${S}/drivers)"
307
	BUILD_TARGETS="all"
308
309
	linux-mod_src_compile || die
310
}
311
286
src_install() {
312
src_install() {
287
	emake DESTDIR="${D}" install || die "emake install failed"
313
	emake DESTDIR="${D}" install || die "emake install failed"
288
314
315
	# Install drivers
316
	emake -C drivers DESTDIR="${D}" install || die "emake install drivers failed"
317
289
	newinitd "${FILESDIR}"/lircd-0.8.6 lircd
318
	newinitd "${FILESDIR}"/lircd-0.8.6 lircd
290
	newinitd "${FILESDIR}"/lircmd lircmd
319
	newinitd "${FILESDIR}"/lircmd lircmd
291
	newconfd "${FILESDIR}"/lircd.conf.2 lircd
320
	newconfd "${FILESDIR}"/lircd.conf.2 lircd

Return to bug 160134