summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorMichael Smith <msmith@cbnco.com>2009-07-13 14:59:40 -0400
committerMichael Smith <msmith@cbnco.com>2009-08-24 12:29:55 -0400
commitdc929c2ebce4bd676cf725f9972de9604ed2db4d (patch)
tree5146bae7be716a50cfce69fe4f8fe814d6b7fbc7 /recipes
parent111ed2d52569e4865a5cd32fcbefce78c46f8565 (diff)
mesa-dri: set PACKAGE_ARCH to ${MACHINE}
${MACHINE_DRI_MODULES} is passed to configure, so the package output depends on MACHINE. As foretold by commit f06119fc :) Also switch to INC_PR and fix built of mesa-xprogs when prefix != /usr. Signed-off-by: Michael Smith <msmith@cbnco.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/mesa/mesa-common.inc10
-rw-r--r--recipes/mesa/mesa-dri_7.2.bb7
-rw-r--r--recipes/mesa/mesa-dri_7.4.bb7
-rw-r--r--recipes/mesa/mesa-dri_git.bb3
4 files changed, 12 insertions, 15 deletions
diff --git a/recipes/mesa/mesa-common.inc b/recipes/mesa/mesa-common.inc
index 9cd10eb3e3..4f18c2f710 100644
--- a/recipes/mesa/mesa-common.inc
+++ b/recipes/mesa/mesa-common.inc
@@ -4,6 +4,8 @@ DESCRIPTION = "An open source implementation of the OpenGL spec"
HOMEPAGE = "http://mesa3d.org"
LICENSE = "MIT"
+INC_PR = "r7"
+
SRC_URI = "${SOURCEFORGE_MIRROR}/mesa3d/MesaLib-${PV}.tar.bz2 \
${SOURCEFORGE_MIRROR}/mesa3d/MesaDemos-${PV}.tar.bz2 "
S = "${WORKDIR}/Mesa-${PV}"
@@ -20,6 +22,9 @@ EXTRA_OECONF = "--enable-glu \
require mesa-tls.inc
EXTRA_OECONF += "${@get_tls_setting(bb, d)} "
+# Package contents vary according to ${MACHINE_DRI_MODULES}.
+PACKAGE_ARCH = "${MACHINE}"
+
PACKAGES =+ "libglu libglu-dev libosmesa libosmesa-dev libgl libgl-dev"
FILES_libgl = "${libdir}/libGL.so.*"
FILES_libglu = "${libdir}/libGLU.so.*"
@@ -36,4 +41,7 @@ do_stage() {
cp -pPr ${S}/include/GL/internal* ${STAGING_INCDIR}/GL/
}
-
+do_install_append () {
+ install -d ${D}/${bindir}
+ install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/${bindir}
+}
diff --git a/recipes/mesa/mesa-dri_7.2.bb b/recipes/mesa/mesa-dri_7.2.bb
index 296a254841..93568432bc 100644
--- a/recipes/mesa/mesa-dri_7.2.bb
+++ b/recipes/mesa/mesa-dri_7.2.bb
@@ -6,7 +6,7 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes"
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
PE = "1"
-PR = "r6"
+PR = "${INC_PR}.0"
# most of our targets do not have DRI so will use mesa-xlib
DEFAULT_PREFERENCE = "-1"
@@ -21,8 +21,3 @@ FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo"
EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
-
-do_install_append () {
- install -d ${D}/usr/bin
- install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/
-}
diff --git a/recipes/mesa/mesa-dri_7.4.bb b/recipes/mesa/mesa-dri_7.4.bb
index 296a254841..93568432bc 100644
--- a/recipes/mesa/mesa-dri_7.4.bb
+++ b/recipes/mesa/mesa-dri_7.4.bb
@@ -6,7 +6,7 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes"
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
PE = "1"
-PR = "r6"
+PR = "${INC_PR}.0"
# most of our targets do not have DRI so will use mesa-xlib
DEFAULT_PREFERENCE = "-1"
@@ -21,8 +21,3 @@ FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo"
EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
-
-do_install_append () {
- install -d ${D}/usr/bin
- install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/
-}
diff --git a/recipes/mesa/mesa-dri_git.bb b/recipes/mesa/mesa-dri_git.bb
index bca681c76d..4ca1b73122 100644
--- a/recipes/mesa/mesa-dri_git.bb
+++ b/recipes/mesa/mesa-dri_git.bb
@@ -6,7 +6,7 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes"
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
PV = "7.2+gitr${SRCREV}"
-PR = "r1"
+PR = "${INC_PR}.0"
PE = "1"
DEFAULT_PREFERENCE = "-1"
@@ -18,4 +18,3 @@ FILES_${PN} += "${libdir}/dri/*.so"
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
-