summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-07-26 16:44:00 +0000
committerKoen Kooi <koen@openembedded.org>2006-07-26 16:44:00 +0000
commit2163f23de82d09e0ef7517bf2cb76e6568c28691 (patch)
treec185fe869a79dd6ebabce6a08c1e6fc737f8232f
parentd2c14ee76188c01f3a9edeff41c2ef109dd92e11 (diff)
drm: inherit autotools and use autotools methods for install and staging
closes #1201
-rw-r--r--packages/dri/drm_cvs.bb20
1 files changed, 3 insertions, 17 deletions
diff --git a/packages/dri/drm_cvs.bb b/packages/dri/drm_cvs.bb
index 2b105eb1fe..55cd5aa631 100644
--- a/packages/dri/drm_cvs.bb
+++ b/packages/dri/drm_cvs.bb
@@ -7,28 +7,14 @@ PR = "r2"
S = "${WORKDIR}/drm"
+inherit autotools
+
do_compile() {
oe_runmake -C libdrm
}
do_stage() {
- oe_libinstall -so -C libdrm libdrm ${STAGING_LIBDIR}
- ln -sf libdrm.so ${STAGING_LIBDIR}/libdrm.so.1
- for i in xf86drmCompat.h xf86drm.h; do
- install -m 0644 libdrm/$i ${STAGING_INCDIR}
- done
- for i in drm.h; do
- install -m 0644 shared-core/$i ${STAGING_INCDIR}
- done
+ autotools_stage_all
}
-do_install() {
- install -d ${D}${includedir}
- install -d ${D}/lib
- oe_runmake -C libdrm DESTDIR="${D}" install
- install -d ${D}${libdir}
- mv ${D}/lib/libdrm.so ${D}${libdir}/libdrm.so.1
- ln -sf libdrm.so.1 ${D}${libdir}/libdrm.so
- rmdir ${D}/lib
-}