summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/sdl.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
commit4b46c1f6e891b1ddd5968536440b888661fade3e (patch)
treee0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/sdl.bbclass
downloadpoky-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.bbclass27
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 @@
1FILES_${PN} += '${libdir}/perl5'
2
3sdl_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
19sdl_do_compile () {
20 oe_runmake PASTHRU_INC="${CFLAGS}"
21}
22
23sdl_do_install () {
24 oe_runmake install_vendor
25}
26
27EXPORT_FUNCTIONS do_configure do_compile do_install