packages: Remove various hardcoded staging layout assumptions
authorRichard Purdie <rpurdie@rpsys.net>
Sun, 18 Nov 2007 00:45:00 +0000 (00:45 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sun, 18 Nov 2007 00:45:00 +0000 (00:45 +0000)
19 files changed:
packages/apr/apr-util_0.9.12.bb
packages/apr/apr-util_1.2.7.bb
packages/asterisk/asterisk_1.2.24.bb
packages/boost/boost_1.33.0.bb
packages/boost/boost_1.33.1.bb
packages/clamav/clamav.inc
packages/duma/duma_2.5.7.bb
packages/enchant/enchant_1.1.3.bb
packages/enchant/enchant_1.2.5.bb
packages/enchant/enchant_1.3.0.bb
packages/file-roller/file-roller_2.6.1.bb
packages/gcalctool/gcalctool_5.5.21.bb
packages/gnome/gnome-desktop_2.10.2.bb
packages/gnome/gnome-desktop_2.16.1.bb
packages/gnome/gnome-desktop_2.18.3.bb
packages/gnome/gnome-desktop_2.7.90.bb
packages/gpdf/gpdf_2.10.0.bb
packages/gpdf/gpdf_2.8.0.bb
packages/gpdf/gpdf_2.8.2.bb

index b726f2a..d5964ad 100644 (file)
@@ -9,7 +9,7 @@ SRC_URI = "${APACHE_MIRROR}/apr/${P}.tar.gz \
            file://gen_uri_delims.patch;patch=1 \
            file://uri_delims.h"
 
-EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS} --with-dbm=gdbm --with-gdbm=${STAGING_DIR}/${HOST_SYS} --with-expat=${STAGING_DIR}/${HOST_SYS}"
+EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS} --with-dbm=gdbm --with-gdbm=${STAGING_DIR_HOST}${layout_prefix} --with-expat=${STAGING_DIR_HOST}${layout_prefix}"
 
 inherit autotools lib_package binconfig
 
index c73eb80..ea81607 100644 (file)
@@ -9,10 +9,10 @@ PR = "r2"
 SRC_URI = "${APACHE_MIRROR}/apr/${P}.tar.gz"
 
 EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS} --with-dbm=gdbm \
-               --with-gdbm=${STAGING_DIR}/${HOST_SYS} \
+               --with-gdbm=${STAGING_DIR_HOST}${layout_prefix} \
                --without-sqlite2 \
                --without-sqlite3 \
-               --with-expat=${STAGING_DIR}/${HOST_SYS}"
+               --with-expat=${STAGING_DIR_HOST}${layout_prefix}"
 
 inherit autotools lib_package binconfig
 
index 01b825d..1673276 100644 (file)
@@ -18,7 +18,7 @@ S = "${WORKDIR}/asterisk-${PV}"
 
 export CROSS_COMPILE="${CCACHE}${HOST_PREFIX}"
 export CROSS_COMPILE_BIN="${STAGING_BINDIR_CROSS}"
-export CROSS_COMPILE_TARGET="${STAGING_DIR}/${HOST_SYS}"
+export CROSS_COMPILE_TARGET="${STAGING_DIR_HOST}"
 
 export CROSS_ARCH="Linux"
 export CROSS_PROC="${TARGET_ARCH}"
index 0a72d36..6d4a2b8 100644 (file)
@@ -63,7 +63,7 @@ FILES_boost-wserialization = "${libdir}/libboost_wserialization.so.${PV}"
 #PYTHON_ROOT = "/dev/null"
 # to remove the python build
 DEPENDS += "python"
-PYTHON_ROOT = "${STAGING_DIR}/${HOST_SYS}"
+PYTHON_ROOT = "${STAGING_DIR_HOST}"
 PYTHON_VERSION = "2.4"
 
 PACKAGES += "boost-python"
index 4de9766..f132785 100644 (file)
@@ -63,7 +63,7 @@ FILES_boost-wserialization = "${libdir}/libboost_wserialization.so.${PV}"
 #PYTHON_ROOT = "/dev/null"
 # to remove the python build
 DEPENDS += "python"
-PYTHON_ROOT = "${STAGING_DIR}/${HOST_SYS}"
+PYTHON_ROOT = "${STAGING_DIR_HOST}"
 PYTHON_VERSION = "2.4"
 
 PACKAGES += "boost-python"
index 6bdd36c..49b8023 100644 (file)
@@ -33,7 +33,7 @@ inherit autotools update-rc.d binconfig
 # Don't check for clamav uid/gid - they don't exist on the host
 # Put virus definitions in /var/lib not /usr/lib
 EXTRA_OECONF = "--disable-clamav \
-                --with-zlib=${STAGING_DIR}/${HOST_SYS} \
+                --with-zlib=${STAGING_DIR_HOST}${layout_prefix} \
                 --with-libcurl \
                 --with-dbdir=${localstatedir}/lib/clamav"
 
