diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
| commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
| tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/sdl.bbclass | |
| download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz | |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/sdl.bbclass')
| -rw-r--r-- | openembedded/classes/sdl.bbclass | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/openembedded/classes/sdl.bbclass b/openembedded/classes/sdl.bbclass new file mode 100644 index 0000000000..541812ed93 --- /dev/null +++ b/openembedded/classes/sdl.bbclass | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | FILES_${PN} += '${libdir}/perl5' | ||
| 2 | |||
| 3 | sdl_do_configure () { | ||
| 4 | if [ -x ${S}/configure ] ; then | ||
| 5 | cfgcmd="${S}/configure \ | ||
| 6 | -GL -GLU" | ||
| 7 | oenote "Running $cfgcmd..." | ||
| 8 | $cfgcmd || oefatal "oe_runconf failed" | ||
| 9 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then | ||
| 10 | . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh | ||
| 11 | 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 | ||
| 12 | mv Makefile.new Makefile | ||
| 13 | fi | ||
| 14 | else | ||
| 15 | oefatal "no configure script found" | ||
| 16 | fi | ||
| 17 | } | ||
| 18 | |||
| 19 | sdl_do_compile () { | ||
| 20 | oe_runmake PASTHRU_INC="${CFLAGS}" | ||
| 21 | } | ||
| 22 | |||
| 23 | sdl_do_install () { | ||
| 24 | oe_runmake install_vendor | ||
| 25 | } | ||
| 26 | |||
| 27 | EXPORT_FUNCTIONS do_configure do_compile do_install | ||
