classes/autotools_stage.bbclass: Add autotools_stage class to further recipes to simplify recipes using standard autotools

This commit is contained in:
Richard Purdie 2008-12-27 01:13:47 +00:00
parent e380b48602
commit fcb1791f55
43 changed files with 46 additions and 213 deletions

View File

@ -4,7 +4,7 @@ SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "gtk+ gtk-doc-native"
inherit autotools pkgconfig gnome
inherit autotools_stage pkgconfig gnome
SRC_URI += "file://glade-cruft.patch;patch=1 file://no-xml2.patch;patch=1"
@ -17,7 +17,3 @@ FILES_${PN} = "${libdir}/lib*.so.*"
FILES_${PN}-data = "${datadir}/xml/libglade/glade-2.0.dtd"
FILES_${PN}-dev += "${bindir}/libglade-convert"
#RDEPENDS_${PN} = "${PN}-data"
do_stage () {
autotools_stage_all
}

View File

@ -11,14 +11,10 @@ PACKAGES =+ "${PN}-gnome ${PN}-gnome-dev "
FILES_${PN}-gnome = "${libdir}/libgsf-gnome-1.so.*"
FILES_${PN}-gnome-dev = "${libdir}/libgsf-gnome-1.* ${includedir}/libgsf-1/gsf-gnome"
inherit autotools pkgconfig gnome gconf
inherit autotools_stage pkgconfig gnome gconf
EXTRA_OECONF = "\
--without-python \
--without-gnome \
--disable-gtk-doc \
--with-bz2"
do_stage() {
autotools_stage_all
}

View File

@ -8,11 +8,7 @@ SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libIDL/0.8/libIDL-${PV}.tar.bz
S = "${WORKDIR}/libIDL-${PV}"
BINCONFIG_GLOB = "*-config-2"
inherit autotools pkgconfig binconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig binconfig
FILES_${PN} = "${libdir}/*.so.*"
FILES_${PN}-dev += " ${bindir}"

View File

@ -4,7 +4,7 @@ SECTION = "libs"
PRIORITY = "optional"
PR = "r0"
inherit pkgconfig autotools
inherit pkgconfig autotools_stage
SRC_URI = "http://josefsson.org/libidn/releases/${P}.tar.gz"
@ -13,7 +13,3 @@ EXTRA_OECONF = " --disable-tld"
do_configure_prepend () {
autoreconf -f -i -s
}
do_stage () {
autotools_stage_all
}

View File

@ -5,14 +5,9 @@ HOMEPAGE = "http://people.suug.ch/~tgr/libnl/"
PRIORITY = "optional"
PV = "0.99+1.0-pre6"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
SRC_URI= "http://people.suug.ch/~tgr/libnl/files/${PN}-1.0-pre6.tar.gz \
file://local-includes.patch;patch=1"
S = "${WORKDIR}/${PN}-1.0-pre6"
do_stage () {
autotools_stage_all prefix=${prefix}
}

View File

