alsa-utils_1.0.20.bb: Use --with-alsa-prefix and --with-alsa-inc-prefix
authorKhem Raj <raj.khem@gmail.com>
Thu, 7 Oct 2010 21:59:25 +0000 (14:59 -0700)
committerKhem Raj <raj.khem@gmail.com>
Thu, 7 Oct 2010 22:00:50 +0000 (15:00 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/alsa/alsa-utils_1.0.20.bb

index cca2980..ee0467e 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.alsa-project.org"
 SECTION = "console/utils"
 LICENSE = "GPLv2"
 DEPENDS = "alsa-lib ncurses"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
           file://alsa-utils-remove-xmlto-1.0.19plus.patch \
@@ -11,17 +11,11 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
 
 inherit gettext autotools
 
+EXTRA_OECONF += " --with-alsa-prefix=${STAGING_LIBDIR} --with-alsa-inc-prefix=${STAGING_INCDIR}"
+
 # This are all packages that we need to make. Also, the now empty alsa-utils
 # ipk depend on them.
 
-
-do_configure_append() {
-       for i in $(find ${S} -name Makefile) ; do
-               sed -i -e s:/usr/include/ncurses:${STAGING_INCDIR}/ncurses:g $i
-               sed -i -e 's:-L/usr/lib -lncurses:-L${STAGING_LIBDIR} -lncurses:g' $i
-       done
-}
-
 PACKAGES += "\
              alsa-utils-alsamixer \
              alsa-utils-midi \