~ubuntu-branches/ubuntu/quantal/gst-plugins-bad0.10/quantal-proposed

« back to all changes in this revision

Viewing changes to tools/gst-element-maker

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-07-19 14:32:43 UTC
  • mfrom: (18.4.21 sid)
  • Revision ID: james.westby@ubuntu.com-20110719143243-p7pnkh45akfp0ihk
Tags: 0.10.22-2ubuntu1
* Rebased on debian unstable, remaining changes:
  - debian/gstreamer-plugins-bad.install
    * don't include dtmf, liveadder, rtpmux, autoconvert and shm, we include 
      them in -good

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
 
4
4
prefix=gst
5
 
templatedir=element-templates
 
5
basedir=`dirname $0`
 
6
templatedir=$basedir/element-templates
6
7
 
7
8
while [ "$1" ] ; do
8
9
  case $1 in
44
45
  exit 1
45
46
fi
46
47
 
47
 
if [ ! -f "element-templates/$class" ] ; then
 
48
if [ ! -f "$templatedir/$class" ] ; then
48
49
  echo "Template file for $class not found."
49
50
  exit 1
50
51
fi
54
55
NAME=$(echo $name | sed -e 's/\(.*\)/\U\1/')
55
56
Prefix=$(echo $prefix | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/')
56
57
Name=$(echo $name | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/')
 
58
name=$(echo $name | sed -e 's/\(.*\)/\L\1/')
57
59
 
58
60
GST_IS_REPLACE=${PREFIX}_IS_${NAME}
59
61
GST_REPLACE=${PREFIX}_${NAME}
377
379
 
378
380
echo pkg is $pkg
379
381
 
380
 
gcc -Wall $(pkg-config --cflags gstreamer-0.10 $pkg) -c -o $gstreplace.o $gstreplace.c
 
382
gcc -Wall -fPIC $CPPFLAGS $(pkg-config --cflags gstreamer-0.10 $pkg) -c -o $gstreplace.o $gstreplace.c
 
383
if test $? -ne 0; then
 
384
    exit 1
 
385
fi
 
386
 
381
387
gcc -shared -o $gstreplace.so $gstreplace.o $(pkg-config --libs gstreamer-0.10 $pkg)
382
 
 
 
388
if test $? -ne 0; then
 
389
    exit 1
 
390
fi
383
391