@ -8,8 +8,4 @@ PR = "r4"
SRC_URI = "http://www.vorbis.com/files/1.0.1/unix/libogg-${PV}.tar.gz \
file://m4.patch;patch=1"
inherit autotools pkgconfig
do_stage () {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -7,10 +7,6 @@ PR = "r1"
SRC_URI = "http://liboil.freedesktop.org/download/${P}.tar.gz \
file://no-tests.patch;patch=1"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig
ARM_INSTRUCTION_SET = "arm"

View File

@ -8,8 +8,4 @@ PR = "r1"
SRC_URI = "http://download.berlios.de/rdsd/librds-${PV}.tar.gz"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -6,7 +6,7 @@ PR = "r3"
EXTRA_OECONF = "--disable-mozilla-plugin --without-svgz --without-croco --disable-gnome-vfs"
inherit autotools pkgconfig gnome
inherit autotools_stage pkgconfig gnome
PACKAGES =+ "librsvg-gtk librsvg-gtk-dbg librsvg-gtk-dev rsvg"
FILES_${PN} = "${libdir}/*.so.*"
@ -21,10 +21,6 @@ FILES_librsvg-gtk-dev += "${libdir}/gtk-2.0/*.*a \
FILES_librsvg-gtk-dbg += "${libdir}/gtk-2.0/.debug \
${libdir}/gtk-2.0/*/*/.debug"
do_stage() {
autotools_stage_all
}
pkg_postinst_librsvg-gtk() {
if [ "x$D" != "x" ]; then
exit 1

View File

@ -6,7 +6,7 @@ PR = "r3"
EXTRA_OECONF = "--disable-mozilla-plugin --without-svgz --without-croco --disable-gnome-vfs"
inherit autotools pkgconfig gnome
inherit autotools_stage pkgconfig gnome
PACKAGES =+ "librsvg-gtk librsvg-gtk-dbg librsvg-gtk-dev rsvg"
FILES_${PN} = "${libdir}/*.so.*"
@ -21,10 +21,6 @@ FILES_librsvg-gtk-dev += "${libdir}/gtk-2.0/*.*a \
FILES_librsvg-gtk-dbg += "${libdir}/gtk-2.0/.debug \
${libdir}/gtk-2.0/*/*/.debug"
do_stage() {
autotools_stage_all
}
pkg_postinst_librsvg-gtk() {
if [ "x$D" != "x" ]; then
exit 1

View File

@ -6,7 +6,7 @@ PR = "r3"
EXTRA_OECONF = "--disable-mozilla-plugin --without-svgz --without-croco --disable-gnome-vfs"
inherit autotools pkgconfig gnome
inherit autotools_stage pkgconfig gnome
SRC_URI = "svn://svn.gnome.org/svn/${PN};module=trunk"
PV = "2.22.3+svnr${SRCREV}"
@ -30,10 +30,6 @@ FILES_librsvg-gtk-dev += "${libdir}/gtk-2.0/*.*a \
FILES_librsvg-gtk-dbg += "${libdir}/gtk-2.0/.debug \
${libdir}/gtk-2.0/*/*/.debug"
do_stage() {
autotools_stage_all
}
pkg_postinst_librsvg-gtk() {
if [ "x$D" != "x" ]; then
exit 1

View File

@ -12,7 +12,7 @@ SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
file://kernel-asm-page.patch;patch=1 "
S = "${WORKDIR}/SDL-${PV}"
inherit autotools binconfig pkgconfig sdk
inherit autotools_stage binconfig pkgconfig sdk
EXTRA_OECONF = "--disable-static --disable-debug --disable-cdrom --enable-threads --enable-timers --enable-endian \
--enable-file --disable-oss --disable-alsa --disable-esd --disable-arts \
@ -30,7 +30,6 @@ do_configure_prepend() {
cp ${WORKDIR}/acinclude.m4 ${S}/acinclude.m4
}
do_stage() {
autotools_stage_all
do_stage_append() {
install -m 0644 ${S}/build/libSDLmain.a ${STAGING_LIBDIR}
}

View File

@ -7,7 +7,7 @@ DEPENDS = "glib-2.0 gnutls libxml2"
SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.4/libsoup-${PV}.tar.bz2"
S = "${WORKDIR}/libsoup-${PV}"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
do_stage() {
autotools_stage_all

View File

@ -7,12 +7,8 @@ DEPENDS = "glib-2.0 gnutls libxml2"
SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/${PN}/2.2/${PN}-${PV}.tar.bz2"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
FILES_${PN} = "${libdir}/lib*.so.*"
FILES_${PN}-dev = "${includedir}/ ${libdir}/"
FILES_${PN}-doc = "${datadir}/"
do_stage() {
autotools_stage_all
}

View File

@ -12,7 +12,7 @@ SRC_URI = "\
"
S = "${WORKDIR}/libusb-${PV}"
inherit autotools pkgconfig binconfig lib_package
inherit autotools_stage pkgconfig binconfig lib_package
PARALLEL_MAKE = ""
EXTRA_OECONF = "--disable-build-docs"
@ -22,9 +22,5 @@ export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}"
LIBTOOL = "${HOST_SYS}-libtool"
EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
do_stage() {
autotools_stage_all
}
PACKAGES =+ "libusbpp"
FILES_libusbpp = "${libdir}/libusbpp*.so.*"

View File

@ -9,7 +9,7 @@ PR = "r5"
SRC_URI = "http://www.vorbis.com/files/${PV}/unix/libvorbis-${PV}.tar.gz \
file://m4.patch;patch=1"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
# vorbisfile.c reveals a problem in the gcc register spilling for the
# thumb instruction set...
@ -17,7 +17,3 @@ FULL_OPTIMIZATION_thumb = "-O0"
EXTRA_OECONF = "--with-ogg-libraries=${STAGING_LIBDIR} \
--with-ogg-includes=${STAGING_INCDIR}"
do_stage () {
autotools_stage_all
}

View File

@ -9,14 +9,10 @@ SRC_URI = "ftp://xmlsoft.org/libxml2/libxslt-${PV}.tar.gz \
file://pkgconfig_fix.patch;patch=1"
S = "${WORKDIR}/libxslt-${PV}"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
do_stage () {
autotools_stage_all
}
PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"
FILES_${PN}-dev += "${bindir}/xslt-config"

View File

@ -5,8 +5,4 @@ DEPENDS = "glib-2.0 gnutls check"
SRC_URI = "http://ftp.imendio.com/pub/imendio/${PN}/src/${PN}-${PV}.tar.bz2"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -9,14 +9,10 @@ SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
file://acinclude.m4"
inherit autotools
inherit autotools_stage
EXTRA_OECONF = "--enable-shared"
do_configure_prepend () {
cp ${WORKDIR}/acinclude.m4 ${S}/
}
do_stage() {
autotools_stage_all
}

View File

@ -13,14 +13,10 @@ S = "${WORKDIR}/xpext-1.0"
RDEPENDS_${PN}-dev = ""
RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${DEBPV})"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
do_configure_prepend () {
cd ${S}
chmod +x ./autogen.sh
./autogen.sh
}
do_stage() {
autotools_stage_all
}

View File

@ -1,15 +1,12 @@
PR = "r1"
LICENSE= "MIT"
DESCRIPTION = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
PRIORITY = "optional"
LICENSE= "MIT"
DEPENDS = "virtual/libx11 libxext xpext"
PR = "r1"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/xsp/${PN}_${PV}.tar.gz"
S = "${WORKDIR}/Xsp"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -11,7 +11,7 @@ SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-window-mana
S = "${WORKDIR}/matchbox-window-manager-2"
inherit autotools pkgconfig update-alternatives
inherit autotools_stage pkgconfig update-alternatives
# Change this to x-session-manager->matchbox-session and put in
# matchbox-session, then change this to x-window-manager to
@ -40,7 +40,3 @@ do_install_append () {
cd ${D}${bindir}
ln -s matchbox-window-manager-2-simple matchbox-window-manager
}
do_stage() {
autotools_stage_all
}

View File

@ -10,15 +10,11 @@ S = "${WORKDIR}/Mesa-${PV}"
PROVIDES = "virtual/libgl"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
EXTRA_OECONF = "--disable-glu \
--disable-glw \
--disable-glut \
--enable-glx-tls"
do_stage() {
autotools_stage_all
}

View File

@ -3,4 +3,4 @@ HOMEPAGE = "http://www.mpfr.org/"
LICENSE = "LGPL"
SECTION = "libs"
inherit autotools
inherit autotools_stage

View File

@ -5,7 +5,3 @@ PR = "r1"
SRC_URI = "http://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.bz2"
S = "${WORKDIR}/mpfr-${PV}"
do_stage() {
autotools_stage_all
}

View File

@ -8,11 +8,7 @@ SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-2.1.3.tar.g
file://gcc43_fix.patch;patch=1 \
file://autofoo.patch;patch=1"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -6,10 +6,6 @@ DEPENDS = "zlib libxml2 expat time gnutls"
SRC_URI = "http://www.webdav.org/${PN}/${P}.tar.gz \
file://pkgconfig.patch;patch=1"
inherit autotools binconfig lib_package pkgconfig
inherit autotools_stage binconfig lib_package pkgconfig
EXTRA_OECONF = "--with-ssl=gnutls --with-libxml2 --with-expat --enable-shared"
do_stage () {
autotools_stage_all
}

View File

@ -23,7 +23,7 @@ EXTRA_OECONF = " \
S = "${WORKDIR}/trunk"
inherit autotools pkgconfig update-rc.d
inherit autotools_stage pkgconfig update-rc.d
INITSCRIPT_NAME = "NetworkManager"
INITSCRIPT_PARAMS = "defaults 22"
@ -37,10 +37,6 @@ do_install_append () {
rmdir ${D}/var/run
}
do_stage () {
autotools_stage_all
}
pkg_postinst_${PN} () {
if [ "x$D" != "x" ]; then
exit 1

View File

@ -5,15 +5,10 @@ DEPENDS = "sqlite3 libxml2 zlib glib-2.0"
SRC_URI = "http://www.opensync.org/download/releases/0.22/libopensync-0.22.tar.bz2"
inherit autotools pkgconfig lib_package
inherit autotools_stage pkgconfig lib_package
EXTRA_OECONF = "--disable-python"
LEAD_SONAME = "libopensync.so"
FILES_${PN} += " ${libdir}/opensync/formats/*.so"
FILES_${PN}-dbg += " ${libdir}/opensync/formats/.debug/*.so"
do_stage() {
autotools_stage_all
}

View File

@ -9,10 +9,6 @@ SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http"
S = "${WORKDIR}/opkg-utils"
inherit autotools
inherit autotools_stage
S = "${WORKDIR}/opkg-utils"
do_stage () {
autotools_stage_all
}

View File

@ -11,8 +11,4 @@ SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http \
S = "${WORKDIR}/opkg"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -12,8 +12,4 @@ S = "${WORKDIR}/${PN}"
SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=${PN};proto=http"
inherit autotools pkgconfig
do_stage () {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -11,8 +11,4 @@ SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \
EXTRA_OECONF = "--disable-Werror"
inherit autotools pkgconfig
do_stage() {
autotools_stage_all
}
inherit autotools_stage pkgconfig

View File

@ -5,7 +5,7 @@ PR = "r1"
SRC_URI = "http://poppler.freedesktop.org/${PN}-${PV}.tar.gz"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
EXTRA_OECONF = " --enable-xpdf-headers \
--disable-gtk-test \
@ -16,8 +16,3 @@ EXTRA_OECONF = " --enable-xpdf-headers \
#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
require poppler-fpu.inc
EXTRA_OECONF += "${@get_poppler_fpu_setting(bb, d)}"
do_stage() {
autotools_stage_all
}

View File

@ -5,8 +5,4 @@ DEPENDS = "gettext-native"
SRC_URI = "http://rpm5.org/files/popt/popt-${PV}.tar.gz"
inherit autotools
do_stage () {
autotools_stage_all
}
inherit autotools_stage

View File

@ -8,7 +8,7 @@ SRC_URI = "http://gstreamer.freedesktop.org/src/gst-python/gst-python-${PV}.tar.
file://python-path.patch;patch=1"
S = "${WORKDIR}/gst-python-${PV}"
inherit autotools distutils-base pkgconfig
inherit autotools_stage distutils-base pkgconfig
EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
@ -17,10 +17,6 @@ do_configure_prepend() {
install -m 0644 ${S}/common/m4/*.m4 ${S}/m4/
}
do_stage() {
autotools_stage_all
}
FILES_${PN} += "${datadir}/gst-python"
FILES_${PN}-dev += "${datadir}/gst-python/0.10/defs"
FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/gst-0.10/gst/.debug/"

View File

@ -16,17 +16,13 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/readline/readline-${PV}.tar.gz \
S = "${WORKDIR}/readline-${PV}"
inherit autotools
inherit autotools_stage
do_configure () {
install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
autotools_do_configure
}
do_stage() {
autotools_stage_all
}
do_install () {
autotools_do_install
# Make install doesn't properly install these

View File

@ -9,16 +9,12 @@ S = "${WORKDIR}/${PN}-1.2beta3"
PARALLEL_MAKE = ""
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
EXTRA_OECONF = " --enable-fixed-point --with-ogg-libraries=${STAGING_LIBDIR} \
--disable-float-api --disable-vbr \
--with-ogg-includes=${STAGING_INCDIR} --disable-oggtest"
do_stage() {
autotools_stage_all
}
PACKAGES += "${PN}-bin"
FILES_${PN} = "${libdir}/libspeex.so.*"
FILES_${PN}-dev += "${libdir}/libspeex.so.*"

View File

@ -4,14 +4,10 @@ SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "virtual/libx11 libsm"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
SRC_URI = "http://www.freedesktop.org/software/startup-notification/releases/${PN}-${PV}.tar.gz"
do_configure_prepend () {
export X_LIBS=" -L${STAGING_LIBDIR}"
}
do_stage () {
autotools_stage_all
}

View File

@ -7,11 +7,7 @@ PR = "r2"
SRC_URI = "http://telepathy.freedesktop.org/releases/libtelepathy/libtelepathy-${PV}.tar.gz \
file://prefer_python_2.5.patch;patch=1 "
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
FILES_${PN} += "${datadir}/telepathy \
${datadir}/dbus-1"
do_stage() {
autotools_stage_all
}

View File

@ -7,7 +7,7 @@ DEPENDS = "libtelepathy dbus-glib gconf"
SRC_URI = "${SOURCEFORGE_MIRROR}/mission-control/telepathy-mission-control-${PV}.tar.gz \
file://pkgconfig.patch;patch=1"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
PACKAGES =+ " \
libmissioncontrol \
@ -36,7 +36,3 @@ FILES_libmissioncontrol-server-dev = "${libdir}/libmissioncontrol-server.*"
FILES_libmissioncontrol-dbg = "${libdir}/.debug/libmissioncontrol.so.*"
FILES_libmissioncontrol-config-dbg = "${libdir}/.debug/libmissioncontrol-config.so.*"
FILES_libmissioncontrol-server-dbg = "${libdir}/.debug/libmissioncontrol-server.so.*"
do_stage() {
autotools_stage_all
}

View File

@ -10,16 +10,8 @@ SRC_URI = "svn://svn.xiph.org/trunk;module=Tremor;rev=4573;proto=http"
S = "${WORKDIR}/Tremor"
inherit autotools
inherit autotools_stage
EXTRA_OECONF=" --enable-shared --disable-rpath "
#do_configure_prepend() {
# ./autogen.sh
#}
do_stage() {
autotools_stage_all
}
ARM_INSTRUCTION_SET = "arm"

View File

@ -15,14 +15,10 @@ SRC_URI = "http://download.berlios.de/tslib/tslib-1.0.tar.bz2 \
SRC_URI_append_mnci += " file://devfs.patch;patch=1"
SRC_URI_append_mnci += " file://event1.patch;patch=1"
inherit autotools pkgconfig
inherit autotools_stage pkgconfig
EXTRA_OECONF = "--enable-shared --disable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00"
do_stage() {
autotools_stage_all
}
do_install_prepend() {
install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf
}