#!/bin/sh prefix=gst templatedir=element-templates while [ "$1" ] ; do case $1 in --help) cat <<-EOF Usage: gst-project-maker [OPTIONS] PROJECT_NAME Create an autotools project based on GStreamer from a template. Options: --help Print this information --prefix PREFIX Use PREFIX instead of "gst" Example: 'gst-project-maker my_project' will create the project gst-my-project. EOF exit 0 ;; --prefix) shift prefix=$1 ;; -*) echo Unknown option: $1 exit 1 ;; *) if [ "$name" = "" ]; then name=$1 else echo Ignored: $1 fi esac shift done if [ "$name" = "" ] ; then echo "Usage: gst-project-maker [OPTIONS] PROJECT_NAME" exit 1 fi PREFIX=$(echo $prefix | sed -e 's/\(.*\)/\U\1/') NAME=$(echo $name | sed -e 's/\(.*\)/\U\1/') Prefix=$(echo $prefix | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/') Name=$(echo $name | sed -e 's/_\(.\)/\U\1/g' -e 's/^\(.\)/\U\1/') if [ "$prefix" != "gst" ] ; then cmdline_prefix="--prefix $prefix" else cmdline_prefix="" fi GST_IS_REPLACE=${PREFIX}_IS_${NAME} GST_REPLACE=${PREFIX}_${NAME} GST_TYPE_REPLACE=${PREFIX}_TYPE_${NAME} GstReplace=${Prefix}${Name} gst_replace=${prefix}_${name} gst__replace=${prefix}-${name} gstreplace=${prefix}$(echo $name | sed -e 's/_//g') replace=$(echo $name | sed -e 's/_//g') if [ "$REAL_NAME" = "" ] ; then REAL_NAME=FIXME fi if [ "$EMAIL_ADDRESS" = "" ] ; then EMAIL_ADDRESS=fixme@example.com fi basedir=`pwd`/$gst__replace rm -rf $basedir mkdir $basedir cat >$basedir/AUTHORS < EOF cat >$basedir/COPYING <$basedir/ChangeLog <$basedir/NEWS <$basedir/README <$basedir/autogen.sh <$basedir/configure.ac <= \$GST_REQUIRED dnl for libgstvideo-1.0: gstreamer-video-1.0 >= \$GST_REQUIRED dnl for libgsttag-1.0: gstreamer-tag-1.0 >= \$GST_REQUIRED dnl for libgstpbutils-1.0: gstreamer-pbutils-1.0 >= \$GST_REQUIRED dnl for libgstfft-1.0: gstreamer-fft-1.0 >= \$GST_REQUIRED dnl for libgstinterfaces-1.0: gstreamer-interfaces-1.0 >= \$GST_REQUIRED dnl for libgstrtp-1.0: gstreamer-rtp-1.0 >= \$GST_REQUIRED dnl for libgstrtsp-1.0: gstreamer-rtsp-1.0 >= \$GST_REQUIRED dnl etc. PKG_CHECK_MODULES(GST, [ gstreamer-1.0 >= \$GST_REQUIRED gstreamer-base-1.0 >= \$GST_REQUIRED gstreamer-controller-1.0 >= \$GST_REQUIRED ], [ AC_SUBST(GST_CFLAGS) AC_SUBST(GST_LIBS) ], [ AC_MSG_ERROR([ You need to install or upgrade the GStreamer development packages on your system. On debian-based systems these are libgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev. on RPM-based systems gstreamer1.0-devel, libgstreamer1.0-devel or similar. The minimum version required is \$GST_REQUIRED. ]) ]) dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS) AC_MSG_CHECKING([to see if compiler understands -Wall]) save_CFLAGS="\$CFLAGS" CFLAGS="\$CFLAGS -Wall" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [ GST_CFLAGS="\$GST_CFLAGS -Wall" AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) dnl set the plugindir where plugins should be installed (for plugins/Makefile.am) if test "x\${prefix}" = "x\$HOME"; then plugindir="\$HOME/.gstreamer-1.0/plugins" else plugindir="\\\$(libdir)/gstreamer-1.0" fi AC_SUBST(plugindir) dnl set proper LDFLAGS for plugins GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*' AC_SUBST(GST_PLUGIN_LDFLAGS) AC_CONFIG_FILES([Makefile plugins/Makefile tools/Makefile]) AC_OUTPUT EOF cat >$basedir/Makefile.am <$basedir/plugins/Makefile.am < * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * * Alternatively, the contents of this file may be used under the * GNU Lesser General Public License Version 2.1 (the "LGPL"), in * which case the following provisions apply instead of the ones * mentioned above: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include "gstreplace.h" static gboolean plugin_init (GstPlugin * plugin) { gst_element_register (plugin, "replace", GST_RANK_NONE, GST_TYPE_REPLACE); return TRUE; } GST_PLUGIN_DEFINE ( GST_VERSION_MAJOR, GST_VERSION_MINOR, replace, "FIXME Template plugin", plugin_init, VERSION, "LGPL", /* FIXME */ "GStreamer", "http://gstreamer.net/" ) EOF } generate | sed \ -e "s/GST_BASE_REPLACE/$GST_BASE_REPLACE/g" \ -e "s/GST_TYPE_BASE_REPLACE/$GST_TYPE_BASE_REPLACE/g" \ -e "s/GstBaseReplace/$GstBaseReplace/g" \ -e "s/GST_IS_REPLACE/$GST_IS_REPLACE/g" \ -e "s/GST_REPLACE/$GST_REPLACE/g" \ -e "s/GST_TYPE_REPLACE/$GST_TYPE_REPLACE/g" \ -e "s/GstReplace/$GstReplace/g" \ -e "s/gst_replace/$gst_replace/g" \ -e "s/gstreplace/$gstreplace/g" \ -e "s/replace/$replace/g" >$basedir/plugins/${gstreplace}plugin.c gst-indent $basedir/plugins/${gstreplace}plugin.c rm -f $basedir/plugins/${gstreplace}plugin.c~ cat >$basedir/plugins/${gstreplace}.c <$basedir/plugins/${gstreplace}.h <$basedir/tools/Makefile.am <$basedir/tools/${gstreplace}.c < int main (void) { printf ("FIXME\n"); return 0; } EOF eoffice-5-1-3 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2012-09-18Branch libreoffice-3-5-7libreoffice-3.5.7.1libreoffice-3-5-7Fridrich Štrba0-0/+0
2012-09-17fixing tag errors in pt and trlibreoffice-3-5Andras Timar3-7/+7
2012-09-16update translations for LibreOffice 3.5.7 rc1Andras Timar69-804/+425
2012-08-06update translations for LibreOffice 3.5.6 rc2Andras Timar380-7123/+6490
2012-06-23update translations for LibreOffice 3.5.5 rc2Andras Timar1055-22435/+32190
2012-06-11update translations for LibreOffice 3.5.5 rc1Andras Timar550-7100/+197882
2012-05-20update translations for LibreOffice 3.5.4 rc2Andras Timar260-2607/+1997
2012-05-14update translations for LibreOffice 3.5.4 rc1Andras Timar705-15148/+10159
2012-04-23update translations for LibreOffice 3.5.3 rc2Andras Timar524-4768/+3267
2012-04-17update translations for LibreOffice 3.5.3 rc1Andras Timar349-4361/+3424
2012-04-02Updated Slovenian (sl) translationAndras Timar10-135/+73
2012-03-26update translations for LibreOffice 3.5.2 rc2Andras Timar234-2847/+2771
2012-03-19update translations for LibreOffice 3.5.2 rc1Andras Timar575-20741/+7446
2012-03-04update translations for LibreOffice 3.5.1 rc2Andras Timar31801-254669/+198759
2012-02-21fix build breaker in pl helpAndras Timar1-1/+1
2012-02-21Close correctly a tagFridrich Štrba1-1/+1
2012-02-21Ballance quote marksFridrich Štrba1-1/+1
2012-02-20update translations for LibreOffice 3.5.1 rc1Andras Timar1809-18927/+11610
2012-01-30update translations for LibreOffice 3.5 rc3Andras Timar2640-22261/+42524
2012-01-23update translations for LibreOffice 3.5 rc2Andras Timar8483-15690/+17400
2012-01-21fdo#45037 remove ~Andras Timar2-4/+4
2012-01-16update translations for LibreOffice 3.5 rc1Andras Timar10111-24008/+23904
2012-01-08update translations for LibreOffice 3.5 beta3Andras Timar12149-106050/+50764
2011-12-19update sl translation for LibreOffice 3.5 beta2Andras Timar327-2609/+2335
2011-12-19update translations for LibreOffice 3.5 beta2Andras Timar11365-98738/+95705
2011-12-19remove obsolete filesAndras Timar424-179613/+0
2011-12-06Branch libreoffice-3-5Petr Mladek0-0/+0
2011-12-05update translations for LibreOffice 3.5 beta1libreoffice-3-5-branch-pointAndras Timar618-6621/+5251
2011-11-29Version 3.5.0.0, tag libreoffice-3.5.0.0 (3.5.0-beta0)libreoffice-3.5.0.0Petr Mladek0-0/+0
2011-11-28update translations for LibreOffice 3.5 beta0Andras Timar30720-254727/+207369
2011-11-08changed localize tool syntaxAndras Timar1-2/+2
2011-11-07extend PYTHONPATH like a drunken crazy; perhaps it helps ...Michael Meeks1-2/+6
2011-11-06fix build with internal python on Windows, tooAndras Timar1-1/+1
2011-11-03translate-toolkit has gone...Andras Timar1-1/+1
2011-11-03fix build with internal pythonAndras Timar2-1/+5
2011-11-03extension description translations (bg, fr, pt-BR) for testingAndras Timar150-587/+1070
2011-11-02remove obsolete SYSTEM_TRANSLATE_TOOLKIT checkRene Engelhard1-24/+0
2011-10-31fix location of pdfimport translationsAndras Timar106-0/+0
2011-10-17Trying blindly to fix win32 buildFridrich Štrba1-1/+1
2011-10-08update all langsAndras Timar