index d4bc416..9f50c35 100644 (file)
@@ -12,7 +12,7 @@ EXTRA_OECONF = "-e"
 
 do_configure () {
        oe_runmake createconf
-       qemu-${TARGET_ARCH} -L ${STAGING_DIR}/${HOST_SYS} ./createconf
+       qemu-${TARGET_ARCH} -L ${STAGING_DIR_HOST} ./createconf
 }
 
 do_compile () {
index c33a1a3..7618c5d 100644 (file)
@@ -14,10 +14,10 @@ S = "${WORKDIR}/enchant-${PV}"
 SRC_URI = "http://download.sourceforge.net/abiword/enchant-1.1.3.tar.gz"
 
 do_stage() {
-       oe_runmake install prefix=${STAGING_DIR} \
+       oe_runmake install prefix=${STAGING_DIR_HOST}${layout_prefix} \
               bindir=${STAGING_BINDIR} \
               includedir=${STAGING_INCDIR} \
               libdir=${STAGING_LIBDIR} \
               datadir=${STAGING_DATADIR} \
-              mandir=${STAGING_DIR}/share/man
+              mandir=${STAGING_DIR_HOST}${layout_mandir}
 }
index 5896d12..be9082d 100644 (file)
@@ -14,15 +14,15 @@ S = "${WORKDIR}/enchant-${PV}"
 SRC_URI = "http://www.abisource.com/downloads/enchant/${PV}/enchant-${PV}.tar.gz \
            file://configure.patch;patch=1"
 
-EXTRA_OECONF = "--with-aspell-prefix=${STAGING_DIR}/${HOST_SYS} --enable-aspell --disable-binreloc"
+EXTRA_OECONF = "--with-aspell-prefix=${STAGING_DIR_HOST}${layout_prefix} --enable-aspell --disable-binreloc"
 
 FILES_${PN} = "/usr/bin/* /usr/lib/enchant/*.so /usr/share/enchant /usr/lib/libenchant*.so.*"
 
 do_stage() {
-       oe_runmake install prefix=${STAGING_DIR} \
+       oe_runmake install prefix=${STAGING_DIR_HOST}${layout_prefix} \
               bindir=${STAGING_BINDIR} \
               includedir=${STAGING_INCDIR} \
               libdir=${STAGING_LIBDIR} \
               datadir=${STAGING_DATADIR} \
-              mandir=${STAGING_DIR}/share/man
+              mandir=${STAGING_DIR_HOST}${layout_mandir}
 }
index f154433..4e25761 100644 (file)
@@ -13,7 +13,7 @@ S = "${WORKDIR}/enchant-${PV}"
 
 SRC_URI = "http://www.abisource.com/downloads/enchant/${PV}/enchant-${PV}.tar.gz"
 
-EXTRA_OECONF = "--with-aspell-prefix=${STAGING_DIR}/${HOST_SYS} --enable-aspell --disable-binreloc"
+EXTRA_OECONF = "--with-aspell-prefix=${STAGING_DIR_HOST}${layout_prefix} --enable-aspell --disable-binreloc"
 
 FILES_${PN} = "/usr/bin/* /usr/lib/enchant/*.so /usr/share/enchant /usr/lib/libenchant*.so.*"
 
index f449088..43ba49a 100644 (file)
@@ -11,5 +11,5 @@ DEPENDS="gtk+ libgnomeui gnome-common gnome-vfs libglade libbonoboui"
 inherit autotools
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}
 }
index 31f06e9..ef16f09 100644 (file)
@@ -14,5 +14,5 @@ EXTRA_OECONF = "--disable-schemas-install"
 SRC_URI += "file://noscrollkeeper.patch;patch=1"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}
 }
index 9957921..b8e098f 100644 (file)
@@ -6,10 +6,10 @@ inherit gnome pkgconfig
 
 DEPENDS = "gnome-common libgnomeui"
 
-EXTRA_AUTORECONF = "-I ${STAGING_DIR}/${HOST_SYS}/share/aclocal/gnome2-macros"
+EXTRA_AUTORECONF = "-I ${STAGING_DATADIR}/aclocal/gnome2-macros"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}
 }
 
 do_stage () {
index 4d4b80e..69de709 100644 (file)
@@ -11,10 +11,10 @@ SRC_URI += "file://scrollkeeper.patch;patch=1 \
 
 EXTRA_OECONF = "--disable-scrollkeeper"
 
-EXTRA_AUTORECONF = "-I ${STAGING_DIR}/${HOST_SYS}/share/aclocal/gnome2-macros"
+EXTRA_AUTORECONF = "-I ${STAGING_DATADIR}/aclocal/gnome2-macros"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}
 }
 
 FILES_${PN} += "${datadir}/gnome-about"
index e341fd3..c2888bf 100644 (file)
@@ -12,7 +12,7 @@ SRC_URI += "file://scrollkeeper.patch;patch=1 \
 EXTRA_OECONF = "--disable-scrollkeeper"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}
 }
 
 FILES_${PN} += "${datadir}/gnome-about"
index 54a6559..c7fd614 100644 (file)
@@ -6,10 +6,10 @@ inherit gnome
 
 DEPENDS = "gnome-common libgnomeui"
 
-EXTRA_AUTORECONF = "-I ${STAGING_DIR}/${HOST_SYS}/share/aclocal/gnome2-macros"
+EXTRA_AUTORECONF = "-I ${STAGING_DATADIR}/aclocal/gnome2-macros"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}
 }
 
 do_stage () {
index ee7d270..30c42dc 100644 (file)
@@ -12,5 +12,5 @@ DEPENDS = "gtk+ libgnomeui libbonoboui gnome-vfs gconf gettext libglade \
 EXTRA_OECONF = "--disable-schemas-install"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}/help
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}/help
 }
index 60fc1d3..b4afdb0 100644 (file)
@@ -13,5 +13,5 @@ SRC_URI += "file://aclocal-lossage.patch;patch=1 \
        file://desktop.patch;patch=1"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}/help
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}/help
 }
index 23e294b..3943ff9 100644 (file)
@@ -12,5 +12,5 @@ EXTRA_OECONF = "--disable-schemas-install"
 SRC_URI += "file://aclocal-lossage.patch;patch=1"
 
 do_configure_prepend () {
-       cp ${STAGING_DIR}/${HOST_SYS}/share/gnome-common/data/omf.make ${S}/help
+       cp ${STAGING_DATADIR}/gnome-common/data/omf.make ${S}/help
 }