# Defines the commonly used target directories and provides a convenience # function to install jar files. # Jar location on target datadir_java ?= ${datadir}/java # JNI library location on target libdir_jni ?= ${libdir}/jni STAGING_DATADIR_JAVA ?= ${STAGING_DATADIR}/java STAGING_LIBDIR_JNI ?= ${STAGING_LIBDIR}/jni oe_jarinstall() { # Purpose: Install a jar file and create all the given symlinks to it. # Example: # oe_jarinstall foo-1.3.jar foo.jar # Installs foo-1.3.jar and creates symlink foo.jar. # # oe_jarinstall -s foo-1.3.jar foo.jar # Installs foo-1.3.jar to staging and creates symlink foo.jar. # # oe_jarinstall -r foo-1.3.jar foo_1_3.jar foo.jar # Installs foo_1_3.jar as foo-1.3.jar and creates a symlink to this. # dir=${D}${datadir_java} destname="" while [ "$#" -gt 0 ]; do case "$1" in -s) dir=${STAGING_DATADIR_JAVA} ;; -r) shift destname=$1 ;; -*) oefatal "oe_jarinstall: unknown option: $1" ;; *) break; ;; esac shift done jarname=$1 destname=${destname:-`basename $jarname`} shift install -d $dir install -m 0644 $jarname $dir/$destname # Creates symlinks out of the remaining arguments. while [ "$#" -gt 0 ]; do if [ -e $dir/$1 ]; then oewarn "file was in the way. removing:" $dir/$1 rm $dir/$1 fi ln -s $destname $dir/$1 shift done } # Creates a simple wrapper script for your Java program. # The script is written to ${PN} by default. # # Parameters are as follows: # [options]
[jar files ...] # # Options are # -o where name is the output file name # # It can only take jar files from ${datadir_java}! oe_java_simple_wrapper() { delimiter= mainclass= classpath= output=${PN} while [ "$#" -gt 0 ]; do case "$1" in -o) shift output=$1 ;; -*) oefatal "oe_java_simple_wrapper: unknown option: $1" ;; *) if [ $mainclass ] then classpath=$classpath$delimiter${datadir_java}/$1 delimiter=":" else mainclass=$1 fi ;; esac shift done oenote "Creating simple Java wrapper script" oenote "Output File: $output" oenote "Main Class: $mainclass" oenote "Classpath: $classpath" echo "#!/bin/sh" > $output echo "# This file is autogenerated by the oe_java_simple_wrapper function of OpenEmbedded" >> $output echo >> $output echo "# You can provide additional VM arguments by setting the VMARGS environment variable." >> $output echo "CLASSPATH_ARG=\"-cp $classpath\"" >> $output echo >> $output echo "MAIN_CLASS=$mainclass" >> $output echo >> $output echo "# Allows overriding the VM by setting the JAVA environment variable." >> $output echo "if [ x\${JAVA} = x ]" >> $output echo "then" >> $output echo " JAVA=java" >> $output echo "fi" >> $output echo >> $output echo "exec \${JAVA} \${VMARGS} \${CLASSPATH_ARG} \${MAIN_CLASS} \${@}" >> $output } 920faeda45892fe931196542223cc7fd81&showmsg=1'>root/packages/python/python24-native-2.4.0/cross-distutils.patch
AgeCommit message (Collapse)AuthorFiles
2007-08-15major python upgrade: add python[-native] 2.5.1, rename python-2.4 packageMichael Lauer1
2005-02-08make python 2.4 as default, move python-sip into python/, make sip4 as defaultMichael Lauer1
BKrev: 4208ff7b-sgl7QbT_1xhYPmdi-Oy4g
2004-12-09Merge oe-devel@oe-devel.bkbits.net:openembeddedChris Larson1
into hyperion.kergoth.com:/home/kergoth/code/openembedded 2004/12/09 03:39:39-06:00 kergoth.com!kergoth Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit. BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA