diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-04-22 13:34:24 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-22 13:34:24 +0000 |
commit | 23f6b4d782ace6c8ebd640da6870d9959d8504c4 (patch) | |
tree | 984ee754726d483d6418e0d9fc761b34717cb110 | |
parent | 28f02967abbf61c832bd5713ee7c055e2c73eb19 (diff) |
sdl-perl: remove bogus usage of a build class
-rw-r--r-- | packages/sdlperl/sdl-perl_1.20.3.bb | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/packages/sdlperl/sdl-perl_1.20.3.bb b/packages/sdlperl/sdl-perl_1.20.3.bb index d115f02ce3..80bd899dfc 100644 --- a/packages/sdlperl/sdl-perl_1.20.3.bb +++ b/packages/sdlperl/sdl-perl_1.20.3.bb @@ -1,14 +1,40 @@ -SECTION = "libs" DESCRIPTION = "Perl bindings for SDL" -SRC_URI = "http://bloodgate.com/perl/sdl/pub/SDL_perl-${PV}.tar.gz \ - file://Makefile.patch;patch=1;pnum=0" -S = "${WORKDIR}/SDL_perl-${PV}" +HOMEPAGE = "http://bloodgate.com/perl" +SECTION = "libs" LICENSE = "GPL" DEPENDS = "perl virtual/libsdl libsdl-image libsdl-gfx libsdl-ttf libsdl-mixer libsdl-net smpeg" -inherit sdl +SRC_URI = "http://bloodgate.com/perl/sdl/pub/SDL_perl-${PV}.tar.gz \ + file://Makefile.patch;patch=1;pnum=0" +S = "${WORKDIR}/SDL_perl-${PV}" + +do_configure () { + if [ -x ${S}/configure ] ; then + cfgcmd="${S}/configure \ + -GL -GLU" + oenote "Running $cfgcmd..." + $cfgcmd || oefatal "oe_runconf failed" + if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then + . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh + sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5:" < Makefile > Makefile.new + mv Makefile.new Makefile + fi + else + oefatal "no configure script found" + fi +} do_stage () { - install -d ${STAGING_LIBDIR}/perl5/vendor_perl - install -m 0644 ${S}/lib/SDL.pm ${STAGING_LIBDIR}/perl5/vendor_perl + install -d ${STAGING_LIBDIR}/perl5/vendor_perl + install -m 0644 ${S}/lib/SDL.pm ${STAGING_LIBDIR}/perl5/vendor_perl +} + +do_compile () { + oe_runmake PASTHRU_INC="${CFLAGS}" } + +do_install () { + oe_runmake install_vendor +} + +FILES_${PN} += '${libdir}/perl5' |