From f067192c38e4af6208b1f35a76f0c952266869f8 Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 3 Sep 2008 03:48:23 +0000 Subject: merging with changes made since 21th May git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@233 18ef50b8-d735-4ccd-97c1-689132df3dd9 --- media/gfx/gqview/gqview.mkbuild | 92 ++ media/gfx/gtkam/gtkam.mkbuild | 95 ++ media/gfx/gwenview/gwenview.mkbuild | 169 +++ media/libs/aubio/aubio.mkbuild | 96 ++ media/libs/edje/edje.mkbuild | 117 ++ media/libs/efreet/efreet.mkbuild | 117 ++ media/libs/embryo/embryo.mkbuild | 117 ++ media/libs/emotion/emotion.mkbuild | 117 ++ media/libs/faad2/faad2-2.0.diff | 25 + media/libs/faad2/faad2-2.6.1.diff | 1040 +++++++++++++++ media/libs/faad2/faad2.mkbuild | 102 ++ media/libs/glitz/glitz.mkbuild | 92 ++ media/libs/gst-ffmpeg/gst-ffmpeg.mkbuild | 175 +++ media/libs/gst-plugins-bad/gst-plugins-bad.mkbuild | 169 +++ .../libs/gst-plugins-base/gst-plugins-base.mkbuild | 169 +++ .../libs/gst-plugins-good/gst-plugins-good.mkbuild | 169 +++ .../libs/gst-plugins-ugly/gst-plugins-ugly.mkbuild | 169 +++ media/libs/gstreamer/gstreamer.mkbuild | 169 +++ media/libs/ilmbase/ilmbase.mkbuild | 92 ++ media/libs/imlib2/imlib2.mkbuild | 167 +++ media/libs/ladspa/ladspa.mkbuild | 144 ++ media/libs/libdv/libdv-0.104.diff | 1383 ++++++++++++++++++++ media/libs/libdv/libdv.mkbuild | 92 ++ media/libs/libdvbpsi/libdvbpsi.mkbuild | 169 +++ media/libs/libexif-gtk/libexif-gtk.mkbuild | 95 ++ media/libs/libiec61883/libiec61883.mkbuild | 101 ++ media/libs/libjackasyn/libjackasyn.mkbuild | 95 ++ media/libs/liblo/liblo.mkbuild | 92 ++ media/libs/liblrdf/liblrdf.mkbuild | 95 ++ media/libs/libquicktime/libquicktime-0.9.10.diff | 30 + media/libs/libquicktime/libquicktime.mkbuild | 98 ++ media/libs/libsamplerate/libsamplerate.mkbuild | 92 ++ media/libs/libsndfile/libsndfile.mkbuild | 97 ++ media/libs/libx264/libx264.mkbuild | 122 ++ media/libs/openexr/openexr.mkbuild | 98 ++ media/libs/raptor/raptor.mkbuild | 98 ++ media/libs/speex/speex.mkbuild | 92 ++ media/libs/unicap/unicap.mkbuild | 169 +++ media/libs/xine-lib/xine-lib.mkbuild | 160 +++ media/libs/zvbi/zvbi.mkbuild | 167 +++ .../plugins/swfdec-mozilla/swfdec-mozilla.mkbuild | 95 ++ media/plugins/swfdec/swfdec.mkbuild | 104 ++ media/plugins/swh-plugins/swh-plugins.mkbuild | 95 ++ media/plugins/xmms-jack/xmms-jack.mkbuild | 95 ++ media/plugins/xmms-jackasyn/xmms-jackasyn.mkbuild | 95 ++ media/sound/ardour/ardour.mkbuild | 172 +++ media/sound/camp/camp-1.5.3455.diff | 64 + media/sound/camp/camp.mkbuild | 104 ++ media/sound/cmt/cmt.mkbuild | 150 +++ media/sound/darkice/darkice-0.17.1-x86_64.diff | 95 ++ media/sound/darkice/darkice.mkbuild | 97 ++ media/sound/darksnow/darksnow.mkbuild | 90 ++ media/sound/envy24control/envy24control.mkbuild | 110 ++ media/sound/hydrogen/hydrogen-0.9.3.diff | 651 +++++++++ media/sound/hydrogen/hydrogen.mkbuild | 95 ++ media/sound/jack-rack/jack-rack.mkbuild | 99 ++ media/sound/lmms/lmms-0.2.1.diff | 12 + media/sound/lmms/lmms.mkbuild | 95 ++ media/sound/mp3blaster/mp3blaster.mkbuild | 94 ++ media/sound/pulseaudio/pulseaudio-0.9.10.diff | 22 + media/sound/pulseaudio/pulseaudio.mkbuild | 169 +++ media/sound/qjackctl/qjackctl.mkbuild | 97 ++ media/sound/qjackctl/slack-required | 4 + media/sound/twolame/twolame.mkbuild | 92 ++ media/sound/xmms/xmms.mkbuild | 160 +++ media/video/cinelerra/cinelerra-altivec.diff | 49 + media/video/cinelerra/cinelerra.mkbuild | 125 ++ media/video/dvgrab/dvgrab.mkbuild | 99 ++ media/video/ffmpeg/.SlackBuild | 204 +++ media/video/ffmpeg/.SlackBuild.old | 204 +++ media/video/ffmpeg/ffmpeg.mkbuild | 131 ++ media/video/ffmpeg2theora/ffmpeg2theora.mkbuild | 95 ++ media/video/kino/kino.mkbuild | 99 ++ .../video/mjpegtools/mjpegtools-1.8.0-powerpc.diff | 11 + media/video/mjpegtools/mjpegtools-1.8.0.diff | 11 + .../mjpegtools/mjpegtools-1.9.0rc2-x86_64.diff | 31 + media/video/mjpegtools/mjpegtools.mkbuild | 119 ++ media/video/mplayer/MPlayer-1.0rc1.diff | 31 + media/video/mplayer/MPlayer.mkbuild | 142 ++ media/video/oggfwd/oggfwd-0.2.diff | 25 + media/video/oggfwd/oggfwd.mkbuild | 98 ++ media/video/theorur/theorur.mkbuild | 90 ++ media/video/ucview/slack-required | 3 + media/video/ucview/ucview.mkbuild | 169 +++ 84 files changed, 11639 insertions(+) create mode 100644 media/gfx/gqview/gqview.mkbuild create mode 100644 media/gfx/gtkam/gtkam.mkbuild create mode 100644 media/gfx/gwenview/gwenview.mkbuild create mode 100644 media/libs/aubio/aubio.mkbuild create mode 100644 media/libs/edje/edje.mkbuild create mode 100644 media/libs/efreet/efreet.mkbuild create mode 100644 media/libs/embryo/embryo.mkbuild create mode 100644 media/libs/emotion/emotion.mkbuild create mode 100644 media/libs/faad2/faad2-2.0.diff create mode 100644 media/libs/faad2/faad2-2.6.1.diff create mode 100644 media/libs/faad2/faad2.mkbuild create mode 100644 media/libs/glitz/glitz.mkbuild create mode 100644 media/libs/gst-ffmpeg/gst-ffmpeg.mkbuild create mode 100644 media/libs/gst-plugins-bad/gst-plugins-bad.mkbuild create mode 100644 media/libs/gst-plugins-base/gst-plugins-base.mkbuild create mode 100644 media/libs/gst-plugins-good/gst-plugins-good.mkbuild create mode 100644 media/libs/gst-plugins-ugly/gst-plugins-ugly.mkbuild create mode 100644 media/libs/gstreamer/gstreamer.mkbuild create mode 100644 media/libs/ilmbase/ilmbase.mkbuild create mode 100644 media/libs/imlib2/imlib2.mkbuild create mode 100644 media/libs/ladspa/ladspa.mkbuild create mode 100644 media/libs/libdv/libdv-0.104.diff create mode 100644 media/libs/libdv/libdv.mkbuild create mode 100644 media/libs/libdvbpsi/libdvbpsi.mkbuild create mode 100644 media/libs/libexif-gtk/libexif-gtk.mkbuild create mode 100644 media/libs/libiec61883/libiec61883.mkbuild create mode 100644 media/libs/libjackasyn/libjackasyn.mkbuild create mode 100644 media/libs/liblo/liblo.mkbuild create mode 100644 media/libs/liblrdf/liblrdf.mkbuild create mode 100644 media/libs/libquicktime/libquicktime-0.9.10.diff create mode 100644 media/libs/libquicktime/libquicktime.mkbuild create mode 100644 media/libs/libsamplerate/libsamplerate.mkbuild create mode 100644 media/libs/libsndfile/libsndfile.mkbuild create mode 100644 media/libs/libx264/libx264.mkbuild create mode 100644 media/libs/openexr/openexr.mkbuild create mode 100644 media/libs/raptor/raptor.mkbuild create mode 100644 media/libs/speex/speex.mkbuild create mode 100644 media/libs/unicap/unicap.mkbuild create mode 100644 media/libs/xine-lib/xine-lib.mkbuild create mode 100644 media/libs/zvbi/zvbi.mkbuild create mode 100644 media/plugins/swfdec-mozilla/swfdec-mozilla.mkbuild create mode 100644 media/plugins/swfdec/swfdec.mkbuild create mode 100644 media/plugins/swh-plugins/swh-plugins.mkbuild create mode 100644 media/plugins/xmms-jack/xmms-jack.mkbuild create mode 100644 media/plugins/xmms-jackasyn/xmms-jackasyn.mkbuild create mode 100644 media/sound/ardour/ardour.mkbuild create mode 100644 media/sound/camp/camp-1.5.3455.diff create mode 100644 media/sound/camp/camp.mkbuild create mode 100644 media/sound/cmt/cmt.mkbuild create mode 100644 media/sound/darkice/darkice-0.17.1-x86_64.diff create mode 100644 media/sound/darkice/darkice.mkbuild create mode 100644 media/sound/darksnow/darksnow.mkbuild create mode 100644 media/sound/envy24control/envy24control.mkbuild create mode 100644 media/sound/hydrogen/hydrogen-0.9.3.diff create mode 100644 media/sound/hydrogen/hydrogen.mkbuild create mode 100644 media/sound/jack-rack/jack-rack.mkbuild create mode 100644 media/sound/lmms/lmms-0.2.1.diff create mode 100644 media/sound/lmms/lmms.mkbuild create mode 100644 media/sound/mp3blaster/mp3blaster.mkbuild create mode 100644 media/sound/pulseaudio/pulseaudio-0.9.10.diff create mode 100644 media/sound/pulseaudio/pulseaudio.mkbuild create mode 100644 media/sound/qjackctl/qjackctl.mkbuild create mode 100644 media/sound/qjackctl/slack-required create mode 100644 media/sound/twolame/twolame.mkbuild create mode 100644 media/sound/xmms/xmms.mkbuild create mode 100644 media/video/cinelerra/cinelerra-altivec.diff create mode 100644 media/video/cinelerra/cinelerra.mkbuild create mode 100644 media/video/dvgrab/dvgrab.mkbuild create mode 100644 media/video/ffmpeg/.SlackBuild create mode 100644 media/video/ffmpeg/.SlackBuild.old create mode 100644 media/video/ffmpeg/ffmpeg.mkbuild create mode 100644 media/video/ffmpeg2theora/ffmpeg2theora.mkbuild create mode 100644 media/video/kino/kino.mkbuild create mode 100644 media/video/mjpegtools/mjpegtools-1.8.0-powerpc.diff create mode 100644 media/video/mjpegtools/mjpegtools-1.8.0.diff create mode 100644 media/video/mjpegtools/mjpegtools-1.9.0rc2-x86_64.diff create mode 100644 media/video/mjpegtools/mjpegtools.mkbuild create mode 100644 media/video/mplayer/MPlayer-1.0rc1.diff create mode 100644 media/video/mplayer/MPlayer.mkbuild create mode 100644 media/video/oggfwd/oggfwd-0.2.diff create mode 100644 media/video/oggfwd/oggfwd.mkbuild create mode 100644 media/video/theorur/theorur.mkbuild create mode 100644 media/video/ucview/slack-required create mode 100644 media/video/ucview/ucview.mkbuild (limited to 'media') diff --git a/media/gfx/gqview/gqview.mkbuild b/media/gfx/gqview/gqview.mkbuild new file mode 100644 index 0000000..121f220 --- /dev/null +++ b/media/gfx/gqview/gqview.mkbuild @@ -0,0 +1,92 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/gqview/gqview-2.0.4.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog NEWS README TODO" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/gfx/gqview" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gqview: gqview (image browser and viewer) +gqview: +gqview: GQview is an image browser that features single click access to view +gqview: images and move around the directory tree. +gqview: +gqview: +gqview: +gqview: +gqview: +gqview: +gqview: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gtkam: gtkam (a GTK frontend for gphoto) +gtkam: +gtkam: gtkam is a GNOME front-end for gphoto, which allows you to retrieve +gtkam: photos and movies from over 300 different digital cameras. +gtkam: +gtkam: +gtkam: +gtkam: +gtkam: +gtkam: +gtkam: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gwenview: gwenview by Slack.Sarava +gwenview: +gwenview: Gwenview is an image viewer for KDE. It can load and save all image +gwenview: formats supported by KDE, but Gwenview can also browse GIMP files +gwenview: (*.xcf) thanks to the included QXCFI component developed by Lignum +gwenview: Computing. +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +aubio: aubio (library for audio labelling) +aubio: +aubio: aubio is a library for audio labelling. Its features include +aubio: segmenting a sound file before each of its attacks, performing pitch +aubio: detection, tapping the beat and producing midi streams from live audio. +aubio: The name aubio comes from 'audio' with a typo: several transcription +aubio: errors are likely to be found in the results too. +aubio: +aubio: +aubio: +aubio: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group +off: download_source + on: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check +off: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +edje: edje +edje: +edje: A graphical layout and animation library for animated resizable, +edje: compressed and scalable themes. +edje: +edje: +edje: +edje: +edje: +edje: +edje: +# + # Configure ++./autogen.sh || exit $ERROR_CONF +#p< diff --git a/media/libs/efreet/efreet.mkbuild b/media/libs/efreet/efreet.mkbuild new file mode 100644 index 0000000..7617341 --- /dev/null +++ b/media/libs/efreet/efreet.mkbuild @@ -0,0 +1,117 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://svn.enlightenment.org/svn/e/trunk/efreet" + +# Package name +[[PACKAGE NAME]]="efreet" + +# Source base name +[[SOURCE NAME]]="efreet" + +# +# PKG_NAME version +[[VERSION]]="svn_version" + +# +# Dependency list input +[[SLACK REQUIRED]]="eet: evas: ecore" + +# +# Documentation files +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog NEWS README TODO BUGS" + +# +# Other configure arguments +[[OTHER CONFIGURE ARGS]]="--sysconfdir=/etc" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/efreet" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group +off: download_source + on: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check +off: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +efreet: efreet +efreet: +efreet: library for handling of freedesktop.org specs. +efreet: +efreet: +efreet: +efreet: +efreet: +efreet: +efreet: +efreet: +# + # Configure ++./autogen.sh || exit $ERROR_CONF +#p< diff --git a/media/libs/embryo/embryo.mkbuild b/media/libs/embryo/embryo.mkbuild new file mode 100644 index 0000000..b4692ad --- /dev/null +++ b/media/libs/embryo/embryo.mkbuild @@ -0,0 +1,117 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://svn.enlightenment.org/svn/e/trunk/embryo" + +# Package name +[[PACKAGE NAME]]="embryo" + +# Source base name +[[SOURCE NAME]]="embryo" + +# +# PKG_NAME version +[[VERSION]]="svn_version" + +# +# Dependency list input +[[SLACK REQUIRED]]="eet: evas: ecore: efreet" + +# +# Documentation files +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog NEWS README TODO BUGS" + +# +# Other configure arguments +[[OTHER CONFIGURE ARGS]]="--sysconfdir=/etc" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/embryo" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group +off: download_source + on: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check +off: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +embryo: embryo +embryo: +embryo: Embryo is primarily a shared library that gives you an API to load and control +embryo: interpreted programs compiled into an abstract machine bytecode that it +embryo: understands. This abstract (or virtual) machine is similar to a real machine +embryo: with a CPU, but it is emulated in software. +embryo: +embryo: +embryo: +embryo: +embryo: +# + # Configure ++./autogen.sh || exit $ERROR_CONF +#p< diff --git a/media/libs/emotion/emotion.mkbuild b/media/libs/emotion/emotion.mkbuild new file mode 100644 index 0000000..509d3a8 --- /dev/null +++ b/media/libs/emotion/emotion.mkbuild @@ -0,0 +1,117 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://svn.enlightenment.org/svn/e/trunk/emotion" + +# Package name +[[PACKAGE NAME]]="emotion" + +# Source base name +[[SOURCE NAME]]="emotion" + +# +# PKG_NAME version +[[VERSION]]="svn_version" + +# +# Dependency list input +[[SLACK REQUIRED]]="ecore" + +# +# Documentation files +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog NEWS README TODO BUGS" + +# +# Other configure arguments +[[OTHER CONFIGURE ARGS]]="--sysconfdir=/etc" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/emotion" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group +off: download_source + on: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check +off: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +emotion: emotion +emotion: +emotion: A media object library for Evas and Ecore +emotion: +emotion: +emotion: +emotion: +emotion: +emotion: +emotion: +emotion: +# + # Configure ++./autogen.sh || exit $ERROR_CONF +#p< diff --git a/media/libs/faad2/faad2-2.0.diff b/media/libs/faad2/faad2-2.0.diff new file mode 100644 index 0000000..56012ff --- /dev/null +++ b/media/libs/faad2/faad2-2.0.diff @@ -0,0 +1,25 @@ +--- Makefile.orig 2006-10-05 04:47:27.000000000 -0300 ++++ Makefile 2006-10-05 04:47:57.000000000 -0300 +@@ -624,10 +624,6 @@ + tags tags-recursive uninstall uninstall-am uninstall-info-am + + +-rpm: Makefile +- make dist +- $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz +- rm $(PACKAGE)-$(VERSION).tar.gz + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: + +--- common/mp4ff/mp4ffint.h 2005-02-12 23:38:28.828890793 -0500 ++++ common/mp4ff/mp4ffint.h 2005-02-12 23:41:01.618473068 -0500 +@@ -301,7 +301,7 @@ + mp4ff_t *mp4ff_open_edit(mp4ff_callback_t *f); + #endif + void mp4ff_close(mp4ff_t *ff); +-void mp4ff_track_add(mp4ff_t *f); ++static void mp4ff_track_add(mp4ff_t *f); + int32_t parse_sub_atoms(mp4ff_t *f, const uint64_t total_size); + int32_t parse_atoms(mp4ff_t *f); + diff --git a/media/libs/faad2/faad2-2.6.1.diff b/media/libs/faad2/faad2-2.6.1.diff new file mode 100644 index 0000000..bb24616 --- /dev/null +++ b/media/libs/faad2/faad2-2.6.1.diff @@ -0,0 +1,1040 @@ +diff -urNad faad2-svn~/include/neaacdec.h faad2-svn/include/neaacdec.h +--- faad2-svn~/include/neaacdec.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/include/neaacdec.h 2007-11-28 23:29:27.000000000 +0000 +@@ -35,6 +35,7 @@ + extern "C" { + #endif /* __cplusplus */ + ++#include + + #if 1 + /* MACROS FOR BACKWARDS COMPATIBILITY */ +@@ -197,51 +198,51 @@ + unsigned char ps; + } NeAACDecFrameInfo; + +-char* NEAACDECAPI NeAACDecGetErrorMessage(unsigned char errcode); ++int8_t* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode); + +-unsigned long NEAACDECAPI NeAACDecGetCapabilities(void); ++uint32_t NEAACDECAPI NeAACDecGetCapabilities(void); + + NeAACDecHandle NEAACDECAPI NeAACDecOpen(void); + + NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder); + +-unsigned char NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder, ++uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder, + NeAACDecConfigurationPtr config); + + /* Init the library based on info from the AAC file (ADTS/ADIF) */ +-long NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, +- unsigned char *buffer, +- unsigned long buffer_size, +- unsigned long *samplerate, +- unsigned char *channels); ++int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, ++ uint8_t *buffer, ++ uint32_t buffer_size, ++ uint32_t *samplerate, ++ uint8_t *channels); + + /* Init the library using a DecoderSpecificInfo */ +-char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char *pBuffer, +- unsigned long SizeOfDecoderSpecificInfo, +- unsigned long *samplerate, unsigned char *channels); ++int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char *pBuffer, ++ uint32_t SizeOfDecoderSpecificInfo, ++ uint32_t *samplerate, uint8_t *channels); + + /* Init the library for DRM */ +-char NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, unsigned long samplerate, +- unsigned char channels); ++int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, uint32_t samplerate, ++ uint8_t channels); + +-void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, long frame); ++void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, int32_t frame); + + void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder); + + void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder, + NeAACDecFrameInfo *hInfo, +- unsigned char *buffer, +- unsigned long buffer_size); ++ uint8_t *buffer, ++ uint32_t buffer_size); + + void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder, + NeAACDecFrameInfo *hInfo, +- unsigned char *buffer, +- unsigned long buffer_size, ++ uint8_t *buffer, ++ uint32_t buffer_size, + void **sample_buffer, +- unsigned long sample_buffer_size); ++ uint32_t sample_buffer_size); + +-char NEAACDECAPI NeAACDecAudioSpecificConfig(unsigned char *pBuffer, +- unsigned long buffer_size, ++int8_t NEAACDECAPI NeAACDecAudioSpecificConfig(uint8_t *pBuffer, ++ uint32_t buffer_size, + mp4AudioSpecificConfig *mp4ASC); + + #ifdef _WIN32 +diff -urNad faad2-svn~/libfaad/Makefile.am faad2-svn/libfaad/Makefile.am +--- faad2-svn~/libfaad/Makefile.am 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/Makefile.am 2007-11-28 23:31:03.000000000 +0000 +@@ -1,28 +1,29 @@ + lib_LTLIBRARIES = libfaad.la + ++AM_CFLAGS = -iquote $(top_srcdir)/include + include_HEADERS = $(top_srcdir)/include/faad.h \ +- $(top_srcdir)/include/neaacdec.h ++ $(top_srcdir)/include/neaacdec.h + + libfaad_la_LDFLAGS = -lm + + libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \ +-drm_dec.c error.c filtbank.c \ +-ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c \ +-ps_dec.c ps_syntax.c \ +-pulse.c specrec.c syntax.c tns.c hcr.c huffman.c \ +-rvlc.c ssr.c ssr_fb.c ssr_ipqf.c common.c \ +-sbr_dct.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c \ +-sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c sbr_dec.c \ +-analysis.h bits.h cfft.h cfft_tab.h common.h \ +-decoder.h drc.h drm_dec.h error.h fixed.h filtbank.h \ +-huffman.h ic_predict.h iq_table.h is.h kbd_win.h lt_predict.h \ +-mdct.h mdct_tab.h mp4.h ms.h output.h pns.h ps_dec.h ps_tables.h \ +-pulse.h rvlc.h \ +-sbr_dct.h sbr_dec.h sbr_e_nf.h sbr_fbt.h sbr_hfadj.h sbr_hfgen.h \ +-sbr_huff.h sbr_noise.h sbr_qmf.h sbr_syntax.h sbr_tf_grid.h \ +-sine_win.h specrec.h ssr.h ssr_fb.h ssr_ipqf.h \ +-ssr_win.h syntax.h structs.h tns.h \ +-sbr_qmf_c.h codebook/hcb.h \ +-codebook/hcb_1.h codebook/hcb_2.h codebook/hcb_3.h codebook/hcb_4.h \ +-codebook/hcb_5.h codebook/hcb_6.h codebook/hcb_7.h codebook/hcb_8.h \ +-codebook/hcb_9.h codebook/hcb_10.h codebook/hcb_11.h codebook/hcb_sf.h +\ No newline at end of file ++ drm_dec.c error.c filtbank.c \ ++ ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c \ ++ ps_dec.c ps_syntax.c \ ++ pulse.c specrec.c syntax.c tns.c hcr.c huffman.c \ ++ rvlc.c ssr.c ssr_fb.c ssr_ipqf.c common.c \ ++ sbr_dct.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c \ ++ sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c sbr_dec.c \ ++ analysis.h bits.h cfft.h cfft_tab.h common.h \ ++ decoder.h drc.h drm_dec.h error.h fixed.h filtbank.h \ ++ huffman.h ic_predict.h iq_table.h is.h kbd_win.h lt_predict.h \ ++ mdct.h mdct_tab.h mp4.h ms.h output.h pns.h ps_dec.h ps_tables.h \ ++ pulse.h rvlc.h \ ++ sbr_dct.h sbr_dec.h sbr_e_nf.h sbr_fbt.h sbr_hfadj.h sbr_hfgen.h \ ++ sbr_huff.h sbr_noise.h sbr_qmf.h sbr_syntax.h sbr_tf_grid.h \ ++ sine_win.h specrec.h ssr.h ssr_fb.h ssr_ipqf.h \ ++ ssr_win.h syntax.h structs.h tns.h \ ++ sbr_qmf_c.h codebook/hcb.h \ ++ codebook/hcb_1.h codebook/hcb_2.h codebook/hcb_3.h codebook/hcb_4.h \ ++ codebook/hcb_5.h codebook/hcb_6.h codebook/hcb_7.h codebook/hcb_8.h \ ++ codebook/hcb_9.h codebook/hcb_10.h codebook/hcb_11.h codebook/hcb_sf.h +diff -urNad faad2-svn~/libfaad/common.h faad2-svn/libfaad/common.h +--- faad2-svn~/libfaad/common.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/common.h 2007-11-28 23:29:27.000000000 +0000 +@@ -39,6 +39,8 @@ + # include "../config.h" + #endif + ++#include "neaacdec.h" ++ + #if 1 + #define INLINE __inline + #else +@@ -210,7 +212,7 @@ + #else + # if HAVE_STDINT_H + # include +-# else ++# else /* !HAVE_STDINT_H */ + /* we need these... */ + #ifndef __TCS__ + typedef unsigned long long uint64_t; +@@ -225,7 +227,7 @@ + typedef long int32_t; + typedef short int16_t; + typedef char int8_t; +-# endif ++# endif /* !HAVE_STDINT_H */ + #endif + #if HAVE_UNISTD_H + //# include +diff -urNad faad2-svn~/libfaad/decoder.c faad2-svn/libfaad/decoder.c +--- faad2-svn~/libfaad/decoder.c 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/decoder.c 2007-11-28 23:29:27.000000000 +0000 +@@ -34,7 +34,6 @@ + #include + #include + +-#include "decoder.h" + #include "mp4.h" + #include "syntax.h" + #include "error.h" +@@ -54,13 +53,13 @@ + #endif + + /* static function declarations */ +-static void* aac_frame_decode(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, ++static void* aac_frame_decode(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, + uint8_t *buffer, uint32_t buffer_size, + void **sample_buffer, uint32_t sample_buffer_size); +-static void create_channel_config(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo); ++static void create_channel_config(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo); + + +-char* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode) ++int8_t* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode) + { + if (errcode >= NUM_ERROR_MESSAGES) + return NULL; +@@ -97,9 +96,9 @@ + NeAACDecHandle NEAACDECAPI NeAACDecOpen(void) + { + uint8_t i; +- NeAACDecHandle hDecoder = NULL; ++ NeAACDecStruct* hDecoder = NULL; + +- if ((hDecoder = (NeAACDecHandle)faad_malloc(sizeof(NeAACDecStruct))) == NULL) ++ if ((hDecoder = (NeAACDecStruct*)faad_malloc(sizeof(NeAACDecStruct))) == NULL) + return NULL; + + memset(hDecoder, 0, sizeof(NeAACDecStruct)); +@@ -154,8 +153,9 @@ + return hDecoder; + } + +-NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder) ++NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hpDecoder) + { ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; + if (hDecoder) + { + NeAACDecConfigurationPtr config = &(hDecoder->config); +@@ -166,9 +166,10 @@ + return NULL; + } + +-uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder, ++uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hpDecoder, + NeAACDecConfigurationPtr config) + { ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; + if (hDecoder && config) + { + /* check if we can decode this object type */ +@@ -203,7 +204,7 @@ + } + + +-int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, uint8_t *buffer, ++int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hpDecoder, uint8_t *buffer, + uint32_t buffer_size, + uint32_t *samplerate, uint8_t *channels) + { +@@ -211,7 +212,7 @@ + bitfile ld; + adif_header adif; + adts_header adts; +- ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; + + if ((hDecoder == NULL) || (samplerate == NULL) || (channels == NULL)) + return -1; +@@ -310,12 +311,13 @@ + } + + /* Init the library using a DecoderSpecificInfo */ +-int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer, ++int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hpDecoder, uint8_t *pBuffer, + uint32_t SizeOfDecoderSpecificInfo, + uint32_t *samplerate, uint8_t *channels) + { + int8_t rc; + mp4AudioSpecificConfig mp4ASC; ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; + + if((hDecoder == NULL) + || (pBuffer == NULL) +@@ -401,9 +403,11 @@ + } + + #ifdef DRM +-int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, uint32_t samplerate, ++int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hpDecoder, uint32_t samplerate, + uint8_t channels) + { ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; ++ + if (hDecoder == NULL) + return 1; /* error */ + +@@ -442,9 +446,10 @@ + } + #endif + +-void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder) ++void NEAACDECAPI NeAACDecClose(NeAACDecHandle hpDecoder) + { + uint8_t i; ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; + + if (hDecoder == NULL) + return; +@@ -495,8 +500,10 @@ + if (hDecoder) faad_free(hDecoder); + } + +-void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, int32_t frame) ++void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hpDecoder, int32_t frame) + { ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; ++ + if (hDecoder) + { + hDecoder->postSeekResetFlag = 1; +@@ -506,7 +513,7 @@ + } + } + +-static void create_channel_config(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo) ++static void create_channel_config(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo) + { + hInfo->num_front_channels = 0; + hInfo->num_side_channels = 0; +@@ -724,18 +731,22 @@ + } + } + +-void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder, ++void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hpDecoder, + NeAACDecFrameInfo *hInfo, + uint8_t *buffer, uint32_t buffer_size) + { ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; ++ + return aac_frame_decode(hDecoder, hInfo, buffer, buffer_size, NULL, 0); + } + +-void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder, ++void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hpDecoder, + NeAACDecFrameInfo *hInfo, + uint8_t *buffer, uint32_t buffer_size, + void **sample_buffer, uint32_t sample_buffer_size) + { ++ NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder; ++ + if ((sample_buffer == NULL) || (sample_buffer_size == 0)) + { + hInfo->error = 27; +@@ -750,14 +761,14 @@ + + #define ERROR_STATE_INIT 6 + +-static void conceal_output(NeAACDecHandle hDecoder, uint16_t frame_len, ++static void conceal_output(NeAACDecStruct* hDecoder, uint16_t frame_len, + uint8_t out_ch, void *sample_buffer) + { + return; + } + #endif + +-static void* aac_frame_decode(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, ++static void* aac_frame_decode(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, + uint8_t *buffer, uint32_t buffer_size, + void **sample_buffer2, uint32_t sample_buffer_size) + { +diff -urNad faad2-svn~/libfaad/decoder.h faad2-svn/libfaad/decoder.h +--- faad2-svn~/libfaad/decoder.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/decoder.h 1970-01-01 01:00:00.000000000 +0100 +@@ -1,124 +0,0 @@ +-/* +-** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding +-** Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.com +-** +-** This program is free software; you can redistribute it and/or modify +-** it under the terms of the GNU General Public License as published by +-** the Free Software Foundation; either version 2 of the License, or +-** (at your option) any later version. +-** +-** This program 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 General Public License for more details. +-** +-** You should have received a copy of the GNU General Public License +-** along with this program; if not, write to the Free Software +-** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-** +-** Any non-GPL usage of this software or parts of this software is strictly +-** forbidden. +-** +-** The "appropriate copyright message" mentioned in section 2c of the GPLv2 +-** must read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com" +-** +-** Commercial non-GPL licensing of this software is possible. +-** For more info contact Nero AG through Mpeg4AAClicense@nero.com. +-** +-** $Id: decoder.h,v 1.48 2007/11/01 12:33:30 menno Exp $ +-**/ +- +-#ifndef __DECODER_H__ +-#define __DECODER_H__ +- +-#ifdef __cplusplus +-extern "C" { +-#endif +- +-#ifdef _WIN32 +- #pragma pack(push, 8) +- #ifndef NEAACDECAPI +- #define NEAACDECAPI __cdecl +- #endif +-#else +- #ifndef NEAACDECAPI +- #define NEAACDECAPI +- #endif +-#endif +- +- +-/* library output formats */ +-#define FAAD_FMT_16BIT 1 +-#define FAAD_FMT_24BIT 2 +-#define FAAD_FMT_32BIT 3 +-#define FAAD_FMT_FLOAT 4 +-#define FAAD_FMT_FIXED FAAD_FMT_FLOAT +-#define FAAD_FMT_DOUBLE 5 +- +-#define LC_DEC_CAP (1<<0) +-#define MAIN_DEC_CAP (1<<1) +-#define LTP_DEC_CAP (1<<2) +-#define LD_DEC_CAP (1<<3) +-#define ERROR_RESILIENCE_CAP (1<<4) +-#define FIXED_POINT_CAP (1<<5) +- +-#define FRONT_CHANNEL_CENTER (1) +-#define FRONT_CHANNEL_LEFT (2) +-#define FRONT_CHANNEL_RIGHT (3) +-#define SIDE_CHANNEL_LEFT (4) +-#define SIDE_CHANNEL_RIGHT (5) +-#define BACK_CHANNEL_LEFT (6) +-#define BACK_CHANNEL_RIGHT (7) +-#define BACK_CHANNEL_CENTER (8) +-#define LFE_CHANNEL (9) +-#define UNKNOWN_CHANNEL (0) +- +-char* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode); +- +-uint32_t NEAACDECAPI NeAACDecGetCapabilities(void); +- +-NeAACDecHandle NEAACDECAPI NeAACDecOpen(void); +- +-NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder); +- +-uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder, +- NeAACDecConfigurationPtr config); +- +-/* Init the library based on info from the AAC file (ADTS/ADIF) */ +-int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, +- uint8_t *buffer, +- uint32_t buffer_size, +- uint32_t *samplerate, +- uint8_t *channels); +- +-/* Init the library using a DecoderSpecificInfo */ +-int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer, +- uint32_t SizeOfDecoderSpecificInfo, +- uint32_t *samplerate, uint8_t *channels); +- +-/* Init the library for DRM */ +-int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, uint32_t samplerate, +- uint8_t channels); +- +-void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder); +- +-void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, int32_t frame); +- +-void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder, +- NeAACDecFrameInfo *hInfo, +- uint8_t *buffer, +- uint32_t buffer_size); +- +-void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder, +- NeAACDecFrameInfo *hInfo, +- uint8_t *buffer, uint32_t buffer_size, +- void **sample_buffer, uint32_t sample_buffer_size); +- +-#ifdef _WIN32 +- #pragma pack(pop) +-#endif +- +-#ifdef __cplusplus +-} +-#endif +-#endif +diff -urNad faad2-svn~/libfaad/filtbank.c faad2-svn/libfaad/filtbank.c +--- faad2-svn~/libfaad/filtbank.c 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/filtbank.c 2007-11-28 23:29:27.000000000 +0000 +@@ -40,7 +40,6 @@ + #endif + + #include "filtbank.h" +-#include "decoder.h" + #include "syntax.h" + #include "kbd_win.h" + #include "sine_win.h" +diff -urNad faad2-svn~/libfaad/hcr.c faad2-svn/libfaad/hcr.c +--- faad2-svn~/libfaad/hcr.c 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/hcr.c 2007-11-28 23:29:27.000000000 +0000 +@@ -214,7 +214,7 @@ + codeword[index].bits.len = 0; + } + +-uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, ++uint8_t reordered_spectral_data(NeAACDecStruct* hDecoder, ic_stream *ics, + bitfile *ld, int16_t *spectral_data) + { + uint16_t PCWs_done; +diff -urNad faad2-svn~/libfaad/mp4.h faad2-svn/libfaad/mp4.h +--- faad2-svn~/libfaad/mp4.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/mp4.h 2007-11-28 23:29:27.000000000 +0000 +@@ -35,11 +35,7 @@ + extern "C" { + #endif + +-#include "decoder.h" +- +-int8_t NEAACDECAPI NeAACDecAudioSpecificConfig(uint8_t *pBuffer, +- uint32_t buffer_size, +- mp4AudioSpecificConfig *mp4ASC); ++#include "neaacdec.h" + + int8_t AudioSpecificConfig2(uint8_t *pBuffer, + uint32_t buffer_size, +diff -urNad faad2-svn~/libfaad/output.c faad2-svn/libfaad/output.c +--- faad2-svn~/libfaad/output.c 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/output.c 2007-11-28 23:29:27.000000000 +0000 +@@ -32,7 +32,6 @@ + #include "structs.h" + + #include "output.h" +-#include "decoder.h" + + #ifndef FIXED_POINT + +@@ -87,7 +86,7 @@ + + #define CONV(a,b) ((a<<1)|(b&0x1)) + +-static void to_PCM_16bit(NeAACDecHandle hDecoder, real_t **input, ++static void to_PCM_16bit(NeAACDecStruct* hDecoder, real_t **input, + uint8_t channels, uint16_t frame_len, + int16_t **sample_buffer) + { +@@ -152,7 +151,7 @@ + } + } + +-static void to_PCM_24bit(NeAACDecHandle hDecoder, real_t **input, ++static void to_PCM_24bit(NeAACDecStruct* hDecoder, real_t **input, + uint8_t channels, uint16_t frame_len, + int32_t **sample_buffer) + { +@@ -222,7 +221,7 @@ + } + } + +-static void to_PCM_32bit(NeAACDecHandle hDecoder, real_t **input, ++static void to_PCM_32bit(NeAACDecStruct* hDecoder, real_t **input, + uint8_t channels, uint16_t frame_len, + int32_t **sample_buffer) + { +@@ -292,7 +291,7 @@ + } + } + +-static void to_PCM_float(NeAACDecHandle hDecoder, real_t **input, ++static void to_PCM_float(NeAACDecStruct* hDecoder, real_t **input, + uint8_t channels, uint16_t frame_len, + float32_t **sample_buffer) + { +@@ -344,7 +343,7 @@ + } + } + +-static void to_PCM_double(NeAACDecHandle hDecoder, real_t **input, ++static void to_PCM_double(NeAACDecStruct* hDecoder, real_t **input, + uint8_t channels, uint16_t frame_len, + double **sample_buffer) + { +@@ -396,7 +395,7 @@ + } + } + +-void *output_to_PCM(NeAACDecHandle hDecoder, ++void *output_to_PCM(NeAACDecStruct* hDecoder, + real_t **input, void *sample_buffer, uint8_t channels, + uint16_t frame_len, uint8_t format) + { +@@ -466,7 +465,7 @@ + } + } + +-void* output_to_PCM(NeAACDecHandle hDecoder, ++void* output_to_PCM(NeAACDecStruct* hDecoder, + real_t **input, void *sample_buffer, uint8_t channels, + uint16_t frame_len, uint8_t format) + { +diff -urNad faad2-svn~/libfaad/output.h faad2-svn/libfaad/output.h +--- faad2-svn~/libfaad/output.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/output.h 2007-11-28 23:29:27.000000000 +0000 +@@ -35,7 +35,7 @@ + extern "C" { + #endif + +-void* output_to_PCM(NeAACDecHandle hDecoder, ++void* output_to_PCM(NeAACDecStruct* hDecoder, + real_t **input, + void *samplebuffer, + uint8_t channels, +diff -urNad faad2-svn~/libfaad/specrec.c faad2-svn/libfaad/specrec.c +--- faad2-svn~/libfaad/specrec.c 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/specrec.c 2007-11-28 23:29:27.000000000 +0000 +@@ -58,7 +58,7 @@ + + + /* static function declarations */ +-static uint8_t quant_to_spec(NeAACDecHandle hDecoder, ++static uint8_t quant_to_spec(NeAACDecStruct* hDecoder, + ic_stream *ics, int16_t *quant_data, + real_t *spec_data, uint16_t frame_len); + +@@ -300,10 +300,9 @@ + in section named section. This offset depends on window_sequence and + scale_factor_grouping and is needed to decode the spectral_data(). + */ +-uint8_t window_grouping_info(NeAACDecHandle hDecoder, ic_stream *ics) ++uint8_t window_grouping_info(NeAACDecStruct* hDecoder, ic_stream *ics) + { + uint8_t i, g; +- + uint8_t sf_index = hDecoder->sf_index; + + switch (ics->window_sequence) { +@@ -546,7 +545,7 @@ + - Within a scalefactor window band, the coefficients are in ascending + spectral order. + */ +-static uint8_t quant_to_spec(NeAACDecHandle hDecoder, ++static uint8_t quant_to_spec(NeAACDecStruct* hDecoder, + ic_stream *ics, int16_t *quant_data, + real_t *spec_data, uint16_t frame_len) + { +@@ -680,7 +679,7 @@ + return error; + } + +-static uint8_t allocate_single_channel(NeAACDecHandle hDecoder, uint8_t channel, ++static uint8_t allocate_single_channel(NeAACDecStruct* hDecoder, uint8_t channel, + uint8_t output_channels) + { + int mul = 1; +@@ -781,7 +780,7 @@ + return 0; + } + +-static uint8_t allocate_channel_pair(NeAACDecHandle hDecoder, ++static uint8_t allocate_channel_pair(NeAACDecStruct* hDecoder, + uint8_t channel, uint8_t paired_channel) + { + int mul = 1; +@@ -886,7 +885,7 @@ + return 0; + } + +-uint8_t reconstruct_single_channel(NeAACDecHandle hDecoder, ic_stream *ics, ++uint8_t reconstruct_single_channel(NeAACDecStruct* hDecoder, ic_stream *ics, + element *sce, int16_t *spec_data) + { + uint8_t retval; +@@ -1096,7 +1095,7 @@ + return 0; + } + +-uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2, ++uint8_t reconstruct_channel_pair(NeAACDecStruct* hDecoder, ic_stream *ics1, ic_stream *ics2, + element *cpe, int16_t *spec_data1, int16_t *spec_data2) + { + uint8_t retval; +@@ -1106,6 +1105,7 @@ + #ifdef PROFILE + int64_t count = faad_get_ts(); + #endif ++ + if (hDecoder->element_alloced[hDecoder->fr_ch_ele] == 0) + { + retval = allocate_channel_pair(hDecoder, cpe->channel, (uint8_t)cpe->paired_channel); +diff -urNad faad2-svn~/libfaad/specrec.h faad2-svn/libfaad/specrec.h +--- faad2-svn~/libfaad/specrec.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/specrec.h 2007-11-28 23:29:27.000000000 +0000 +@@ -37,10 +37,10 @@ + + #include "syntax.h" + +-uint8_t window_grouping_info(NeAACDecHandle hDecoder, ic_stream *ics); +-uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2, ++uint8_t window_grouping_info(NeAACDecStruct* hDecoder, ic_stream *ics); ++uint8_t reconstruct_channel_pair(NeAACDecStruct* hDecoder, ic_stream *ics1, ic_stream *ics2, + element *cpe, int16_t *spec_data1, int16_t *spec_data2); +-uint8_t reconstruct_single_channel(NeAACDecHandle hDecoder, ic_stream *ics, element *sce, ++uint8_t reconstruct_single_channel(NeAACDecStruct* hDecoder, ic_stream *ics, element *sce, + int16_t *spec_data); + + #ifdef __cplusplus +diff -urNad faad2-svn~/libfaad/structs.h faad2-svn/libfaad/structs.h +--- faad2-svn~/libfaad/structs.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/structs.h 2007-11-28 23:29:27.000000000 +0000 +@@ -312,67 +312,6 @@ + ic_stream ics2; + } element; /* syntax element (SCE, CPE, LFE) */ + +-typedef struct mp4AudioSpecificConfig +-{ +- /* Audio Specific Info */ +- /*uint8_t*/ unsigned char objectTypeIndex; +- /*uint8_t*/ unsigned char samplingFrequencyIndex; +- /*uint32_t*/ unsigned long samplingFrequency; +- /*uint8_t*/ unsigned char channelsConfiguration; +- +- /* GA Specific Info */ +- /*uint8_t*/ unsigned char frameLengthFlag; +- /*uint8_t*/ unsigned char dependsOnCoreCoder; +- /*uint16_t*/ unsigned short coreCoderDelay; +- /*uint8_t*/ unsigned char extensionFlag; +- /*uint8_t*/ unsigned char aacSectionDataResilienceFlag; +- /*uint8_t*/ unsigned char aacScalefactorDataResilienceFlag; +- /*uint8_t*/ unsigned char aacSpectralDataResilienceFlag; +- /*uint8_t*/ unsigned char epConfig; +- +- /*uint8_t*/ char sbr_present_flag; +- /*uint8_t*/ char forceUpSampling; +- /*uint8_t*/ char downSampledSBR; +-} mp4AudioSpecificConfig; +- +-typedef struct NeAACDecConfiguration +-{ +- /*uint8_t*/ unsigned char defObjectType; +- /*uint32_t*/ unsigned long defSampleRate; +- /*uint8_t*/ unsigned char outputFormat; +- /*uint8_t*/ unsigned char downMatrix; +- /*uint8_t*/ unsigned char useOldADTSFormat; +- /*uint8_t*/ unsigned char dontUpSampleImplicitSBR; +-} NeAACDecConfiguration, *NeAACDecConfigurationPtr; +- +-typedef struct NeAACDecFrameInfo +-{ +- /*uint32_t*/ unsigned long bytesconsumed; +- /*uint32_t*/ unsigned long samples; +- /*uint8_t*/ unsigned char channels; +- /*uint8_t*/ unsigned char error; +- /*uint32_t*/ unsigned long samplerate; +- +- /* SBR: 0: off, 1: on; normal, 2: on; downsampled */ +- /*uint8_t*/ unsigned char sbr; +- +- /* MPEG-4 ObjectType */ +- /*uint8_t*/ unsigned char object_type; +- +- /* AAC header type; MP4 will be signalled as RAW also */ +- /*uint8_t*/ unsigned char header_type; +- +- /* multichannel configuration */ +- /*uint8_t*/ unsigned char num_front_channels; +- /*uint8_t*/ unsigned char num_side_channels; +- /*uint8_t*/ unsigned char num_back_channels; +- /*uint8_t*/ unsigned char num_lfe_channels; +- /*uint8_t*/ unsigned char channel_position[MAX_CHANNELS]; +- +- /* PS: 0: off, 1: on */ +- /*uint8_t*/ unsigned char ps; +-} NeAACDecFrameInfo; +- + typedef struct + { + uint8_t adts_header_present; +@@ -477,9 +416,7 @@ + int64_t requant_cycles; + #endif + const unsigned char *cmes; +-} NeAACDecStruct, *NeAACDecHandle; +- +- ++} NeAACDecStruct; + + #ifdef __cplusplus + } +diff -urNad faad2-svn~/libfaad/syntax.c faad2-svn/libfaad/syntax.c +--- faad2-svn~/libfaad/syntax.c 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/syntax.c 2007-11-28 23:29:27.000000000 +0000 +@@ -38,7 +38,6 @@ + #include + #include + +-#include "decoder.h" + #include "syntax.h" + #include "specrec.h" + #include "huffman.h" +@@ -55,51 +54,51 @@ + + + /* static function declarations */ +-static void decode_sce_lfe(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, ++static void decode_sce_lfe(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, + uint8_t id_syn_ele); +-static void decode_cpe(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, ++static void decode_cpe(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, + uint8_t id_syn_ele); +-static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld, ++static uint8_t single_lfe_channel_element(NeAACDecStruct* hDecoder, bitfile *ld, + uint8_t channel, uint8_t *tag); +-static uint8_t channel_pair_element(NeAACDecHandle hDecoder, bitfile *ld, ++static uint8_t channel_pair_element(NeAACDecStruct* hDecoder, bitfile *ld, + uint8_t channel, uint8_t *tag); + #ifdef COUPLING_DEC +-static uint8_t coupling_channel_element(NeAACDecHandle hDecoder, bitfile *ld); ++static uint8_t coupling_channel_element(NeAACDecStruct* hDecoder, bitfile *ld); + #endif +-static uint16_t data_stream_element(NeAACDecHandle hDecoder, bitfile *ld); ++static uint16_t data_stream_element(NeAACDecStruct* hDecoder, bitfile *ld); + static uint8_t program_config_element(program_config *pce, bitfile *ld); +-static uint8_t fill_element(NeAACDecHandle hDecoder, bitfile *ld, drc_info *drc ++static uint8_t fill_element(NeAACDecStruct* hDecoder, bitfile *ld, drc_info *drc + #ifdef SBR_DEC + ,uint8_t sbr_ele + #endif + ); +-static uint8_t individual_channel_stream(NeAACDecHandle hDecoder, element *ele, ++static uint8_t individual_channel_stream(NeAACDecStruct* hDecoder, element *ele, + bitfile *ld, ic_stream *ics, uint8_t scal_flag, + int16_t *spec_data); +-static uint8_t ics_info(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, ++static uint8_t ics_info(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld, + uint8_t common_window); +-static uint8_t section_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld); +-static uint8_t scale_factor_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld); ++static uint8_t section_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld); ++static uint8_t scale_factor_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld); + #ifdef SSR_DEC + static void gain_control_data(bitfile *ld, ic_stream *ics); + #endif +-static uint8_t spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, ++static uint8_t spectral_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld, + int16_t *spectral_data); + static uint16_t extension_payload(bitfile *ld, drc_info *drc, uint16_t count); + static uint8_t pulse_data(ic_stream *ics, pulse_info *pul, bitfile *ld); + static void tns_data(ic_stream *ics, tns_info *tns, bitfile *ld); + #ifdef LTP_DEC +-static uint8_t ltp_data(NeAACDecHandle hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld); ++static uint8_t ltp_data(NeAACDecStruct* hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld); + #endif + static uint8_t adts_fixed_header(adts_header *adts, bitfile *ld); + static void adts_variable_header(adts_header *adts, bitfile *ld); + static void adts_error_check(adts_header *adts, bitfile *ld); + static uint8_t dynamic_range_info(bitfile *ld, drc_info *drc); + static uint8_t excluded_channels(bitfile *ld, drc_info *drc); +-static uint8_t side_info(NeAACDecHandle hDecoder, element *ele, ++static uint8_t side_info(NeAACDecStruct* hDecoder, element *ele, + bitfile *ld, ic_stream *ics, uint8_t scal_flag); + #ifdef DRM +-static int8_t DRM_aac_scalable_main_header(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2, ++static int8_t DRM_aac_scalable_main_header(NeAACDecStruct* hDecoder, ic_stream *ics1, ic_stream *ics2, + bitfile *ld, uint8_t this_layer_stereo); + #endif + +@@ -321,7 +320,7 @@ + return 0; + } + +-static void decode_sce_lfe(NeAACDecHandle hDecoder, ++static void decode_sce_lfe(NeAACDecStruct* hDecoder, + NeAACDecFrameInfo *hInfo, bitfile *ld, + uint8_t id_syn_ele) + { +@@ -366,7 +365,7 @@ + hDecoder->fr_ch_ele++; + } + +-static void decode_cpe(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, ++static void decode_cpe(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, + uint8_t id_syn_ele) + { + uint8_t channels = hDecoder->fr_channels; +@@ -414,7 +413,7 @@ + hDecoder->fr_ch_ele++; + } + +-void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, ++void raw_data_block(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, + bitfile *ld, program_config *pce, drc_info *drc) + { + uint8_t id_syn_ele; +@@ -584,7 +583,7 @@ + + /* Table 4.4.4 and */ + /* Table 4.4.9 */ +-static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld, ++static uint8_t single_lfe_channel_element(NeAACDecStruct* hDecoder, bitfile *ld, + uint8_t channel, uint8_t *tag) + { + uint8_t retval = 0; +@@ -631,7 +630,7 @@ + } + + /* Table 4.4.5 */ +-static uint8_t channel_pair_element(NeAACDecHandle hDecoder, bitfile *ld, ++static uint8_t channel_pair_element(NeAACDecStruct* hDecoder, bitfile *ld, + uint8_t channels, uint8_t *tag) + { + ALIGN int16_t spec_data1[1024] = {0}; +@@ -761,7 +760,7 @@ + } + + /* Table 4.4.6 */ +-static uint8_t ics_info(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, ++static uint8_t ics_info(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld, + uint8_t common_window) + { + uint8_t retval = 0; +@@ -912,7 +911,7 @@ + + #ifdef COUPLING_DEC + /* Table 4.4.8: Currently just for skipping the bits... */ +-static uint8_t coupling_channel_element(NeAACDecHandle hDecoder, bitfile *ld) ++static uint8_t coupling_channel_element(NeAACDecStruct* hDecoder, bitfile *ld) + { + uint8_t c, result = 0; + uint8_t ind_sw_cce_flag = 0; +@@ -1005,7 +1004,7 @@ + #endif + + /* Table 4.4.10 */ +-static uint16_t data_stream_element(NeAACDecHandle hDecoder, bitfile *ld) ++static uint16_t data_stream_element(NeAACDecStruct* hDecoder, bitfile *ld) + { + uint8_t byte_aligned; + uint16_t i, count; +@@ -1034,7 +1033,7 @@ + } + + /* Table 4.4.11 */ +-static uint8_t fill_element(NeAACDecHandle hDecoder, bitfile *ld, drc_info *drc ++static uint8_t fill_element(NeAACDecStruct* hDecoder, bitfile *ld, drc_info *drc + #ifdef SBR_DEC + ,uint8_t sbr_ele + #endif +@@ -1213,7 +1212,7 @@ + + #ifdef DRM + /* Table 4.4.13 ASME */ +-void DRM_aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, ++void DRM_aac_scalable_main_element(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, + bitfile *ld, program_config *pce, drc_info *drc) + { + uint8_t retval = 0; +@@ -1423,7 +1422,7 @@ + } + + /* Table 4.4.15 */ +-static int8_t DRM_aac_scalable_main_header(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2, ++static int8_t DRM_aac_scalable_main_header(NeAACDecStruct* hDecoder, ic_stream *ics1, ic_stream *ics2, + bitfile *ld, uint8_t this_layer_stereo) + { + uint8_t retval = 0; +@@ -1491,7 +1490,7 @@ + } + #endif + +-static uint8_t side_info(NeAACDecHandle hDecoder, element *ele, ++static uint8_t side_info(NeAACDecStruct* hDecoder, element *ele, + bitfile *ld, ic_stream *ics, uint8_t scal_flag) + { + uint8_t result; +@@ -1584,7 +1583,7 @@ + } + + /* Table 4.4.24 */ +-static uint8_t individual_channel_stream(NeAACDecHandle hDecoder, element *ele, ++static uint8_t individual_channel_stream(NeAACDecStruct* hDecoder, element *ele, + bitfile *ld, ic_stream *ics, uint8_t scal_flag, + int16_t *spec_data) + { +@@ -1644,7 +1643,7 @@ + } + + /* Table 4.4.25 */ +-static uint8_t section_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld) ++static uint8_t section_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld) + { + uint8_t g; + uint8_t sect_esc_val, sect_bits; +@@ -1891,7 +1890,7 @@ + } + + /* Table 4.4.26 */ +-static uint8_t scale_factor_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld) ++static uint8_t scale_factor_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld) + { + uint8_t ret = 0; + #ifdef PROFILE +@@ -1999,7 +1998,7 @@ + + #ifdef LTP_DEC + /* Table 4.4.28 */ +-static uint8_t ltp_data(NeAACDecHandle hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld) ++static uint8_t ltp_data(NeAACDecStruct* hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld) + { + uint8_t sfb, w; + +@@ -2062,7 +2061,7 @@ + #endif + + /* Table 4.4.29 */ +-static uint8_t spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, ++static uint8_t spectral_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld, + int16_t *spectral_data) + { + int8_t i; +diff -urNad faad2-svn~/libfaad/syntax.h faad2-svn/libfaad/syntax.h +--- faad2-svn~/libfaad/syntax.h 2007-11-28 23:28:14.000000000 +0000 ++++ faad2-svn/libfaad/syntax.h 2007-11-28 23:29:27.000000000 +0000 +@@ -35,7 +35,6 @@ + extern "C" { + #endif + +-#include "decoder.h" + #include "bits.h" + + #define MAIN 1 +@@ -113,12 +112,12 @@ + + uint8_t adts_frame(adts_header *adts, bitfile *ld); + void get_adif_header(adif_header *adif, bitfile *ld); +-void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, ++void raw_data_block(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, + bitfile *ld, program_config *pce, drc_info *drc); +-uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, ++uint8_t reordered_spectral_data(NeAACDecStruct* hDecoder, ic_stream *ics, bitfile *ld, + int16_t *spectral_data); + #ifdef DRM +-void DRM_aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, ++void DRM_aac_scalable_main_element(NeAACDecStruct* hDecoder, NeAACDecFrameInfo *hInfo, + bitfile *ld, program_config *pce, drc_info *drc); + #endif + diff --git a/media/libs/faad2/faad2.mkbuild b/media/libs/faad2/faad2.mkbuild new file mode 100644 index 0000000..a369a1d --- /dev/null +++ b/media/libs/faad2/faad2.mkbuild @@ -0,0 +1,102 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz" + +# +# Other configure arguments +[[OTHER CONFIGURE ARGS]]="--with-docdir=/usr/doc/$PKG_NAME-$VERSION" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/faad2" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +faad2: faad2 (faad2 is a free Advanced Audio Decoder) +faad2: +faad2: Faad2 is a free Advanced Audio Decoder. +faad2: +faad2: +faad2: +faad2: +faad2: +faad2: +faad2: http://www.audiocoding.com/ +faad2: +# + # Configure ++autoreconf -vif +#p< + diff --git a/media/libs/glitz/glitz.mkbuild b/media/libs/glitz/glitz.mkbuild new file mode 100644 index 0000000..827441c --- /dev/null +++ b/media/libs/glitz/glitz.mkbuild @@ -0,0 +1,92 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://cairographics.org/snapshots/glitz-0.5.6.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog NEWS README TODO" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/glitz" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +glitz: glitz +glitz: +glitz: Glitz is an OpenGL image compositing library. Glitz provides +glitz: Porter/Duff compositing of images and implicit mask generation for +glitz: geometric primitives including trapezoids, triangles, and rectangles. +glitz: +glitz: +glitz: +glitz: +glitz: +glitz: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>configure + +./configure --prefix="$PREFIX" --libdir="$LIBDIR" || exit $ERROR_CONF + +#slackdesc +gst-ffmpeg: gst-ffmpeg (ffmpeg plugin for gstreamer) +gst-ffmpeg: +gst-ffmpeg: FFmpeg plugin for gstreamer. +gst-ffmpeg: +gst-ffmpeg: +gst-ffmpeg: +gst-ffmpeg: +gst-ffmpeg: +gst-ffmpeg: +gst-ffmpeg: http://gstreamer.freedesktop.org/ +gst-ffmpeg: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gst-plugins-bad: gst-plugins-bad (plugins for gstreamer) +gst-plugins-bad: +gst-plugins-bad: Free Software plugins for gstreamer with problems +gst-plugins-bad: related to quality. +gst-plugins-bad: +gst-plugins-bad: +gst-plugins-bad: +gst-plugins-bad: +gst-plugins-bad: +gst-plugins-bad: http://gstreamer.freedesktop.org/ +gst-plugins-bad: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gst-plugins-base: gst-plugins-base (plugins for gstreamer) +gst-plugins-base: +gst-plugins-base: Base plugins for gstreamer, you need this to get gstreamer +gst-plugins-base: working. +gst-plugins-base: +gst-plugins-base: +gst-plugins-base: +gst-plugins-base: +gst-plugins-base: +gst-plugins-base: http://gstreamer.freedesktop.org/ +gst-plugins-base: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gst-plugins-good: gst-plugins-good (plugins for gstreamer) +gst-plugins-good: +gst-plugins-good: Free Software plugins for gstreamer with no problems +gst-plugins-good: related to patents. +gst-plugins-good: +gst-plugins-good: +gst-plugins-good: +gst-plugins-good: +gst-plugins-good: +gst-plugins-good: http://gstreamer.freedesktop.org/ +gst-plugins-good: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gst-plugins-ugly: gst-plugins-ugly (plugins for gstreamer) +gst-plugins-ugly: +gst-plugins-ugly: Free Software plugins for gstreamer with problems +gst-plugins-ugly: related to patents. +gst-plugins-ugly: +gst-plugins-ugly: +gst-plugins-ugly: +gst-plugins-ugly: +gst-plugins-ugly: +gst-plugins-ugly: http://gstreamer.freedesktop.org/ +gst-plugins-ugly: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +gstreamer: gstreamer (gstreamer is a multimedia library) +gstreamer: +gstreamer: GStreamer is a library for constructing of graphs of media-handling +gstreamer: components. The use cases it covers range from simple Ogg/Vorbis +gstreamer: playback, audio/video streaming to complex audio (mixing) and video +gstreamer: (non-linear editing) processing. +gstreamer: +gstreamer: +gstreamer: +gstreamer: http://gstreamer.freedesktop.org/ +gstreamer: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +ilmbase: ilmbase +ilmbase: +ilmbase: OpenEXR ILM Base libraries +ilmbase: +ilmbase: +ilmbase: +ilmbase: +ilmbase: +ilmbase: +ilmbase: +ilmbase: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +imlib2: imlib2 by Slack.Sarava +imlib2: +imlib2: This is the Imlib 2 library - a library that does image file loading +imlib2: and saving as well as rendering, manipulation, arbitrary polygon +imlib2: support, etc. +imlib2: +imlib2: +imlib2: +imlib2: by avs +imlib2: +imlib2: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +ladspa: ladspa (linux audio developer's plugin API) +ladspa: +ladspa: The Linux Audio Developer's Simple Plugin API (LADSPA) attempts to +ladspa: give programmers the ability to write simple 'plugin' audio +ladspa: processors in C/C++ and link them dynamically against a range of +ladspa: host applications. +ladspa: +ladspa: +ladspa: +ladspa: +ladspa: +#configure +# Configure +cd src +export PATH="$PATH:/usr/X11R6/bin/" # for mkdirhier + +sed -e 's/\/usr\/local\/lib\/ladspa\//\/usr\/lib\/ladspa\//' \ + -e 's/\/usr\/local\/bin\//\/usr\/bin\//' makefile > makefile.tmp || exit $ERROR_CONF + +echo "PREFIX = $PKG" >> makefile.tmp || exit $ERROR_CONF + +sed -e 's/$(INSTALL_PLUGINS_DIR)/$(PREFIX)\/$(INSTALL_PLUGINS_DIR)/g' \ + -e 's/$(INSTALL_INCLUDE_DIR)/$(PREFIX)\/$(INSTALL_INCLUDE_DIR)/g' \ + -e 's/$(INSTALL_BINARY_DIR)/$(PREFIX)\/$(INSTALL_BINARY_DIR)/g' makefile.tmp > makefile || exit $ERROR_CONF +#install_package +# Install +make install DESTDIR="$PKG" || exit $ERROR_INSTALL +cd .. +# on ++Sat, 10 Feb 2001 17:54:56 +0100. ++ ++It was downloaded from ++ ++ http://download.sourceforge.net/libdv/ ++ ++Upstream Authors: ++ Erik Walthinsen ++ Charles 'Buck' Krasic ++ ++Copyright: ++ ++ (c) 1999-2001 ++ Erik Walthinsen ++ Charles 'Buck' Krasic ++ ++ Individual files also contain material subject to the following ++ copyrights: ++ ++ (c) 2000-2004 James Bowman ++ (c) 2001-2004 Peter Schlaile, Dan Dennedy ++ (c) 1999 Aaron Holtzman ++ (c) 2001 Daniel Maas ++ (c) 1999,2000 Sebastien Rougeaux ++ (c) 2000 Oregon Graduate Institute of Science & Technology ++ ++ All program source code is distributed under the terms of the ++ GNU Lesser General Public License, Version 2.1 or later, ++ see /usr/share/common-licenses/LGPL-2.1. ++ ++ The man pages are distributed under the terms of the GNU General ++ Public License, Version 2 or later, see ++ /usr/share/common-licenses/GPL. +--- libdv-0.104.orig/debian/libdv-bin.install ++++ libdv-0.104/debian/libdv-bin.install +@@ -0,0 +1,2 @@ ++/usr/bin/* ++/usr/share/man/*/* +--- libdv-0.104.orig/debian/libdv-bin.links ++++ libdv-0.104/debian/libdv-bin.links +@@ -0,0 +1 @@ ++usr/share/doc/libdv4 usr/share/doc/libdv-bin +--- libdv-0.104.orig/debian/libdv-bin.manpages ++++ libdv-0.104/debian/libdv-bin.manpages +@@ -0,0 +1,4 @@ ++playdv/playdv.1 ++encodedv/encodedv.1 ++encodedv/dvconnect.1 ++encodedv/dubdv.1 +--- libdv-0.104.orig/debian/libdv4-dev.NEWS ++++ libdv-0.104/debian/libdv4-dev.NEWS +@@ -0,0 +1,15 @@ ++libdv (0.103-1) unstable; urgency=low ++ ++ Earlier versions of libdv had deprecated the use of header file dv1394.h ++ provided here. Starting with version 0.103, the libdv developers have ++ removed the header file entirely from their package. Compiling software ++ that still includes the deprecated header shall fail now, therefore. ++ ++ Note that the dv1394.h has never been part of the libdv programming interface ++ and has been provided as a (historical) courtesy only. dv1394.h defines ++ solely a kernel interface. Therefore, in order to compile for a certain ++ kernel version, the kernel headers, and only the kernel headers contain the ++ authoritative header file. All application software should be modified ++ accordingly. ++ ++ -- Daniel Kobras Thu, 15 Jul 2004 17:52:38 +0200 +--- libdv-0.104.orig/debian/libdv4-dev.install ++++ libdv-0.104/debian/libdv4-dev.install +@@ -0,0 +1,5 @@ ++/usr/lib/*.a ++/usr/lib/*.la ++/usr/lib/*.so ++/usr/lib/pkgconfig/*.pc ++/usr/include/* +--- libdv-0.104.orig/debian/libdv4.docs ++++ libdv-0.104/debian/libdv4.docs +@@ -0,0 +1,6 @@ ++AUTHORS ++NEWS ++README ++README.encoder ++README.dvconnect ++TODO +--- libdv-0.104.orig/debian/libdv4.install ++++ libdv-0.104/debian/libdv4.install +@@ -0,0 +1 @@ ++/usr/lib/*.so.* +--- libdv-0.104.orig/debian/rules ++++ libdv-0.104/debian/rules +@@ -0,0 +1,122 @@ ++#!/usr/bin/make -f ++# Sample debian/rules that uses debhelper. ++# GNU copyright 1997 to 1999 by Joey Hess. ++ ++# Uncomment this to turn on verbose mode. ++#export DH_VERBOSE=1 ++ ++# This is the debhelper compatability version to use. ++export DH_COMPAT=4 ++ ++include /usr/share/dpatch/dpatch.make ++ ++# shared library versions, option 1 ++#version=2.0.5 ++#major=2 ++# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so ++#version=`ls libdv/.libs/lib*.so.* | \ ++# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` ++#major=`ls libdv/.libs/lib*.so.* | \ ++# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` ++ ++export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ++export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ++ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) ++ libdv_confflags += --build $(DEB_HOST_GNU_TYPE) ++else ++ libdv_confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) ++endif ++ ++ ++CFLAGS ?= -Wall -g ++ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) ++CFLAGS += -O0 ++else ++CFLAGS += -O2 ++endif ++ ++configure: configure-stamp ++configure-stamp: ++ dh_testdir ++ # Make sure we use the latest autotools helpers. ++ if test -f config.sub; then \ ++ mv config.sub config.sub.debsave; \ ++ fi ++ if test -f config.guess; then \ ++ mv config.guess config.guess.debsave; \ ++ fi ++ ++ ln -sf /usr/share/misc/config.sub . ++ ln -sf /usr/share/misc/config.guess . ++ ++ CFLAGS="$(CFLAGS)" ./configure $(libdv_confflags) \ ++ --prefix=/usr --mandir=\$${prefix}/share/man \ ++ --infodir=\$${prefix}/share/info --enable-sdl ++ ++ touch configure-stamp ++ ++build: patch-stamp configure-stamp build-stamp ++build-stamp: ++ dh_testdir ++ ++ $(MAKE) ++ ++ touch build-stamp ++ ++clean: do-clean unpatch ++do-clean: ++ dh_testdir ++ dh_testroot ++ rm -f build-stamp configure-stamp ++ ++ -$(MAKE) distclean ++ ++ if test -L config.sub -a -e config.sub.debsave; then \ ++ rm config.sub; \ ++ if test -e config.sub.debsave; then \ ++ mv config.sub.debsave config.sub; \ ++ fi; \ ++ fi ++ if test -L config.guess -a -e config.guess.debsave; then \ ++ rm config.guess; \ ++ if test -e config.guess.debsave; then \ ++ mv config.guess.debsave config.guess; \ ++ fi; \ ++ fi ++ ++ dh_clean ++ ++install: build ++ dh_testdir ++ dh_testroot ++ dh_clean -k ++ dh_installdirs ++ ++ $(MAKE) install DESTDIR=`pwd`/debian/tmp/ ++ ++ ++# Build architecture-independent files here. ++binary-indep: build install ++# We have nothing to do by default. ++ ++# Build architecture-dependent files here. ++binary-arch: build install ++ dh_testdir ++ dh_testroot ++ dh_install -A --sourcedir=debian/tmp # --list-missing ++ dh_installman ++ dh_link -A ++ dh_installdocs -plibdv4 -plibdv4-dev ++ dh_installchangelogs ChangeLog ++ dh_strip ++ dh_compress ++ dh_fixperms ++ dh_makeshlibs ++ dh_installdeb ++ dh_shlibdeps -L libdv4 -l debian/libdv4/usr/lib ++ dh_gencontrol ++ dh_md5sums ++ dh_builddeb ++ ++binary: binary-indep binary-arch ++.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch do-clean +--- libdv-0.104.orig/debian/changelog ++++ libdv-0.104/debian/changelog +@@ -0,0 +1,315 @@ ++libdv (0.104-1ubuntu2) dapper; urgency=low ++ ++ * Remove build-dependency on gcc-3.4 [amd64], not used anymore. ++ ++ -- Matthias Klose Thu, 16 Feb 2006 12:37:12 +0000 ++ ++libdv (0.104-1ubuntu1) dapper; urgency=low ++ ++ * Resynchronise with Debian. ++ ++ -- Tollef Fog Heen Mon, 14 Nov 2005 17:00:34 +0100 ++ ++libdv (0.104-1) unstable; urgency=low ++ ++ * New upstream version. Closes: #298366 ++ * Picks up new libsdl1.2 version to complete various library ++ transitions. Closes: #318237, #320882, #321549 ++ * Added patches: ++ + [01_changelog_update_CVS] New, from upstream CVS. ++ Add 0.104 changelog entry that is not part of the released 0.104 ++ tarball, so subsequent patches from upstream CVS can be applied ++ without modification. ++ + [10_amd64_linkage_fix_CVS] New, from upstream CVS. ++ Fix linker compatibility problems in amd64 assembly. ++ + [10_inline_fixes_CVS] New, from upstream CVS. ++ Fix build problems when compiler does not honour the inline hint. ++ + [20_no_exec_stack_CVS] New, from upstream CVS. ++ Add linker magic so assembly functions do no longer require an ++ executable stack. ++ * Updated patches: ++ + [10_zap_config_h] ++ Extend to take care of amd64 optimisations. ++ * debian/control: Complies with standards version 3.6.2. ++ * debian/rules: Export overridden CFLAGS. Closes: #306488 ++ ++ -- Daniel Kobras Wed, 17 Aug 2005 17:23:18 +0200 ++ ++libdv (0.103-2ubuntu1) breezy; urgency=low ++ ++ * debian/control: added gcc-3.4 to build-depends for compiling issues on ++ amd64. ++ ++ -- Stephan Hermann Thu, 25 Aug 2005 08:34:55 +0200 ++ ++libdv (0.103-2build1) breezy; urgency=low ++ ++ * Rebuild for slang2 transition ++ ++ -- Stephan Hermann Wed, 24 Aug 2005 20:56:34 +0200 ++ ++libdv (0.103-2) unstable; urgency=low ++ ++ * debian/rules: Provide separate doc directory for libdv4-dev. ++ * debian/libdv4-dev.links: No longer symlink doc dir to the one ++ from libdv4. ++ * debian/NEWS: Only install into libdv4-dev. Closes: #259694 ++ ++ -- Daniel Kobras Mon, 19 Jul 2004 12:19:44 +0200 ++ ++libdv (0.103-1) unstable; urgency=low ++ ++ * New upstream version. ++ * Removed patches: ++ + [10_dvconnect_disable_swap] Merged upstream. ++ + [10_no_gtk_deps] Merged upstream. ++ + [10_fix_wide_format] Merged upstream. ++ * debian/NEWS: Notify about removal of previously deprecated header ++ file dv1394.h. ++ * debian/control: Adjust build dependencies following the xlibs split. ++ ++ -- Daniel Kobras Thu, 15 Jul 2004 17:53:16 +0200 ++ ++libdv (0.102-4) unstable; urgency=low ++ ++ * Added patches: ++ + [10_fix_wide_format] New. ++ Fix detection of 16:9 (wide) format in non-SMPTE streams. ++ Closes: #248660 ++ ++ -- Daniel Kobras Thu, 13 May 2004 17:51:59 +0200 ++ ++libdv (0.102-3) unstable; urgency=low ++ ++ * Added patches: ++ + [10_no_gtk_deps] New. ++ Remove glib and gtk dependencies from the pkgconfig file. ++ Closes: #245037 ++ ++ -- Daniel Kobras Wed, 21 Apr 2004 09:51:55 +0200 ++ ++libdv (0.102-2) unstable; urgency=low ++ ++ * Upload to unstable. ++ ++ -- Daniel Kobras Tue, 20 Apr 2004 09:34:20 +0200 ++ ++libdv (0.102-1) experimental; urgency=low ++ ++ * New upstream version. ++ + Bumps library soname because of binary incompatibility. Still ++ source-level compatible, though. ++ + New API functions dv_format_letterbox(), and dv_is_normal_speed(). ++ * debian/*: Rename library packages libdv2 -> libdv4, and ++ libdv2-dev -> libdv4-dev, following the soname change. ++ * debian/rules: Remove shlibs version as we're changing the package name ++ anyway. ++ ++ -- Daniel Kobras Sun, 28 Mar 2004 23:52:01 +0200 ++ ++libdv (0.101-1) unstable; urgency=low ++ ++ * New upstream version. ++ * Added patches: ++ + [10_zap_config_h] New. ++ Remove dependency of dv_types.h on config.h. Replace with standard ++ guesses that will do for the scope of the Debian package. ++ Closes: #199878 ++ + [11_move_config_h_to_apps] New. ++ As a consequence of the above patch, a couple of source files now need ++ to include config.h themselves. ++ + [10_dvconnect_disable_swap] New. ++ In dvconnect, keep all pages in resident memory if possible because ++ swapping kills performance. Closes: #222498 ++ * debian/control: Remove leading "A" from short description. ++ * debian/control: Bump standards version. ++ * debian/control: Build depend on dpatch. ++ * debian/copyright: Updated copyright assignments. ++ * debian/libdv-bin.manpages: dvconnect.1 now available upstream, new man ++ page dubdv.1. ++ * debian/NEWS: Warn about dv1394.h update. ++ * debian/rules: Bump shlibs to >= 0.101 as this version introduces new ++ API functions. ++ * debian/rules: Convert build system to dpatch. ++ * debian/rules: Improved config.guess/config.sub backup logic. ++ ++ -- Daniel Kobras Tue, 20 Jan 2004 00:13:07 +0100 ++ ++libdv (0.99-3) unstable; urgency=low ++ ++ * debian/control: Oops. Priority for -dev and -bin package back to extra. ++ ++ -- Daniel Kobras Sun, 13 Apr 2003 15:24:02 +0200 ++ ++libdv (0.99-2) unstable; urgency=low ++ ++ * debian/control: Adjust priority to optional. Build depend on file. ++ * configure: Change deplibs check to pass_all on mips and mipsel. ++ Closes: #188682. ++ ++ -- Daniel Kobras Sun, 13 Apr 2003 14:25:31 +0200 ++ ++libdv (0.99-1) unstable; urgency=low ++ ++ * New upstream version ++ * libdv/audio.c: Fix typo in audio emphasis handling. [From upstream CVS] ++ * libdv/enc_output.c: Fix aaux header in encoder output. [From upstream CVS] ++ * debian/rules: Add versioned shlibs dependency because of new audio ++ sample calculator. ++ * debian/rules: Drop debug from DEB_BUILD_OPTIONS, support noopt. ++ * debian/rules: Supply configure with proper build target. ++ * debian/control: Remove full stop from short description. ++ * debian/control: Bump standards version. ++ * debian/control: libdv2-dev now lives in section libdevel. ++ * debian/*: New binary dvconnect. ++ * debian/dvconnect.1: Quick man page for dvconnect. ++ ++ -- Daniel Kobras Tue, 1 Apr 2003 16:58:18 +0200 ++ ++libdv (0.98-6) unstable; urgency=low ++ ++ * Namespace cleanup: ++ + libdv/*.c: Mark a batch of local symbols as static. ++ + libdv/*.[hcS]: Prefix intra-lib symbols with _dv_. ++ + encodedv/*.c: Honour internal name changes. ++ ++ -- Daniel Kobras Tue, 10 Dec 2002 01:34:29 +0100 ++ ++libdv (0.98-5) unstable; urgency=low ++ ++ * debian/control: Need to tighten debhelper build dep for dh_shlibdeps -L ++ flag. Closes: #170993 ++ * debian/control: Complies with standards version 3.5.8. ++ ++ -- Daniel Kobras Thu, 28 Nov 2002 10:02:20 +0100 ++ ++libdv (0.98-4) unstable; urgency=low ++ ++ * configure.ac, */Makefile.am: Do not push any lib into LIBS. Define ++ separate macros instead, and only add to the appropriate targets. ++ Closes: #167098 ++ * configure.ac: While libdv pulls a types from libpopt, it does not ++ reference any libpopt function. Adding -lpopt to REQUIRES_NOPKGCONFIG was ++ nonsense therefore--it's a purely optional feature. (The dependency on ++ libpopt-dev must be retained, however, because dv_types.h includes ++ popt.h.) ++ * Update auto-generated files because of the above. ++ ++ -- Daniel Kobras Wed, 30 Oct 2002 18:41:48 +0100 ++ ++libdv (0.98-3) unstable; urgency=low ++ ++ * ChangeLog, libdv/dv1394.h, libdv/encode.c, libdv/enc_audio_input.[hc]: ++ Sync with upstream CVS as of 2002-10-27. Solely adds a more complete fix ++ to the PAL overflow issue. The previously included change alone caused ++ occiasional crashes still. ++ * debian/README.Debian: YUY bug turned out to be an Xv bug really, that is ++ now fixed. Nothing to document any longer, file removed. ++ * debian/rules: Tell dh_shlibdeps to use generated libdv2 shlibs file. ++ ++ -- Daniel Kobras Sun, 27 Oct 2002 14:11:58 +0100 ++ ++libdv (0.98-2) unstable; urgency=low ++ ++ * libdv/dv_types.h: Fix potential overflow in audio buffer with PAL ++ frames. (From upstream CVS.) ++ ++ -- Daniel Kobras Sun, 11 Aug 2002 23:40:57 +0200 ++ ++libdv (0.98-1) unstable; urgency=low ++ ++ * New upstream release. ++ * Build a shared lib now--PIC issues seem to be resolved. ++ * debian/control: Split into separate packages for runtime lib, devel ++ files, and sample binaries. Name of the devel package now includes ++ major version. Provides libdv-dev for compatibility. Suggest to move ++ source package from devel to section graphics. ++ * debian/copyright: Updated copyright entries. Rename encode to ++ encodedv. ++ * debian/rules: Move to debhelper v4. Honour package split. Build a ++ shared lib now. Add support for 'debug' in DEB_BUILD_OPTIONS. ++ * debian/README.Debian: Document YUY bug on some big-endian hardware. ++ Remove obsolete comment about absence to shared libs. ++ ++ -- Daniel Kobras Thu, 1 Aug 2002 10:23:20 +0200 ++ ++libdv (0.9.5-3) unstable; urgency=low ++ ++ * libdv.pc.in: Remove obsolete dependencies on glib and gtk. Hack in ++ library dependency on popt. Closes: #149901 ++ * debian/control: Depend on libpopt-dev. ++ ++ -- Daniel Kobras Thu, 27 Jun 2002 11:02:56 +0200 ++ ++libdv (0.9.5-2) unstable; urgency=low ++ ++ * dv.c: Tell C version of dv_macroblock_yuv() about additional arguments ++ to YUY2 functions. ++ * idct_248.c: Fix types in C version of fixed_multiply(). ++ * enc_input.c: Purge remaining glib types from C versions of f2b() and ++ f2sb. ++ * All of the above fix compile errors on non-x86. Closes: #142770 ++ ++ -- Daniel Kobras Sun, 14 Apr 2002 14:05:05 +0200 ++ ++libdv (0.9.5-1) unstable; urgency=low ++ ++ * New upstream version. ++ This version is supposed to also work as a shared lib, but let's ++ keep the package static-only until woody is released, and we have ++ time to properly test this change. ++ ++ -- Daniel Kobras Sat, 13 Apr 2002 17:35:34 +0200 ++ ++libdv (0.9-2) unstable; urgency=low ++ ++ * Rebuild with libsdl1.2debian. (No code changes necessary.) ++ * Do not clobber upstream config.guess/config.sub. ++ * Configure with explicit host and build architecture as suggested in ++ autotools-dev README. ++ * Added note to package description explaining why there is no shared ++ version of the lib. ++ * Increased standards version. ++ ++ -- Daniel Kobras Wed, 17 Oct 2001 14:12:46 +0200 ++ ++libdv (0.9-1) unstable; urgency=low ++ ++ * New upstream version. ++ * Include auto-generated dependencies in control (doh!). Closes: #103016 ++ * Always use latest autotools helpers. ++ * Versioned build dependency on libsdl1.2-dev. Autobuilders would choke ++ on earlier versions. ++ ++ -- Daniel Kobras Tue, 31 Jul 2001 17:23:28 +0200 ++ ++libdv (0.8-2) unstable; urgency=low ++ ++ * Fix compilation in non-asm mode. Closes: #96804 ++ ++ -- Daniel Kobras Wed, 9 May 2001 09:20:49 +0200 ++ ++libdv (0.8-1) unstable; urgency=low ++ ++ * New upstream version. ++ ++ -- Daniel Kobras Fri, 4 May 2001 19:55:35 +0200 ++ ++libdv (0.7-2) unstable; urgency=low ++ ++ * Some MMX code in encode.c wasn't wrapped in ARCH_X86 conditionals. ++ Closes: #94521 ++ * Build with SDL support. ++ ++ -- Daniel Kobras Fri, 20 Apr 2001 09:42:53 +0200 ++ ++libdv (0.7-1) unstable; urgency=low ++ ++ * Initial Release. Closes: #89510 ++ * Renamed encode to encodedv. ++ * Added man pages for playdv and encodedv. ++ * Fixed bogus space in dv option string. ++ * Fixed missing time.h include in headers.c. ++ ++ -- Daniel Kobras Thu, 12 Apr 2001 20:48:56 +0200 ++ +--- libdv-0.104.orig/debian/patches/00list ++++ libdv-0.104/debian/patches/00list +@@ -0,0 +1,6 @@ ++01_changelog_update_CVS ++10_amd64_linkage_fix_CVS ++10_inline_fixes_CVS ++10_zap_config_h ++11_move_config_h_to_apps ++20_no_exec_stack_CVS +--- libdv-0.104.orig/debian/patches/10_zap_config_h.dpatch ++++ libdv-0.104/debian/patches/10_zap_config_h.dpatch +@@ -0,0 +1,103 @@ ++#!/bin/sh -e ++## 10_zap_config_h.dpatch by Daniel Kobras ++## ++## All lines beginning with `## DP:' are a description of the patch. ++## DP: dv_types.h is part of the libdv API that has to be included ++## DP: in application code. Therefore, it may not reference libdv's ++## DP: private config.h. ++## DP: Of course, config.h was included for a reason, and this patch ++## DP: tries to cover it up, because at least in the scope of the ++## DP: Debian package we can reliably guess at the contents of config.h. ++ ++if [ $# -lt 1 ]; then ++ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" ++ exit 1 ++fi ++ ++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts ++patch_opts="${patch_opts:--f --no-backup-if-mismatch}" ++ ++case "$1" in ++ -patch) patch $patch_opts -p1 < $0;; ++ -unpatch) patch $patch_opts -p1 -R < $0;; ++ *) ++ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" ++ exit 1;; ++esac ++ ++exit 0 ++ ++@DPATCH@ ++diff -urNad --exclude=CVS --exclude=.svn ./libdv/dv_types.h /tmp/dpep-work.X4gSie/libdv/libdv/dv_types.h ++--- ./libdv/dv_types.h 2005-07-10 19:31:16.000000000 +0200 +++++ /tmp/dpep-work.X4gSie/libdv/libdv/dv_types.h 2005-07-10 19:58:28.000000000 +0200 ++@@ -26,10 +26,11 @@ ++ #ifndef DV_TYPES_H ++ #define DV_TYPES_H ++ ++-#if HAVE_CONFIG_H ++-# include ++-#endif ++- +++/* The Debian package is always compiled with popt support, but using it +++ * in an application is optional. Declare HAVE_LIBPOPT before including +++ * the libdv headers in order to access popt-specific entries in the +++ * libdv API. +++ */ ++ #if HAVE_LIBPOPT ++ #include ++ #endif // HAVE_LIBPOPT ++@@ -38,11 +39,11 @@ ++ #include ++ #include ++ #include ++-#if HAVE_ENDIAN_H +++/* FIXME Some systems use machine/endian.h instead. We probably ought to +++ * AC_SUBST the correct value in here. (Or use a namespace-clean dvconfig.h.) +++ * This quick fix should do for glibc-based systems. +++ */ ++ #include ++-#elif HAVE_MACHINE_ENDIAN_H ++-#include ++-#endif ++ ++ /* please tell me these are defined somewhere standard??? */ ++ #ifndef FALSE ++@@ -61,16 +62,33 @@ ++ #define CLAMP(a,x,b) (MIN(b,MAX(a,x))) ++ #endif ++ +++/* FIXME These values indicate whether libdv was built with asm optimizations. +++ * It had better be AC_SUBSTed, but for the purpose of the Debian package, we +++ * can easily guess the correct value from standard compiler macros. +++ */ +++#if !defined(ARCH_X86) && !defined(ARCH_X86_64) +++# if defined (__x86_64) +++# define ARCH_X86 0 +++# define ARCH_X86_64 1 +++# elif defined(i386) +++# define ARCH_X86 1 +++# define ARCH_X86_64 0 +++# else +++# define ARCH_X86 0 +++# define ARCH_X86_64 0 +++# endif +++#endif +++ ++ // For now assume ARCH_X86 means GCC with hints. ++ #ifdef ARCH_X86 ++-#define HAVE_GCC 1 +++#define LIBDV_HAVE_GCC 1 ++ #endif ++ #ifdef ARCH_X86_64 ++-#define HAVE_GCC 1 +++#define LIBDV_HAVE_GCC 1 ++ #endif ++-//#define HAVE_GCC 0 +++//#define LIBDV_HAVE_GCC 0 ++ ++-#if HAVE_GCC +++#if LIBDV_HAVE_GCC ++ #define ALIGN64 __attribute__ ((aligned (64))) ++ #define ALIGN32 __attribute__ ((aligned (32))) ++ #define ALIGN8 __attribute__ ((aligned (8))) +--- libdv-0.104.orig/debian/patches/11_move_config_h_to_apps.dpatch ++++ libdv-0.104/debian/patches/11_move_config_h_to_apps.dpatch +@@ -0,0 +1,54 @@ ++#!/bin/sh -e ++## 11_move_config_h_to_apps.dpatch by Daniel Kobras ++## ++## All lines beginning with `## DP:' are a description of the patch. ++## DP: Removing inclusion of config.h from dv_types.h revealed two ++## DP: files that should include it themselves. ++ ++if [ $# -lt 1 ]; then ++ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" ++ exit 1 ++fi ++ ++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts ++patch_opts="${patch_opts:--f --no-backup-if-mismatch}" ++ ++case "$1" in ++ -patch) patch $patch_opts -p1 < $0;; ++ -unpatch) patch $patch_opts -p1 -R < $0;; ++ *) ++ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" ++ exit 1;; ++esac ++ ++exit 0 ++ ++@DPATCH@ ++diff -urNad /home/kobras/src/debian/libdv/encodedv/encodedv.c libdv/encodedv/encodedv.c ++--- /home/kobras/src/debian/libdv/encodedv/encodedv.c 2004-01-19 13:06:49.000000000 +0100 +++++ libdv/encodedv/encodedv.c 2004-01-19 23:58:45.000000000 +0100 ++@@ -24,6 +24,10 @@ ++ * The libdv homepage is http://libdv.sourceforge.net/. ++ */ ++ +++#ifdef HAVE_CONFIG_H +++#include +++#endif +++ ++ #include ++ #include "libdv/dv_types.h" ++ #include "libdv/dv.h" ++diff -urNad /home/kobras/src/debian/libdv/encodedv/insert_audio.c libdv/encodedv/insert_audio.c ++--- /home/kobras/src/debian/libdv/encodedv/insert_audio.c 2004-01-19 13:06:49.000000000 +0100 +++++ libdv/encodedv/insert_audio.c 2004-01-19 23:59:22.000000000 +0100 ++@@ -23,6 +23,10 @@ ++ * The libdv homepage is http://libdv.sourceforge.net/. ++ */ ++ +++#ifdef HAVE_CONFIG_H +++#include +++#endif +++ ++ #include "libdv/dv_types.h" ++ ++ #include +--- libdv-0.104.orig/debian/patches/01_changelog_update_CVS.dpatch ++++ libdv-0.104/debian/patches/01_changelog_update_CVS.dpatch +@@ -0,0 +1,35 @@ ++#! /bin/sh /usr/share/dpatch/dpatch-run ++## 01_changelog_update_CVS.dpatch by Daniel Kobras ++## ++## All lines beginning with `## DP:' are a description of the patch. ++## DP: Include 0.104 changelog entry that is not part of released 0.104 ++## DP: tarball. This is done so we can apply subsequent patches pristine ++## DP: from CVS without failing hunks because of the missing changelog ++## DP: entry. ++## DP: (Part of patch set 286 from upstream CVS. Unneeded updates to ++## DP: autogenerated files have been omitted.) ++ ++@DPATCH@ ++--------------------- ++PatchSet 286 ++Date: 2004/11/30 03:39:35 ++Author: krasic ++Branch: HEAD ++Tag: libdv_0_104 ++Log: ++0.104 release build ++ ++Members: ++ ChangeLog:1.108->1.109 ++ ++Index: libdv/ChangeLog ++diff -u libdv/ChangeLog:1.108 libdv/ChangeLog:1.109 ++--- libdv/ChangeLog:1.108 Mon Nov 29 17:44:55 2004 +++++ libdv/ChangeLog Mon Nov 29 19:39:35 2004 ++@@ -1,3 +1,6 @@ +++2004-11-29 Charles "Buck" Krasic +++ * libdv 0.104 release +++ ++ 2004-11-29 Dan Dennedy ++ * libdv.pc: added -lm to make build more portable. ++ +--- libdv-0.104.orig/debian/patches/10_amd64_linkage_fix_CVS.dpatch ++++ libdv-0.104/debian/patches/10_amd64_linkage_fix_CVS.dpatch +@@ -0,0 +1,302 @@ ++#! /bin/sh /usr/share/dpatch/dpatch-run ++## 10_amd64_linkage_fix_CVS.dpatch by Daniel Kobras ++## ++## All lines beginning with `## DP:' are a description of the patch. ++## DP: Fix linker compatibility issues with amd64 assembly. (Dean Kolosiek) ++## DP: (Patch set 287 from upstream CVS.) ++ ++@DPATCH@ ++--------------------- ++PatchSet 287 ++Date: 2004/12/13 01:48:50 ++Author: ddennedy ++Branch: HEAD ++Tag: (none) ++Log: ++fix linkage problems in x86_64 asm code ++ ++Members: ++ ChangeLog:1.109->1.110 ++ libdv/encode_x86_64.S:1.2->1.3 ++ libdv/idct_block_mmx_x86_64.S:1.1->1.2 ++ libdv/quant_x86_64.S:1.2->1.3 ++ libdv/vlc_x86_64.S:1.1->1.2 ++ ++Index: libdv/ChangeLog ++diff -u libdv/ChangeLog:1.109 libdv/ChangeLog:1.110 ++--- libdv/ChangeLog:1.109 Mon Nov 29 19:39:35 2004 +++++ libdv/ChangeLog Sun Dec 12 17:48:50 2004 ++@@ -1,3 +1,7 @@ +++2004-12-12 Dan Dennedy +++ * *_x86_64.S: apply patch from Dean Kolosiek to fix linker +++ compatibility. +++ ++ 2004-11-29 Charles "Buck" Krasic ++ * libdv 0.104 release ++ ++Index: libdv/libdv/encode_x86_64.S ++diff -u libdv/libdv/encode_x86_64.S:1.2 libdv/libdv/encode_x86_64.S:1.3 ++--- libdv/libdv/encode_x86_64.S:1.2 Tue Nov 16 19:36:30 2004 +++++ libdv/libdv/encode_x86_64.S Sun Dec 12 17:48:51 2004 ++@@ -47,7 +47,8 @@ ++ ++ mov $63, %rcx # loop counter ++ ++- mov vlc_encode_lookup(%rip), %r11 +++ mov vlc_encode_lookup@GOTPCREL(%rip), %r11 +++ mov (%r11),%r11 ++ ++ pxor %mm0, %mm0 ++ pxor %mm2, %mm2 ++@@ -129,7 +130,8 @@ ++ add $2, %rdi /* skip the DC coefficient */ ++ mov $63, %rcx ++ ++- mov vlc_num_bits_lookup(%rip), %r11 +++ mov vlc_num_bits_lookup@GOTPCREL(%rip), %r11 +++ mov (%r11),%r11 ++ ++ vlc_num_bits_block_x86_loop: ++ movw (%rdi), %ax /* get the next coeffiecient */ ++Index: libdv/libdv/idct_block_mmx_x86_64.S ++diff -u libdv/libdv/idct_block_mmx_x86_64.S:1.1 libdv/libdv/idct_block_mmx_x86_64.S:1.2 ++--- libdv/libdv/idct_block_mmx_x86_64.S:1.1 Tue Oct 19 20:49:24 2004 +++++ libdv/libdv/idct_block_mmx_x86_64.S Sun Dec 12 17:48:51 2004 ++@@ -22,7 +22,7 @@ ++ /* void _dv_idct_88(dv_coeff_t *block) */ ++ /* argument block=rdi */ ++ ++- lea preSC(%rip), %r11 +++ mov preSC@GOTPCREL(%rip), %r11 ++ ++ /* ++ * column 0: even part ++Index: libdv/libdv/quant_x86_64.S ++diff -u libdv/libdv/quant_x86_64.S:1.2 libdv/libdv/quant_x86_64.S:1.3 ++--- libdv/libdv/quant_x86_64.S:1.2 Tue Nov 16 19:36:30 2004 +++++ libdv/libdv/quant_x86_64.S Sun Dec 12 17:48:51 2004 ++@@ -73,10 +73,10 @@ ++ /* pq = dv_quant_shifts[qno + dv_quant_offset[class]]; */ ++ mov %rsi,%rax /* qno */ ++ mov %rdx,%r12 /* class */ ++- lea dv_quant_offset(%rip),%rcx +++ mov dv_quant_offset@GOTPCREL(%rip),%rcx ++ movzbq (%rcx,%r12,1),%rcx /* dv_quant_offset[class] */ ++ add %rcx,%rax /* qno + */ ++- lea dv_quant_shifts(%rip),%r11 +++ mov dv_quant_shifts@GOTPCREL(%rip),%r11 ++ lea (%r11,%rax,4),%r11 /* r11 is pq = dv_quant_shifts[...] */ ++ ++ /* extra = (class == 3); */ ++@@ -217,10 +217,10 @@ ++ mov %rsi,%rax /* qno */ ++ mov %rdx,%r12 /* class */ ++ ++- lea dv_quant_offset(%rip),%rcx +++ mov dv_quant_offset@GOTPCREL(%rip),%rcx ++ movzbq (%rcx,%r12,1),%rcx ++ add %rcx,%rax ++- lea dv_quant_shifts(%rip),%r11 +++ mov dv_quant_shifts@GOTPCREL(%rip),%r11 ++ lea (%r11,%rax,4),%r11 /* r11 is pq */ ++ ++ /* extra = (class == 3); */ ++Index: libdv/libdv/vlc_x86_64.S ++diff -u libdv/libdv/vlc_x86_64.S:1.1 libdv/libdv/vlc_x86_64.S:1.2 ++--- libdv/libdv/vlc_x86_64.S:1.1 Tue Oct 19 20:49:24 2004 +++++ libdv/libdv/vlc_x86_64.S Sun Dec 12 17:48:51 2004 ++@@ -16,28 +16,28 @@ ++ /* klass = dv_vlc_classes[maxbits][(bits & (dv_vlc_class_index_mask[maxbits])) >> */ ++ /* (dv_vlc_class_index_rshift[maxbits])]; */ ++ /* xor %rbp,%rbp */ ++- lea dv_vlc_class_index_mask(%rip),%r11 /* use %rip for PIC code */ +++ mov dv_vlc_class_index_mask@GOTPCREL(%rip),%r11 /* use %rip for PIC code */ ++ mov (%r11,%rbx,4),%ebp /* int32 */ /* dv_vlc_class_index_mask[maxbits] */ ++ and %eax,%ebp /* bits & */ ++- lea dv_vlc_class_index_rshift(%rip),%rcx +++ mov dv_vlc_class_index_rshift@GOTPCREL(%rip),%rcx ++ mov (%rcx,%rbx,4),%ecx /* int32 */ /* dv_vlc_class_index_rshift[maxbits] */ ++ sar %cl,%ebp /* >> */ ++- lea dv_vlc_classes(%rip),%rcx +++ mov dv_vlc_classes@GOTPCREL(%rip),%rcx ++ mov (%rcx,%rbx,8),%rcx /* ptr */ /* dv_vlc_classes[maxbits], a pointer */ ++ movsbq (%rcx,%rbp,1),%rbp /* int8 */ /* klass = */ ++ ++ /* *result = dv_vlc_lookups[klass][(bits & (dv_vlc_index_mask[klass])) >> */ ++ /* (dv_vlc_index_rshift[klass])]; */ ++ /* xor %rbx,%rbx */ ++- lea dv_vlc_index_mask(%rip),%r11 +++ mov dv_vlc_index_mask@GOTPCREL(%rip),%r11 ++ mov (%r11,%rbp,4),%ebx /* int32 */ /* (dv_vlc_index_mask[klass]) */ ++ /* xor %rcx,%rcx */ ++- lea dv_vlc_index_rshift(%rip),%r11 +++ mov dv_vlc_index_rshift@GOTPCREL(%rip),%r11 ++ mov (%r11,%rbp,4),%ecx /* int32 */ /* dv_vlc_index_rshift[klass] */ ++ and %eax,%ebx /* bits & */ ++ sar %cl,%ebx /* >> */ ++ ++- lea dv_vlc_lookups(%rip),%r11 +++ mov dv_vlc_lookups@GOTPCREL(%rip),%r11 ++ mov (%r11,%rbp,8),%rbp /* ptr */ /* dv_vlc_lookups[klass] */ ++ mov (%rbp,%rbx,4),%ebp /* int32 */ /* *result = */ ++ ++@@ -57,7 +57,7 @@ ++ mov %ebp,%ecx ++ sar $8,%ecx ++ and $0xff,%ecx /* result->len */ ++- lea sign_mask(%rip),%rbx +++ mov sign_mask@GOTPCREL(%rip),%rbx ++ mov (%rbx,%rcx,4),%ebx /* int32 */ ++ and %ebx,%eax ++ neg %eax ++@@ -109,17 +109,17 @@ ++ mov %rax,%rbp ++ and $0xfe00,%ebp ++ sar $9,%ebp ++- lea dv_vlc_class_lookup5(%rip),%r11 +++ mov dv_vlc_class_lookup5@GOTPCREL(%rip),%r11 ++ movsbq (%r11,%rbp),%rbp /* int8 klass */ ++ ++- lea dv_vlc_index_mask(%rip),%rbx +++ mov dv_vlc_index_mask@GOTPCREL(%rip),%rbx ++ mov (%rbx,%rbp,4),%ebx /* int32 */ ++- lea dv_vlc_index_rshift(%rip),%rcx +++ mov dv_vlc_index_rshift@GOTPCREL(%rip),%rcx ++ mov (%rcx,%rbp,4),%ecx /* int32 */ ++ and %eax,%ebx ++ sar %cl,%ebx /* %rbx is klass */ ++ ++- lea dv_vlc_lookups(%rip),%r11 +++ mov dv_vlc_lookups@GOTPCREL(%rip),%r11 ++ mov (%r11,%rbp,8),%rbp /* ptr */ ++ mov (%rbp,%rbx,4),%ebp /* int32 */ ++ ++@@ -138,7 +138,7 @@ ++ mov %ebp,%ecx ++ sar $8,%ecx ++ and $0xff,%ecx ++- lea sign_mask(%rip),%r11 +++ mov sign_mask@GOTPCREL(%rip),%r11 ++ mov (%r11,%rcx,4),%ecx /* int32 */ ++ and %ecx,%eax ++ neg %eax ++@@ -253,7 +253,7 @@ ++ ++ /* Attempt to use the shortcut first. If it hits, then ++ this vlc term has been decoded. */ ++- lea dv_vlc_class1_shortcut(%rip),%r10 +++ mov dv_vlc_class1_shortcut@GOTPCREL(%rip),%r10 ++ mov (%r10,%rcx,4),%r11d /* record32 dv_vlc_tab_t */ ++ test $0x80,%r11d ++ ++@@ -267,17 +267,17 @@ ++ ++ /* %rax is bits */ ++ ++- lea dv_vlc_class_lookup5(%rip),%r10 +++ mov dv_vlc_class_lookup5@GOTPCREL(%rip),%r10 ++ movsbq (%r10,%rcx,1),%rcx /* int8 */ ++ ++ /* xor %r12,%r12 */ ++- lea dv_vlc_index_mask(%rip),%r10 +++ mov dv_vlc_index_mask@GOTPCREL(%rip),%r10 ++ mov (%r10,%rcx,4),%r12d /* int32 */ ++ ++- lea dv_vlc_lookups(%rip),%r10 +++ mov dv_vlc_lookups@GOTPCREL(%rip),%r10 ++ mov (%r10,%rcx,8),%r11 /* ptr->record32 */ ++ ++- lea dv_vlc_index_rshift(%rip),%r10 +++ mov dv_vlc_index_rshift@GOTPCREL(%rip),%r10 ++ mov (%r10,%rcx,4),%ecx /* int32 */ ++ ++ and %eax,%r12d ++@@ -303,7 +303,7 @@ ++ mov %r11d,%ecx ++ sar $8,%ecx ++ and $0xff,%ecx ++- lea sign_mask(%rip),%r10 +++ mov sign_mask@GOTPCREL(%rip),%r10 ++ mov (%r10,%rcx,4),%ecx /* int32 */ ++ and %ecx,%eax ++ neg %eax ++@@ -388,7 +388,8 @@ ++ mov %r11,%rsi /* bits */ ++ mov %rax,%rdi /* bits_left */ ++ lea vlc(%rip),%rdx /* *vlc */ ++- call dv_decode_vlc +++ mov dv_decode_vlc@GOTPCREL(%rip),%r11 +++ call *%r11 ++ pop %rdx ++ pop %rsi ++ pop %rdi ++@@ -473,7 +474,7 @@ ++ movl %r11d,dv_macroblock_t_eob_count(%r13) /* int32 */ ++ ++ /* mb->i = (seg->i + dv_super_map_vertical[m]) % (seg->isPAL?12:10); */ ++- lea dv_super_map_vertical(%rip),%r11 +++ mov dv_super_map_vertical@GOTPCREL(%rip),%r11 ++ movl (%r11,%rax,4),%r11d /* int32 */ ++ /* xor %rcx,%rcx */ ++ movl dv_videosegment_t_i(%r12),%ecx /* int32 */ ++@@ -493,7 +494,7 @@ ++ movl %r11d,dv_macroblock_t_i(%r13) /* int32 */ ++ ++ /* mb->j = dv_super_map_horizontal[m]; */ ++- lea dv_super_map_horizontal(%rip),%r11 +++ mov dv_super_map_horizontal@GOTPCREL(%rip),%r11 ++ movl (%r11,%rax,4),%r11d /* int32 */ ++ movl %r11d,dv_macroblock_t_j(%r13) /* int32 */ ++ ++@@ -546,7 +547,8 @@ ++ ++ /* bl->reorder = &dv_reorder[bl->dct_mode][1]; */ ++ shl $6,%rax /* *64 */ ++- lea (dv_reorder+1)(%rip),%rcx +++ mov dv_reorder@GOTPCREL(%rip),%rcx +++ add $1,%rcx ++ add %rcx,%rax ++ mov %rax,dv_block_t_reorder(%r15) /* ptr */ ++ ++@@ -557,13 +559,13 @@ ++ /* bl->offset= mb_start + dv_parse_bit_start[b]; */ ++ /* xor %rcx,%rcx */ ++ movl mb_start(%rip),%ecx /* int32 */ ++- lea dv_parse_bit_start(%rip),%rax +++ mov dv_parse_bit_start@GOTPCREL(%rip),%rax ++ mov (%rax,%r12,4),%eax /* int32 */ ++ add %rcx,%rax ++ movl %eax,dv_block_t_offset(%r15) /* int32 */ ++ ++ /* bl->end= mb_start + dv_parse_bit_end[b]; */ ++- lea dv_parse_bit_end(%rip),%rax +++ mov dv_parse_bit_end@GOTPCREL(%rip),%rax ++ mov (%rax,%r12,4),%eax /* int32 */ ++ add %ecx,%eax ++ mov %eax,dv_block_t_end(%r15) /* int32 */ ++@@ -603,7 +605,8 @@ ++ mov dv_videosegment_t_bs(%rdi),%rdi /* passed in rdi was seg, now passing seg->bs */ ++ mov %r13,%rsi /* mb */ ++ mov %r15,%rdx /* bl */ ++- call dv_parse_ac_coeffs_pass0 +++ mov dv_parse_ac_coeffs_pass0@GOTPCREL(%rip),%r11 +++ call *%r11 ++ pop %rdi ++ pop %rsi ++ pop %rdx ++@@ -635,10 +638,12 @@ ++ mov %rsi,%rax /* quality */ ++ and $DV_QUALITY_AC_MASK,%rax ++ cmp $DV_QUALITY_AC_2,%rax +++ +++ jne done +++ mov dv_parse_ac_coeffs@GOTPCREL(%rip),%r11 +++ jmp *%r11 ++ ++- jz dv_parse_ac_coeffs ++- ++- mov $0,%rax +++done: mov $0,%rax ++ ++ ret ++ +--- libdv-0.104.orig/debian/patches/10_inline_fixes_CVS.dpatch ++++ libdv-0.104/debian/patches/10_inline_fixes_CVS.dpatch +@@ -0,0 +1,69 @@ ++#! /bin/sh /usr/share/dpatch/dpatch-run ++## 10_inline_fixes_CVS.dpatch by Daniel Kobras ++## ++## All lines beginning with `## DP:' are a description of the patch. ++## DP: Fix build problems when compiler does not honour the inline hint. ++## DP: (Patch set 288 from upstream CVS.) ++ ++@DPATCH@ ++--------------------- ++PatchSet 288 ++Date: 2004/12/21 05:08:02 ++Author: ddennedy ++Branch: HEAD ++Tag: (none) ++Log: ++convert extern inline to static inline ++ ++Members: ++ ChangeLog:1.110->1.111 ++ libdv/mmx.h:1.2->1.3 ++ libdv/vlc.h:1.6->1.7 ++ ++Index: libdv/ChangeLog ++diff -u libdv/ChangeLog:1.110 libdv/ChangeLog:1.111 ++--- libdv/ChangeLog:1.110 Sun Dec 12 17:48:50 2004 +++++ libdv/ChangeLog Mon Dec 20 21:08:02 2004 ++@@ -1,3 +1,7 @@ +++2004-12-20 Dan Dennedy +++ * vlc.h, mmx.h: apply patch from Daniel Kobras to improve +++ compile compatibillity by making extern inlinei, static inline.. +++ ++ 2004-12-12 Dan Dennedy ++ * *_x86_64.S: apply patch from Dean Kolosiek to fix linker ++ compatibility. ++Index: libdv/libdv/mmx.h ++diff -u libdv/libdv/mmx.h:1.2 libdv/libdv/mmx.h:1.3 ++--- libdv/libdv/mmx.h:1.2 Sat Oct 27 20:23:57 2001 +++++ libdv/libdv/mmx.h Mon Dec 20 21:08:03 2004 ++@@ -59,7 +59,7 @@ ++ ++ /* Function to test if multimedia instructions are supported... ++ */ ++-inline extern int +++inline static int ++ mm_support(void) ++ { ++ /* Returns 1 if MMX instructions are supported, ++@@ -223,7 +223,7 @@ ++ ++ /* Function to test if mmx instructions are supported... ++ */ ++-inline extern int +++inline static int ++ mmx_ok(void) ++ { ++ /* Returns 1 if MMX instructions are supported, 0 otherwise */ ++Index: libdv/libdv/vlc.h ++diff -u libdv/libdv/vlc.h:1.6 libdv/libdv/vlc.h:1.7 ++--- libdv/libdv/vlc.h:1.6 Mon Oct 20 12:46:50 2003 +++++ libdv/libdv/vlc.h Mon Dec 20 21:08:04 2004 ++@@ -69,7 +69,7 @@ ++ extern void dv_decode_vlc(int bits,int maxbits, dv_vlc_t *result); ++ extern void __dv_decode_vlc(int bits, dv_vlc_t *result); ++ ++-extern __inline__ void dv_peek_vlc(bitstream_t *bs,int maxbits, dv_vlc_t *result) { +++static inline void dv_peek_vlc(bitstream_t *bs,int maxbits, dv_vlc_t *result) { ++ if(maxbits < 16) ++ dv_decode_vlc(bitstream_show(bs,16),maxbits,result); ++ else +--- libdv-0.104.orig/debian/patches/20_no_exec_stack_CVS.dpatch ++++ libdv-0.104/debian/patches/20_no_exec_stack_CVS.dpatch +@@ -0,0 +1,207 @@ ++#! /bin/sh /usr/share/dpatch/dpatch-run ++## 20_no_exec_stack_CVS.dpatch by Daniel Kobras ++## ++## All lines beginning with `## DP:' are a description of the patch. ++## DP: Alter assembler functions to not require an executable stack. ++## DP: (Nicholas Miell) ++## DP: (Part of patch set 289 from upstream CVS. Removed unrelated ++## DP: changes to libtool in same patch set.) ++ ++@DPATCH@ ++--------------------- ++PatchSet 289 ++Date: 2005/01/31 13:27:53 ++Author: ddennedy ++Branch: HEAD ++Tag: (none) ++Log: ++remove execution stack from assembler functions ++ ++Members: ++ ChangeLog:1.111->1.112 ++ libdv/dct_block_mmx.S:1.3->1.4 ++ libdv/dct_block_mmx_x86_64.S:1.1->1.2 ++ libdv/encode_x86.S:1.3->1.4 ++ libdv/encode_x86_64.S:1.3->1.4 ++ libdv/idct_block_mmx.S:1.2->1.3 ++ libdv/idct_block_mmx_x86_64.S:1.2->1.3 ++ libdv/quant_x86.S:1.3->1.4 ++ libdv/quant_x86_64.S:1.3->1.4 ++ libdv/rgbtoyuv.S:1.5->1.6 ++ libdv/rgbtoyuv_x86_64.S:1.1->1.2 ++ libdv/transpose_x86.S:1.2->1.3 ++ libdv/transpose_x86_64.S:1.1->1.2 ++ libdv/vlc_x86.S:1.2->1.3 ++ libdv/vlc_x86_64.S:1.2->1.3 ++ ++Index: libdv/ChangeLog ++diff -u libdv/ChangeLog:1.111 libdv/ChangeLog:1.112 ++--- libdv/ChangeLog:1.111 Mon Dec 20 21:08:02 2004 +++++ libdv/ChangeLog Mon Jan 31 05:27:53 2005 ++@@ -1,3 +1,7 @@ +++2005-01-31 Dan Dennedy +++ * *.S: apply patch from Nicholas Miell +++ to not require execution stack for assembler functions. +++ ++ 2004-12-20 Dan Dennedy ++ * vlc.h, mmx.h: apply patch from Daniel Kobras to improve ++ compile compatibillity by making extern inlinei, static inline.. ++Index: libdv/libdv/dct_block_mmx_x86_64.S ++diff -u libdv/libdv/dct_block_mmx_x86_64.S:1.1 libdv/libdv/dct_block_mmx_x86_64.S:1.2 ++--- libdv/libdv/dct_block_mmx_x86_64.S:1.1 Tue Oct 19 20:49:24 2004 +++++ libdv/libdv/dct_block_mmx_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -53,6 +53,8 @@ ++ scratch3: .quad 0 ++ scratch4: .quad 0 ++ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ ++ .align 8 ++Index: libdv/libdv/encode_x86.S ++diff -u libdv/libdv/encode_x86.S:1.3 libdv/libdv/encode_x86.S:1.4 ++--- libdv/libdv/encode_x86.S:1.3 Mon Oct 20 12:46:50 2003 +++++ libdv/libdv/encode_x86.S Mon Jan 31 05:27:54 2005 ++@@ -27,6 +27,9 @@ ++ ALLONE: .word 1,1,1,1 ++ VLCADDMASK: .byte 255,0,0,0,255,0,0,0 ++ +++ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ ++ .global _dv_vlc_encode_block_mmx ++Index: libdv/libdv/encode_x86_64.S ++diff -u libdv/libdv/encode_x86_64.S:1.3 libdv/libdv/encode_x86_64.S:1.4 ++--- libdv/libdv/encode_x86_64.S:1.3 Sun Dec 12 17:48:51 2004 +++++ libdv/libdv/encode_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -27,6 +27,8 @@ ++ ALLONE: .word 1,1,1,1 ++ VLCADDMASK: .byte 255,0,0,0,255,0,0,0 ++ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ ++ .global _dv_vlc_encode_block_mmx_x86_64 ++Index: libdv/libdv/idct_block_mmx.S ++diff -u libdv/libdv/idct_block_mmx.S:1.2 libdv/libdv/idct_block_mmx.S:1.3 ++--- libdv/libdv/idct_block_mmx.S:1.2 Tue Dec 31 15:04:02 2002 +++++ libdv/libdv/idct_block_mmx.S Mon Jan 31 05:27:54 2005 ++@@ -6,7 +6,7 @@ ++ * (element[0][0] of the matrix) ++ */ ++ ++- +++.section .note.GNU-stack, "", @progbits ++ ++ .text ++ .align 4 ++Index: libdv/libdv/idct_block_mmx_x86_64.S ++diff -u libdv/libdv/idct_block_mmx_x86_64.S:1.2 libdv/libdv/idct_block_mmx_x86_64.S:1.3 ++--- libdv/libdv/idct_block_mmx_x86_64.S:1.2 Sun Dec 12 17:48:51 2004 +++++ libdv/libdv/idct_block_mmx_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -13,6 +13,7 @@ ++ /* If we're using MMX assembler, fold weights into the iDCT ++ prescale here instead of _dv_weight_init */ ++ +++.section .note.GNU-stack, "", @progbits ++ ++ .text ++ .align 4 ++Index: libdv/libdv/quant_x86.S ++diff -u libdv/libdv/quant_x86.S:1.3 libdv/libdv/quant_x86.S:1.4 ++--- libdv/libdv/quant_x86.S:1.3 Mon Oct 20 12:46:50 2003 +++++ libdv/libdv/quant_x86.S Mon Jan 31 05:27:54 2005 ++@@ -24,6 +24,8 @@ ++ * The libdv homepage is http://libdv.sourceforge.net/. ++ */ ++ +++.section .note.GNU-stack, "", @progbits +++.previous ++ ++ /* ++ ++Index: libdv/libdv/quant_x86_64.S ++diff -u libdv/libdv/quant_x86_64.S:1.3 libdv/libdv/quant_x86_64.S:1.4 ++--- libdv/libdv/quant_x86_64.S:1.3 Sun Dec 12 17:48:51 2004 +++++ libdv/libdv/quant_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -24,6 +24,8 @@ ++ * The libdv homepage is http://libdv.sourceforge.net/. ++ */ ++ +++.section .note.GNU-stack, "", @progbits +++.previous ++ ++ /* ++ ++Index: libdv/libdv/rgbtoyuv.S ++diff -u libdv/libdv/rgbtoyuv.S:1.5 libdv/libdv/rgbtoyuv.S:1.6 ++--- libdv/libdv/rgbtoyuv.S:1.5 Mon Oct 20 12:46:50 2003 +++++ libdv/libdv/rgbtoyuv.S Mon Jan 31 05:27:54 2005 ++@@ -111,6 +111,8 @@ ++ ++ #endif ++ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ ++ #define _inPtr 8 ++Index: libdv/libdv/rgbtoyuv_x86_64.S ++diff -u libdv/libdv/rgbtoyuv_x86_64.S:1.1 libdv/libdv/rgbtoyuv_x86_64.S:1.2 ++--- libdv/libdv/rgbtoyuv_x86_64.S:1.1 Tue Oct 19 20:49:24 2004 +++++ libdv/libdv/rgbtoyuv_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -111,6 +111,8 @@ ++ ++ #endif ++ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ ++ #define _inPtr 8 ++Index: libdv/libdv/transpose_x86.S ++diff -u libdv/libdv/transpose_x86.S:1.2 libdv/libdv/transpose_x86.S:1.3 ++--- libdv/libdv/transpose_x86.S:1.2 Tue Dec 31 15:04:03 2002 +++++ libdv/libdv/transpose_x86.S Mon Jan 31 05:27:54 2005 ++@@ -1,3 +1,5 @@ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ .global _dv_transpose_mmx ++ ++Index: libdv/libdv/transpose_x86_64.S ++diff -u libdv/libdv/transpose_x86_64.S:1.1 libdv/libdv/transpose_x86_64.S:1.2 ++--- libdv/libdv/transpose_x86_64.S:1.1 Tue Oct 19 20:49:24 2004 +++++ libdv/libdv/transpose_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -1,3 +1,5 @@ +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ .global _dv_transpose_mmx_x86_64 ++ ++Index: libdv/libdv/vlc_x86.S ++diff -u libdv/libdv/vlc_x86.S:1.2 libdv/libdv/vlc_x86.S:1.3 ++--- libdv/libdv/vlc_x86.S:1.2 Mon May 20 05:31:25 2002 +++++ libdv/libdv/vlc_x86.S Mon Jan 31 05:27:54 2005 ++@@ -1,4 +1,6 @@ ++ #include "asmoff.h" +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ .align 4 ++ .globl dv_decode_vlc ++Index: libdv/libdv/vlc_x86_64.S ++diff -u libdv/libdv/vlc_x86_64.S:1.2 libdv/libdv/vlc_x86_64.S:1.3 ++--- libdv/libdv/vlc_x86_64.S:1.2 Sun Dec 12 17:48:51 2004 +++++ libdv/libdv/vlc_x86_64.S Mon Jan 31 05:27:54 2005 ++@@ -1,4 +1,6 @@ ++ #include "asmoff.h" +++.section .note.GNU-stack, "", @progbits +++ ++ .text ++ .align 4 ++ .globl dv_decode_vlc +--- libdv-0.104.orig/debian/control ++++ libdv-0.104/debian/control +@@ -0,0 +1,48 @@ ++Source: libdv ++Section: graphics ++Priority: optional ++Maintainer: Daniel Kobras ++Build-Depends: debhelper (>= 4.1.1), libsdl1.2-dev (>= 1.2.2-1) | libsdl1.1-dev, libpopt-dev, libglib1.2-dev, libgtk1.2-dev, libx11-dev | xlibs-dev (>= 4.0), libxext-dev | xlibs-dev (>= 4.0), libxt-dev | xlibs-dev (>= 4.0), libxv-dev | xlibs-dev (>= 4.0), x-dev | xlibs-dev (>= 4.0), autotools-dev, pkg-config (>= 0.7), file, dpatch ++Standards-Version: 3.6.1 ++ ++Package: libdv4 ++Section: libs ++Architecture: any ++Depends: ${shlibs:Depends} ++Recommends: libdv-bin ++Description: software library for DV format digital video (runtime lib) ++ The Quasar DV Codec (libdv) is a software decoder for DV format video, as ++ defined by the IEC 61834 and SMPTE 314M standards. DV is the encoding format ++ used by consumer-grade digital camcorders. ++ . ++ This package contains the library needed to run executables using libdv. ++ ++Package: libdv4-dev ++Section: libdevel ++Priority: extra ++Architecture: any ++Depends: libc6-dev, libpopt-dev, libdv4 (= ${Source-Version}) ++Conflicts: libdv-dev ++Replaces: libdv-dev ++Provides: libdv-dev ++Description: software library for DV format digital video (devel files) ++ The Quasar DV Codec (libdv) is a software decoder for DV format video, as ++ defined by the IEC 61834 and SMPTE 314M standards. DV is the encoding format ++ used by consumer-grade digital camcorders. ++ . ++ This package contains the development headers and library files needed to ++ compile programs using libdv. ++ ++Package: libdv-bin ++Section: graphics ++Priority: extra ++Architecture: any ++Depends: ${shlibs:Depends} ++Replaces: libdv-dev (<< 0.98-1) ++Description: software library for DV format digital video (sample apps) ++ The Quasar DV Codec (libdv) is a software decoder for DV format video, as ++ defined by the IEC 61834 and SMPTE 314M standards. DV is the encoding format ++ used by consumer-grade digital camcorders. ++ . ++ This package contains sample programs for viewing, encoding, and transferring ++ DV data. diff --git a/media/libs/libdv/libdv.mkbuild b/media/libs/libdv/libdv.mkbuild new file mode 100644 index 0000000..541638c --- /dev/null +++ b/media/libs/libdv/libdv.mkbuild @@ -0,0 +1,92 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/libdv/libdv-1.0.0.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING COPYRIGHT ChangeLog NEWS README README.dvconnect README.encoder TODO" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/libdv" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libdv: libdv (libdv is a software codec for DV video) +libdv: +libdv: The Quasar DV codec (libdv) is a software codec for DV video, the +libdv: encoding format used by most digital camcorders, typically those that +libdv: support the IEEE 1394 (a.k.a. FireWire or i.Link) interface. Libdv +libdv: was developed according to the official standards for DV video: +libdv: IEC 61834 and SMPTE 314M. +libdv: +libdv: http://libdv.sourceforge.net/ +libdv: +libdv: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libdvbpsi: libdvbpsi (a simple library for DVB PSI) +libdvbpsi: +libdvbpsi: +libdvbpsi: Libdvbpsi is a simple library designed for decoding and +libdvbpsi: generation of MPEG TS and DVB PSI tables. +libdvbpsi: +libdvbpsi: +libdvbpsi: +libdvbpsi: +libdvbpsi: http://www.videolan.org/developers/libdvbpsi.html +libdvbpsi: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libexif-gtk: libexif-gtk (library to read and write EXIF data) +libexif-gtk: +libexif-gtk: Libexif reads and writes EXIF metainformation from and to image +libexif-gtk: files. +libexif-gtk: +libexif-gtk: +libexif-gtk: +libexif-gtk: +libexif-gtk: +libexif-gtk: +libexif-gtk: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libiec61883: libiec61883 (libiec61883 is Firewire video related library) +libiec61883: +libiec61883: This library is an implementation of IEC 61883, part 1 (CIP, plug +libiec61883: registers, and CMP), part 2 (DV-SD), part 4 (MPEG2-TS), and part 6 +libiec61883: (AMDTP). Outside of IIDC, nearly all FireWire multimedia devices use +libiec61883: IEC 61883 protocols. +libiec61883: +libiec61883: +libiec61883: +libiec61883: http://www.linux1394.org/ +libiec61883: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libjackasyn: libjackasyn +libjackasyn: +libjackasyn: libjackasyn is a library that allows you to use programs written +libjackasyn: for the OSS sound API with the JACK audio server (jackit.sf.net). +libjackasyn: libjackasyn is a library that can be used for two purposes. +libjackasyn: +libjackasyn: +libjackasyn: +libjackasyn: +libjackasyn: +libjackasyn: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +liblo: liblo +liblo: +liblo: LibLO is a lightweight library for handling the sending and +liblo: receiving of messages according to the Open Sound Control (OSC) +liblo: protocol on POSIX systems. +liblo: +liblo: +liblo: +liblo: +liblo: +liblo: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +liblrdf: liblrdf (lightweight RDF) +liblrdf: +liblrdf: Liblrdf is a lightweight RDF library with special support for +liblrdf: LADSPA plugins. +liblrdf: +liblrdf: +liblrdf: +liblrdf: +liblrdf: +liblrdf: +liblrdf: +#rc.i_qp_step); + fprintf(stderr, " b_cbr: %d\n", params->rc.b_cbr); + fprintf(stderr, " i_bitrate: %d\n", params->rc.i_bitrate); +- fprintf(stderr, " i_rf_constant: %d\n", params->rc.i_rf_constant); ++ fprintf(stderr, " f_rf_constant: %d\n", params->rc.f_rf_constant); + fprintf(stderr, " f_rate_tolerance: %f\n", params->rc.f_rate_tolerance); + fprintf(stderr, " i_vbv_max_bitrate: %d\n", params->rc.i_vbv_max_bitrate); + fprintf(stderr, " i_vbv_buffer_size: %d\n", params->rc.i_vbv_buffer_size); +@@ -493,7 +493,7 @@ static int encode(quicktime_t *file, uns + { + /* Force ABR */ + codec->params.rc.i_rc_method = X264_RC_ABR; +- codec->params.rc.i_rf_constant = 0; ++ codec->params.rc.f_rf_constant = 0; + if(codec->pass == 1) + { + /* Strings will be made private by x264 */ +@@ -655,7 +655,7 @@ static int set_parameter(quicktime_t *fi + INTPARAM("x264_i_bitrate", codec->params.rc.i_bitrate); + + INTPARAM("x264_i_qp_constant", codec->params.rc.i_qp_constant); +- INTPARAM("x264_i_rf_constant", codec->params.rc.i_rf_constant); ++ INTPARAM("x264_f_rf_constant", codec->params.rc.f_rf_constant); + INTPARAM("x264_i_qp_min", codec->params.rc.i_qp_min); + INTPARAM("x264_i_qp_max", codec->params.rc.i_qp_max); + INTPARAM("x264_i_qp_step", codec->params.rc.i_qp_step); diff --git a/media/libs/libquicktime/libquicktime.mkbuild b/media/libs/libquicktime/libquicktime.mkbuild new file mode 100644 index 0000000..19569f2 --- /dev/null +++ b/media/libs/libquicktime/libquicktime.mkbuild @@ -0,0 +1,98 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/libquicktime/libquicktime-1.0.3.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +[[OTHER CONFIGURE ARGS]]="--with-docdir=/usr/doc/$PKG_NAME-$PKG_VERSION" + +# +# Dependency list input +[[SLACK REQUIRED]]="libx264" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/libs/libquicktime" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libquicktime: libquicktime (libquicktime is a library for quicktime/avi/mp4 files) +libquicktime: +libquicktime: libquicktime is a library for reading and writing quicktime files. +libquicktime: It is based on the quicktime4linux library, with the following some +libquicktime: extensions: +libquicktime: +libquicktime: +libquicktime: +libquicktime: +libquicktime: http://libquicktime.sourceforge.net/ +libquicktime: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libsamplerate: libsamplerate (libsamplerate is library for samplerate conversions) +libsamplerate: +libsamplerate: Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter +libsamplerate: for audio. One example of where such a thing would be useful is +libsamplerate: converting audio from the CD sample rate of 44.1kHz to the 48kHz +libsamplerate: sample rate used by DAT players. +libsamplerate: SRC is capable of arbitrary and time varying conversions ; from +libsamplerate: downsampling by a factor of 256 to upsampling by the same factor. +libsamplerate: Arbitrary in this case means that the ratio of input and output +libsamplerate: sample rates can be an irrational number. The conversion ratio can +libsamplerate: also vary with time for speeding up and slowing down effects. +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libsndfile: libsndfile (libsndfile is a library for audio manipulation) +libsndfile: +libsndfile: Libsndfile is a C library for reading and writing files containing +libsndfile: sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) +libsndfile: through one standard library interface. It is released in source +libsndfile: code format under the Gnu Lesser General Public License. +libsndfile: +libsndfile: +libsndfile: +libsndfile: http://www.mega-nerd.com/libsndfile/ +libsndfile: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +libx264: libx264 (x264 is a free library for encoding H264/AVC video streams) +libx264: +libx264: x264 is a free library for encoding H264/AVC video streams. The code +libx264: is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit +libx264: (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Måns Rullgård, Radek +libx264: Czyz, Christian Heine (asm), Alex Izvorski, and Alex Wright. It is +libx264: released under the terms of the GPL license. +libx264: +libx264: +libx264: http://developers.videolan.org/x264.html +libx264: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +openexr: OpenEXR (OpenEXR set of libraries for higher color fidelity images) +openexr: +openexr: OpenEXR supports several lossless compression methods, some of which +openexr: can achieve compression ratios of about 2:1 for images with film +openexr: grain. OpenEXR is extensible, so developers can easily add new +openexr: compression methods (lossless or lossy). +openexr: +openexr: +openexr: +openexr: http://www.openexr.com/ +openexr: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 + on: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +raptor: raptor (RDF parser/serializer library) +raptor: +raptor: Raptor is a free software / Open Source C library that provides a +raptor: set of parsers and serializers that generate Resource Description +raptor: Framework (RDF) triples by parsing syntaxes or serialize the triples +raptor: into a syntax. The supported parsing syntaxes are RDF/XML, N-Triples, +raptor: Turtle, RSS tag soup including Atom 0.3, GRDDL for XHTML and XML. +raptor: The serializing syntaxes ar eRDF/XML, N-Triples and RSS 1.0. +raptor: +raptor: +raptor: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +speex: speex +speex: +speex: Speex is an Open Source/Free Software patent-free audio +speex: compression format designed for speech. The Speex Project +speex: aims to lower the barrier of entry for voice applications +speex: by providing a free alternative to expensive proprietary +speex: speech codecs. Moreover, Speex is well-adapted to Internet +speex: applications and provides useful features that are not +speex: present in most other codecs. +speex: +speex: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +unicap: unicap (video capture library) +unicap: +unicap: Unicap provides a uniform interface to video capture +unicap: devices. It allows applications to use any supported +unicap: video capture device via a single API. +unicap: +unicap: +unicap: +unicap: +unicap: http://unicap-imaging.org/ +unicap: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files + on: install_documentation + on: slackdesc +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +xine-lib: xine-lib by Slack.Sarava +xine-lib: +xine-lib: xine-lib is a free (GPL licensed) high-performance multimedia +xine-lib: playback engine. The xine shared libraries are used by xine-ui (and +xine-lib: other media players and multimedia applications) for smooth video +xine-lib: processing and playback of multimedia streams such as movies, radio +xine-lib: and TV network streams, DVDs, and VCDs. +xine-lib: +xine-lib: +xine-lib: +xine-lib: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +zvbi: zvbi by Slack.Sarava +zvbi: +zvbi: The ZVBI library provides routines to access raw VBI sampling devices, +zvbi: a versatile raw VBI bit slicer, decoders for various data services and +zvbi: basic search, render and export functions for text pages. The library +zvbi: was written for the Zapping TV viewer and Zapzilla Teletext browser. +zvbi: +zvbi: +zvbi: +zvbi: +zvbi: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +swfdec-mozilla: swfdec-mozilla +swfdec-mozilla: +swfdec-mozilla: Swfdec-Mozilla contains a plugin for Mozilla browsers that uses the +swfdec-mozilla: Swfdec library for playing SWF files. +swfdec-mozilla: +swfdec-mozilla: +swfdec-mozilla: +swfdec-mozilla: +swfdec-mozilla: +swfdec-mozilla: +swfdec-mozilla: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +swfdec: swfdec +swfdec: +swfdec: Swfdec is the library for decoding and rendering Flash animations. +swfdec: It is still in heavy development. The intended audience are +swfdec: developers or people using it for pretested Flash animations +swfdec: (think embedded here). If you use it on unknown content, expect +swfdec: it to have issues and don't be surprised if it crashes. If you +swfdec: encounter such a crash however, make sure to file a bug immediately. +swfdec: +swfdec: +swfdec: +# + # Configure ++# https://annarchy.freedesktop.org/show_bug.cgi?id=11607 ++sed -e 's/-std=c99/-std=gnu99/g' configure.ac > configure.ac.new ++sed -e 's/-std=c99/-std=gnu99/g' configure > configure.new ++mv configure.ac.new configure.ac ++mv configure.new configure && chmod +x configure +#p< diff --git a/media/plugins/swh-plugins/swh-plugins.mkbuild b/media/plugins/swh-plugins/swh-plugins.mkbuild new file mode 100644 index 0000000..9370609 --- /dev/null +++ b/media/plugins/swh-plugins/swh-plugins.mkbuild @@ -0,0 +1,95 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README TODO" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/plugins/swh-plugins" + +# Dependencies +[[SLACK REQUIRED]]="fftw: ladspa" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +swh-plugins: swh-plugins +swh-plugins: +swh-plugins: This is a collection of LADSPA plugins available from Steve Harris +swh-plugins: at http://plugin.org.uk. +swh-plugins: +swh-plugins: +swh-plugins: +swh-plugins: +swh-plugins: +swh-plugins: +swh-plugins: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +xmms-jack: xmms-jack (jack plugin for XMMS) +xmms-jack: +xmms-jack: jack output plugin for XMMS by Chris Morgan +xmms-jack: (cmorgan at alum.wpi.edu) +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +xmms-jack: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +xmms-jackasyn: xmms-jackasyn +xmms-jackasyn: +xmms-jackasyn: This plugin enables xmms to playback sound via the JACK audio server. +xmms-jackasyn: The plugin is actually a port of the xmms OSS sound ouput plugin to +xmms-jackasyn: JACK, using libjackasyn. Thanks to Paul Brossier for several +xmms-jackasyn: improvements and for the Debian package of xmms-jackasyn. +xmms-jackasyn: +xmms-jackasyn: +xmms-jackasyn: +xmms-jackasyn: +xmms-jackasyn: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source +off: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +ardour: ardour (Digital Audio Workstation) +ardour: +ardour: Ardour is a professional multitrack/multichannel audio recorder and +ardour: DAW for Linux, using ALSA-supported audio interfaces. It supports +ardour: up to 32 bit samples, 24+ channels at up to 96kHz, full MMC control, +ardour: a non-destructive, non-linear editor, and LADSPA plugins. +ardour: +ardour: +ardour: +ardour: +ardour: +#make_package +# Compile + +# This section and the install section uses code from +# http://slackbuilds.org/slackbuilds/12.1/audio/ardour/ardour.SlackBuild, +# which licence is: + +# Copyright 2008 Heinz Wiesinger +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +scons PREFIX=/usr \ + DIST_TARGET="none" \ + ARCH="$(echo $SLKCFLAGS)" \ + FREEDESKTOP=1 || exit $ERROR_MAKE +#install_package +# Install +scons \ + PREFIX=/usr \ + DIST_TARGET="none" \ + ARCH="$(echo $SLKCFLAGS)" \ + FREEDESKTOP=0 \ + DESTDIR=$PKG \ + install || exit $ERROR_INSTALL + +# We'll have to install the freedesktop stuff manually +# See the FREEDESKTOP target in $srcdir/gtk2_ardour/Sconscript +# to be sure this is synced with future releases +cd gtk2_ardour + # First, install the icons + mkdir -p $PKG/usr/share/icons/hicolor/{16x16,22x22,32x32,48x48}/apps + install -m 0644 icons/ardour_icon_16px.png \ + $PKG/usr/share/icons/hicolor/16x16/apps/ardour2.png || exit $ERROR_INSTALL + install -m 0644 icons/ardour_icon_22px.png \ + $PKG/usr/share/icons/hicolor/22x22/apps/ardour2.png || exit $ERROR_INSTALL + install -m 0644 icons/ardour_icon_32px.png \ + $PKG/usr/share/icons/hicolor/32x32/apps/ardour2.png || exit $ERROR_INSTALL + install -m 0644 icons/ardour_icon_48px.png \ + $PKG/usr/share/icons/hicolor/48x48/apps/ardour2.png || exit $ERROR_INSTALL + # Next, install the mime xml file + mkdir -p $PKG/usr/share/mime/packages + install -m 0644 ardour2.xml $PKG/usr/share/mime/packages || exit $ERROR_INSTALL + # Now install the mimetype icons + mkdir -p $PKG/usr/share/icons/hicolor/{16x16,22x22,32x32,48x48}/mimetypes + install -m 0644 icons/application-x-ardour_16px.png \ + $PKG/usr/share/icons/hicolor/16x16/mimetypes/application-x-ardour2.png || exit $ERROR_INSTALL + install -m 0644 icons/application-x-ardour_22px.png \ + $PKG/usr/share/icons/hicolor/22x22/mimetypes/application-x-ardour2.png || exit $ERROR_INSTALL + install -m 0644 icons/application-x-ardour_32px.png \ + $PKG/usr/share/icons/hicolor/32x32/mimetypes/application-x-ardour2.png || exit $ERROR_INSTALL + install -m 0644 icons/application-x-ardour_48px.png \ + $PKG/usr/share/icons/hicolor/48x48/mimetypes/application-x-ardour2.png || exit $ERROR_INSTALL + # Finally, install the desktop file + mkdir -p $PKG/usr/share/applications + install -m 0644 ardour2.desktop.in \ + $PKG/usr/share/applications/ardour2.desktop || exit $ERROR_INSTALL +cd - +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +camp: camp (cursed mp3 player) +camp: +camp: Console Ansi Mpeg Player interface. +camp: +camp: +camp: +camp: +camp: +camp: +camp: +camp: +#install_package +# Install +mkdir -p $PKG/usr/bin $PKG/usr/share/$PKG_NAME +cp camp $PKG/usr/bin +cp camp.ini $PKG/usr/share/$PKG_NAME +tar -C $PKG/usr/share/$PKG_NAME -xvf skins.tar +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +cmt: cmt (ladspa plugin package) +cmt: +cmt: The Computer Music Toolkit (CMT) is a collection of LADSPA plugins +cmt: for use with software synthesis and recording packages on Linux. +cmt: +cmt: +cmt: +cmt: +cmt: +cmt: +cmt: +#configure +# Configure +cd src + +sed -e 's/\/usr\/local\/lib\/ladspa\//\/usr\/lib\/ladspa\//' \ + -e 's/\/usr\/local\/bin\//\/usr\/bin\//' makefile > makefile.tmp || exit $ERROR_CONF + +echo "PREFIX = $PKG" >> makefile.tmp || exit $ERROR_CONF + +sed -e 's/$(INSTALL_PLUGINS_DIR)/$(PREFIX)\/$(INSTALL_PLUGINS_DIR)/g' \ + -e 's/$(INSTALL_INCLUDE_DIR)/$(PREFIX)\/$(INSTALL_INCLUDE_DIR)/g' \ + -e 's/$(INSTALL_BINARY_DIR)/$(PREFIX)\/$(INSTALL_BINARY_DIR)/g' makefile.tmp > makefile || exit $ERROR_CONF + +sed -e 's/cp $(PLUGIN_LIB) $(INSTALL_PLUGINS_DIR)/cp $(PLUGIN_LIB) $(PREFIX)\/$(INSTALL_PLUGINS_DIR)/g' \ + makefile.tmp > makefile || exit $ERROR_CONF +#install_package +# Install +mkdir -p $PKG/usr/lib/ladspa +make install DESTDIR="$PKG" || exit $ERROR_INSTALL +cd .. +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +darkice: darkice (an icecast and shoutcast streaming originator) +darkice: +darkice: DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. +darkice: It takes audio input from a sound card, encodes it into mp3 and/or +darkice: Ogg Vorbis, and sends the mp3 stream to one or more IceCast and/or +darkice: ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2 +darkice: servers. +darkice: +darkice: +darkice: +darkice: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package +off: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: install_documentation +off: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>install_package +# Install +strip darksnow +make make_pkg +#build_package +# Build the package +mv *-1rd.tgz $REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +envy24control: envy24control (Control tool for Envy24 (ice1712) based soundcards) +envy24control: +envy24control: Envy24control is a graphical utility for controlling cards based on +envy24control: the envy24 or ice1712 chipset, e.g., the Midiman Delta series and +envy24control: the Terratec EWS and EWX series. It is supplied as part of the +envy24control: alsa-tools package. The utility allows control of the digital mixer, +envy24control: channel gains and other hardware settings, as well as displaying a +envy24control: level meter for each input and output channel. +envy24control: +envy24control: +envy24control: +# +-cd "$PKG_SRC" ++cd "$PKG_SRC/$PKG_NAME" +#p< diff --git a/media/sound/hydrogen/hydrogen-0.9.3.diff b/media/sound/hydrogen/hydrogen-0.9.3.diff new file mode 100644 index 0000000..1f0dc30 --- /dev/null +++ b/media/sound/hydrogen/hydrogen-0.9.3.diff @@ -0,0 +1,651 @@ +diff -Naur hydrogen-0.9.3.orig/Makefile.in hydrogen-0.9.3/Makefile.in +--- hydrogen-0.9.3.orig/Makefile.in 2005-11-10 16:00:08.000000000 -0200 ++++ hydrogen-0.9.3/Makefile.in 2008-07-24 19:43:46.000000000 -0300 +@@ -225,7 +225,7 @@ + mkdir -p $(DESTDIR)$(prefix)/share/hydrogen/data/ + cp -R data $(DESTDIR)$(prefix)/share/hydrogen + mkdir -p $(DESTDIR)$(prefix)/share/hydrogen/data/ +- @install -vD hydrogen.desktop $(DESTDIR)$(prefix)/share/applications/hydrogen.desktop ++ @install -vD -m 644 hydrogen.desktop $(DESTDIR)$(prefix)/share/applications/hydrogen.desktop + cd plugins;make install;cd .. + + +diff -Naur hydrogen-0.9.3.orig/configure.in hydrogen-0.9.3/configure.in +--- hydrogen-0.9.3.orig/configure.in 2006-01-18 20:02:37.000000000 -0200 ++++ hydrogen-0.9.3/configure.in 2008-07-24 19:43:40.000000000 -0300 +@@ -367,6 +367,8 @@ + echo "--- Checking for PortAudio -------------------------------------" + + portaudio_support=false ++AC_ARG_ENABLE(portaudio, [ --disable-portaudio Compile without portaudio support], [want_portaudio=$enableval]) ++if test "x$want_portaudio" != "xno"; then + AC_MSG_CHECKING([whether PORTAUDIOPATH environment variable is set]) + if test "x$PORTAUDIOPATH" = "x"; then + AC_MSG_RESULT(PORTAUDIOPATH is not set. No PortAudio support.) +@@ -389,6 +391,7 @@ + echo "-----------------------------------------------------------------" + echo "" + ++fi + + + +diff -Naur hydrogen-0.9.3.orig/configure.in~ hydrogen-0.9.3/configure.in~ +--- hydrogen-0.9.3.orig/configure.in~ 1969-12-31 21:00:00.000000000 -0300 ++++ hydrogen-0.9.3/configure.in~ 2006-01-18 20:02:37.000000000 -0200 +@@ -0,0 +1,557 @@ ++d added Qt .dylib search for OS X systems (2004/12/17 Jonathan Dempsey) ++ ++ ++dnl Process this file with autoconf to produce a configure script. ++AC_INIT(README) ++#AC_PREREQ(2.58) ++ ++extra_version="" ++hydrogenVersion="0.9.3$extra_version" ++ ++echo " ++ ++----------------------------------------------------------------- ++Starting Hydrogen $hydrogenVersion configuration... ++----------------------------------------------------------------- ++ ++" ++#ac_qmake_lflags="-static" ++#AC_SUBST(ac_qmake_lflags) ++ ++ ++# static build ++#ac_libraries=-static ++ ++ ++AC_DEFINE_UNQUOTED(VERSION, "${hydrogenVersion}", [Version]) ++ ++ ++AC_CONFIG_HEADER(config.h) ++ ++dnl Set default installation prefix. ++AC_PREFIX_DEFAULT(/usr/local) ++ac_prefix=$prefix ++if test "x$ac_prefix" = "xNONE"; then ++ ac_prefix=$ac_default_prefix ++fi ++AC_SUBST(ac_prefix) ++AC_DEFINE_UNQUOTED(CONFIG_PREFIX, ["$ac_prefix"], [Default installation prefix.]) ++ ++ ++AC_ARG_ENABLE(profile, [ --enable-profile enable profile info (default=no)], [useProfile="yes"], [useProfile="no"]) ++if test "x$useProfile" = "xyes"; then ++ ac_qmake_cflags="-pg" ++ ac_qmake_cxxflags="-pg" ++ ac_qmake_lflags="-pg" ++ AC_SUBST(ac_qmake_cflags) ++ AC_SUBST(ac_qmake_cxxflags) ++ AC_SUBST(ac_qmake_lflags) ++fi ++ ++dnl Enable debugging argument option. ++AC_ARG_ENABLE(debug, [ --enable-debug enable debugging (default=no)], [ac_debug="debug"], [ac_debug="release"]) ++AC_SUBST(ac_debug) ++if test "x$ac_debug" = "xdebug"; then ++ AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.]) ++ features_list="${features_list} (Debug)" ++ echo " * Debug mode enabled." ++# CXXFLAGS="${CXXFLAGS} -g -O3" ++#else ++# CXXFLAGS="${CXXFLAGS} -O3" ++fi ++ ++ladspa_enabled=yes ++AC_ARG_ENABLE(ladspa, [ --disable-ladspa disable LADSPA support (default=no)], [ladspa_enabled=$enableval]) ++ ++if test "x$ladspa_enabled" = "xyes"; then ++ AC_DEFINE(LADSPA_SUPPORT, 1, [Define if LADSPA support is enabled.]) ++else ++ echo " * LADSPA support disabled." ++fi ++ ++ ++dnl Checks for programs. ++AC_PROG_CC ++AC_PROG_CPP ++AC_PROG_CXX ++AC_PROG_CXXCPP ++AC_PROG_GCC_TRADITIONAL ++ ++dnl Checks for languages. ++AC_LANG_C ++AC_LANG_CPLUSPLUS ++ ++ ++ ++######################## ++# ++# QT ++# ++##################### ++echo "" ++echo "--- Checking for QT Libs ----------------------------------------" ++ ++#dnl Check for QTDIR environment variable. ++AC_MSG_CHECKING([whether QTDIR environment variable is set]) ++if test "x$QTDIR" = "x"; then ++ # is not set ++ AC_MSG_RESULT([no]) ++ AC_MSG_WARN([QTDIR must be properly set.]) ++ ++ echo " * Searching for Qt library" ++ ac_qtlib="" ++ for X in /usr/share/qt /usr/share/qt3 /usr/lib/qt3 /usr/lib/qt-3.1; do ++ if test "x$ac_qtlib" = "x"; then ++ if test -f $X/lib/libqt-mt.so -o -f $X/lib/libqt-mt.a -o -f $X/lib/libqt-mt.dylib; then ++ ac_qtlib=$X ++ QTDIR=$X ++ echo " |-> searching QT in $X *** Found ***" ++ else ++ echo " |-> searching QT in $X *** Not found ***" ++ fi ++ fi ++ done ++else ++ AC_MSG_RESULT([$QTDIR]) ++ echo " * Searching for Qt library" ++ ac_qtlib="" ++ if test "x$ac_qtlib" = "x"; then ++ if test -f $QTDIR/lib/libqt-mt.so -o -f $QTDIR/lib/libqt-mt.a -o -f $QTDIR/lib/libqt-mt.dylib; then ++ ac_qtlib=$QTDIR ++ echo " |-> searching QT in $QTDIR *** Found ***" ++ else ++ echo " |-> searching QT in $QTDIR *** Not found ***" ++ fi ++ fi ++fi ++ ++#dnl Checks for Qt library. ++#AC_CACHE_CHECK([for Qt library], ++# ac_qtlib, [ ++# for X in qt-mt qt; do ++# if test "x$ac_qtlib" = "x"; then ++# if test -f $QTDIR/lib/lib$X.so -o -f $QTDIR/lib/lib$X.a; then ++# ac_qtlib=$X ++# fi ++# fi ++# done ++#]) ++ ++if test "x$ac_qtlib" = "x"; then ++ AC_MSG_WARN([Qt library not found. Maybe QTDIR isn't properly set.]) ++fi ++AC_SUBST(ac_qtlib) ++ ++ ++#dnl Check for Qt multi-thread support. ++#if test "x$ac_qtlib" = "xqt-mt"; then ++# ac_thread="thread" ++#fi ++#AC_SUBST(ac_thread) ++# ++CFLAGS="$CFLAGS -I$QTDIR/include" ++CPPFLAGS="$CPPFLAGS -I$QTDIR/include" ++LIBS="-L$QTDIR/lib -L/usr/X11R6/lib" ++ ++#AC_CACHE_CHECK([for Qt library version >= 3.1.1], ++# ac_qtlib_version, [ ++# AC_TRY_LINK([#include "qglobal.h"], [ ++#if QT_VERSION < 0x030101 ++#error Qt library 3.1.1 or greater required. ++#endif ++# ], ++# ac_qtlib_version="yes", [ ++# echo "no; Qt 3.1.1 or greater is required" ++# exit ++# ]) ++#]) ++ ++dnl A common error message: ++ac_qtdir_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt3-devel)." ++ ++# Check for Qt qmake utility. ++#AC_PATH_PROG(ac_qmake, qmake, [no], $QTDIR/bin:${PATH}) ++AC_PATH_PROG(ac_qmake, qmake, [no], $QTDIR/bin) ++if test "x$ac_qmake" = "xno"; then ++ AC_MSG_ERROR([qmake $ac_qtdir_errmsg]) ++fi ++AC_SUBST(ac_qmake) ++ ++# Check for Qt moc utility. ++#AC_PATH_PROG(ac_moc, moc, [no], $QTDIR/bin:${PATH}) ++AC_PATH_PROG(ac_moc, moc, [no], $QTDIR/bin) ++if test "x$ac_moc" = "xno"; then ++ AC_MSG_ERROR([moc $ac_qtdir_errmsg]) ++fi ++AC_SUBST(ac_moc) ++ ++# Check for Qt uic utility. ++#AC_PATH_PROG(ac_uic, uic, [no], $QTDIR/bin:${PATH}) ++AC_PATH_PROG(ac_uic, uic, [no], $QTDIR/bin) ++if test "x$ac_uic" = "xno"; then ++ AC_MSG_ERROR([uic $ac_qtdir_errmsg]) ++fi ++AC_SUBST(ac_uic) ++ ++ ++ ++echo "" ++echo "-----------------------------------------------------------------" ++echo "Checking for libraries.." ++echo "-----------------------------------------------------------------" ++ ++ ++ ++dnl Checks for libraries. ++AC_CHECK_LIB(m, main) ++AC_CHECK_LIB(X11, main) ++AC_CHECK_LIB(Xext, main) ++AC_CHECK_LIB($ac_qtlib, main) ++ ++dnl Checks for header files. ++AC_HEADER_STDC ++AC_HEADER_SYS_WAIT ++AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h poll.h) ++ ++dnl Checks for library functions. ++AC_CHECK_FUNCS(system) ++ ++ ++ ++################################# ++# ++# libSndFile ++# ++################################# ++echo "" ++echo "--- Checking for libsndfile -------------------------------------" ++sndfile_found=false ++AC_CHECK_LIB([sndfile], sf_open, sndfile_found=yes) ++#PKG_CHECK_MODULES(LIBSNDFILE, sndfile, sndfile_found=true, sndfile_found=false) ++if test "$sndfile_found" = "false"; then ++ AC_MSG_ERROR("sndfile library not found. Website: http://www.mega-nerd.com/libsndfile/") ++else ++ ac_libraries="${ac_libraries} $( pkg-config --libs sndfile )" ++fi ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++ ++ ++###################### ++# ++# FLAC ++# ++######################## ++echo "" ++echo "--- Checking for FLAC++ Libs ------------------------------------" ++flac_support=yes ++AC_ARG_ENABLE(flac_support, [ --disable-flac-support Compile without FLAC support], [flac_support=$enableval]) ++ ++if test "$flac_support" != "no"; then ++ ++ flac_found=no ++ #AC_CHECK_HEADERS(FLAC/file_decoder.h) ++ #AC_CHECK_LIB(FLAC, FLAC__file_decoder_new, flac_found=yes) ++ ++ AC_CHECK_HEADERS(FLAC++/all.h, flac_found=yes) ++ #AC_CHECK_LIB(FLAC++, FLAC::Decoder::File, flac_found=yes) ++ ++ if test "$flac_found" = "no"; then ++ AC_MSG_ERROR("FLAC++ library not found. FLAC website: http://flac.sourceforge.net") ++ else ++ AC_DEFINE(FLAC_SUPPORT, 1, [Define to enable FLAC support]) ++ ac_libraries="${ac_libraries} -lFLAC++ -lFLAC" ++ features_list="${features_list} (FLAC)" ++ fi ++else ++ AC_MSG_WARN("FLAC++ library disabled. WARNING: Many drumkits will not work without FLAC support!!") ++fi ++ ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++ ++ ++############################## ++# ++# JACK SUPPORT ++# ++################################ ++echo "" ++echo "--- Checking for JACK -------------------------------------------" ++jack_support=yes ++AC_ARG_ENABLE(jack-support, [ --disable-jack-support Compile without JACK support], [jack_support=$enableval]) ++ ++JACK_SUPPORT=0 ++ ++if test "$jack_support" != "no"; then ++ AC_CHECK_LIB(jack, main, [ac_jack_lib="yes"], [ac_jack_lib="no"]) ++ if test "x$ac_jack_lib" = "xno"; then ++ AC_MSG_WARN([ *** Could not find the JACK library, disabling JACK driver]) ++ else ++ JACK_SUPPORT=1 ++ AC_DEFINE(JACK_SUPPORT, 1, [Define to enable JACK driver]) ++ features_list="${features_list} (Jack)" ++ ac_libraries="${ac_libraries} -ljack" ++ fi ++else ++ echo "JACK support disabled" ++fi ++echo "-----------------------------------------------------------------" ++echo "" ++ ++########################## ++# ++# ALSA ++# ++########################## ++echo "" ++echo "--- Checking for ALSA Libs --------------------------------------" ++ ++use_alsa=yes ++ ++AC_ARG_ENABLE(alsa, [ --disable-alsa Compile without ALSA support], [use_alsa=$enableval]) ++if test "$use_alsa" = "yes"; then ++ alsa_found=no ++ AC_CHECK_HEADERS(alsa/asoundlib.h) ++dnl if test "x${ac_cv_header_alsa_asoundlib_h}" = xyes ; then ++dnl fi ++ ++ AC_CHECK_LIB(asound, snd_seq_open, alsa_found=yes) ++ if test "$alsa_found" = "no" ; then ++ AC_MSG_WARN([ *** Could not find the ALSA library, disabling ALSA support]) ++ else ++ AC_DEFINE( ALSA_SUPPORT, 1, [Define to use ALSA Audio support]) ++ features_list="${features_list} (Alsa)" ++ ac_libraries="${ac_libraries} -lasound" ++ fi ++else ++ echo "ALSA support disabled." ++fi ++ ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++########################## ++# ++# OSS SUPPORT ++# ++########################## ++echo "" ++echo "--- Checking for OSS --------------------------------------------" ++oss_support=yes ++ ++AC_ARG_ENABLE(oss-support, [ --disable-oss-support Compile without OSS support], [oss_support=$enableval]) ++if test "$oss_support" = "yes"; then ++ AC_DEFINE(OSS_SUPPORT, 1, [Define to enable OSS driver]) ++ features_list="${features_list} (OSS)" ++else ++ echo "OSS support disabled." ++fi ++ ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++ ++################################# ++# ++# PortAudio ++# ++################################# ++echo "" ++echo "--- Checking for PortAudio -------------------------------------" ++ ++portaudio_support=false ++AC_MSG_CHECKING([whether PORTAUDIOPATH environment variable is set]) ++if test "x$PORTAUDIOPATH" = "x"; then ++ AC_MSG_RESULT(PORTAUDIOPATH is not set. No PortAudio support.) ++else ++ AC_MSG_RESULT("[$PORTAUDIOPATH]") ++ if test -f $PORTAUDIOPATH/pa_unix_oss/libportaudio.so; then ++ echo " |-> searching PortAudio in $PORTAUDIOPATH *** Found ***" ++ ac_libraries="${ac_libraries} -L${PORTAUDIOPATH}/pa_unix_oss -lportaudio" ++ features_list="${features_list} (PortAudio)" ++ AC_DEFINE(PORTAUDIO_SUPPORT, 1, [Define to enable PortAudio driver]) ++ ++ ac_qmake_cxxflags="$ac_qmake_cxxflags -I$PORTAUDIOPATH/pa_common" ++ AC_SUBST(ac_qmake_cxxflags) ++ portaudio_support=true ++ else ++ echo " |-> searching PortAudio in $PORTAUDIOPATH *** Not found ***" ++ fi ++ ++fi ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++ ++ ++################################# ++# ++# PortMidi ++# ++################################# ++echo "" ++echo "--- Checking for PortMidi -------------------------------------" ++portmidi_support=false ++AC_MSG_CHECKING([whether PORTMIDIPATH environment variable is set]) ++if test "x$PORTMIDIPATH" = "x"; then ++ AC_MSG_RESULT(PORTMIDIPATH is not set. No PortMidi support.) ++else ++ AC_MSG_RESULT("[$PORTMIDIPATH]") ++ if test -f $PORTMIDIPATH/pm_linux/libportmidi.a; then ++ echo " |-> searching PortMidi in $PORTMIDIPATH *** Found ***" ++ ac_libraries="${ac_libraries} ${PORTMIDIPATH}/pm_linux/libportmidi.a ${PORTMIDIPATH}/porttime/libporttime.a" ++ features_list="${features_list} (PortMidi)" ++ AC_DEFINE(PORTMIDI_SUPPORT, 1, [Define to enable PortMidi driver]) ++ ++ ac_qmake_cxxflags="$ac_qmake_cxxflags -I$PORTMIDIPATH/pm_common -I$PORTMIDIPATH/porttime" ++ AC_SUBST(ac_qmake_cxxflags) ++ portmidi_support=true ++ else ++ echo " |-> searching PortMidi in $PORTMIDIPATH *** Not found ***" ++ fi ++ ++fi ++ ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++ ++ ++################################## ++# ++# LRDF ++# ++################################### ++echo "" ++echo "--- Checking for LRDF -------------------------------------------" ++LRDF_SUPPORT=0 ++lrdf_check=yes ++AC_ARG_ENABLE(lrdf-support, [ --disable-lrdf-support Compile without LRDF support], [lrdf_check=$enableval]) ++if test "$lrdf_check" = "yes"; then ++ lrdf_found=no ++ AC_CHECK_HEADERS(lrdf.h, lrdf_found=yes) ++# AC_CHECK_LIB(lrdf, lrdf_init, lrdf_found=yes) ++ if test "$lrdf_found" = "no" ; then ++ AC_MSG_WARN([ *** Could not find the LRDF library]) ++ else ++ LRDF_SUPPORT=1 ++ AC_DEFINE(LRDF_SUPPORT, 1, [Define to enable LRDF support]) ++ ac_libraries="${ac_libraries} -llrdf -lraptor -lxml2" ++ features_list="${features_list} (LRDF)" ++ fi ++fi ++echo "-----------------------------------------------------------------" ++echo "" ++ ++ ++ ++################################## ++# ++# define the DATA path ++# ++################################### ++AC_DEFINE_UNQUOTED(DATA_PATH, "${ac_prefix}/share/hydrogen/data", [Data dir]) ++AC_DEFINE_UNQUOTED(COMPILED_FEATURES, "${features_list}", [Compiled features]) ++ ++ ++ ++ ++AC_SUBST(ac_libraries) ++ ++ ++AC_OUTPUT( ++Makefile ++hydrogen.pro ++hydrogenPlayer.pro ++hydrogenBenchmark.pro ++hydrogen2Midi.pro ++hydrogenCUI.pro ++hydrogen.desktop ++plugins/Makefile ++plugins/wasp/Makefile ++) ++ ++ ++echo " ++ ++----------------------------------------------------------------- ++ Hydrogen ${hydrogenVersion} configuration: ++----------------------------------------------------------------- ++ ++ Source code location: ${srcdir} ++ Prefix ${ac_prefix} ++ Data path ${ac_prefix}/share/hydrogen ++ LDFLAGS ${ac_libraries} ++" ++if test "x$ac_debug" = "xdebug"; then ++ echo " Debug messages: yes" ++else ++ echo " Debug messages: no" ++fi ++ ++if test "${flac_found}" = "yes"; then ++ echo " FLAC: yes" ++else ++ echo " FLAC: no" ++fi ++ ++if test "${LRDF_SUPPORT}" = "1"; then ++ echo " LRDF: yes" ++else ++ echo " LRDF: no" ++fi ++ ++echo "" ++ ++if test "${JACK_SUPPORT}" = "1"; then ++ echo " Jack: yes" ++else ++ echo " Jack: no" ++fi ++ ++if test "${alsa_found}" = "yes"; then ++ echo " ALSA : yes" ++else ++ echo " ALSA : no" ++fi ++ ++if test "${oss_support}" = "yes"; then ++ echo " OSS: yes" ++else ++ echo " OSS: no" ++fi ++ ++ ++if test "${portaudio_support}" = "true"; then ++ echo " PortAudio yes" ++else ++ echo " PortAudio no" ++fi ++ ++if test "${portmidi_support}" = "true"; then ++ echo " PortMidi: yes" ++else ++ echo " PortMidi: no" ++fi ++ ++ ++echo " ++ Features list = ${features_list} ++ ++----------------------------------------------------------------- ++Now type make to build Hydrogen. ++----------------------------------------------------------------- ++ ++If you're not a member of hydrogen-dev mailing list yet, please join. ++Please see http://www.hydrogen-music.org for details. ++ ++" +diff -Naur hydrogen-0.9.3.orig/src/lib/FLACFile.cpp hydrogen-0.9.3/src/lib/FLACFile.cpp +--- hydrogen-0.9.3.orig/src/lib/FLACFile.cpp 2005-11-08 07:31:22.000000000 -0200 ++++ hydrogen-0.9.3/src/lib/FLACFile.cpp 2008-07-24 19:43:59.000000000 -0300 +@@ -33,6 +33,13 @@ + //#include "FLAC/file_decoder.h" + #include + ++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8 ++#define LEGACY_FLAC ++#else ++#undef LEGACY_FLAC ++#endif ++ ++ + /// Reads a FLAC file...not optimized yet + class FLACFile_real : public FLAC::Decoder::File, public Object + { +@@ -164,16 +171,28 @@ + } + + set_metadata_ignore_all(); ++ ++#ifdef LEGACY_FLAC + set_filename( sFilename.c_str() ); + + State s=init(); + if( s != FLAC__FILE_DECODER_OK ) { ++#else ++ FLAC__StreamDecoderInitStatus s=init(sFilename.c_str() ); ++ if(s!=FLAC__STREAM_DECODER_INIT_STATUS_OK) { ++#endif + errorLog( "[load] Error in init()" ); + } + ++#ifdef LEGACY_FLAC + if ( process_until_end_of_file() == false ) { + errorLog( "[load] Error in process_until_end_of_file()" ); + } ++#else ++ if ( process_until_end_of_stream() == false ) { ++ errorLog( "[load] Error in process_until_end_of_stream()" ); ++ } ++#endif + } + + +diff -Naur hydrogen-0.9.3.orig/src/lib/xml/tinyxml.h hydrogen-0.9.3/src/lib/xml/tinyxml.h +--- hydrogen-0.9.3.orig/src/lib/xml/tinyxml.h 2005-10-17 20:32:04.000000000 -0200 ++++ hydrogen-0.9.3/src/lib/xml/tinyxml.h 2008-07-24 19:44:04.000000000 -0300 +@@ -823,7 +823,7 @@ + #endif + + /// Construct. +- TiXmlDeclaration::TiXmlDeclaration( const char * _version, ++ TiXmlDeclaration( const char * _version, + const char * _encoding, + const char * _standalone ); + diff --git a/media/sound/hydrogen/hydrogen.mkbuild b/media/sound/hydrogen/hydrogen.mkbuild new file mode 100644 index 0000000..653effa --- /dev/null +++ b/media/sound/hydrogen/hydrogen.mkbuild @@ -0,0 +1,95 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/hydrogen/hydrogen-0.9.3.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog README" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/sound/hydrogen" + +# Dependencies +[[SLACK REQUIRED]]="libsndfile" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +hydrogen: hydrogen (A drum machine/sequencer) +hydrogen: +hydrogen: Hydrogen is a simple real-time Drum machine/sequencer. It features +hydrogen: a graphical user interface based on Qt, a sample-based audio engine, +hydrogen: Jack/ALSA/OSS/PortAudio and Export to disk audio drivers, ALSA MIDI +hydrogen: input, ability to import/export XML-based song and drumkit files, +hydrogen: 192 ticks per pattern, 16 voices with volume, mute, solo, ADSR, and +hydrogen: pan capabilities, and import of samples in wave, au, and aiff format. +hydrogen: +hydrogen: +hydrogen: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 + on: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +jack-rack: jack-rack +jack-rack: +jack-rack: JACK Rack is a LADSPA effects rack for the JACK audio API. It +jack-rack: supports MIDI control, arbitrary channels, LRDF XML plugin +jack-rack: descriptions, and the LADCCA session management system. +jack-rack: +jack-rack: +jack-rack: +jack-rack: +jack-rack: +jack-rack: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +lmms: lmms (Linux MultiMedia Studio) +lmms: +lmms: LMMS aims to be a free alternative to popular (but commercial and +lmms: closed- source) programs like FruityLoops, Cubase and Logic giving +lmms: you the ability of producing music with your computer by creating +lmms: cool loops, synthesizing and mixing sounds, arranging samples, +lmms: having more fun with your MIDI-keyboard and much more... +lmms: +lmms: +lmms: +lmms: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +mp3blaster: mp3blaster (a ncurses based audio player) +mp3blaster: +mp3blaster: MP3Blaster is a text console based program for playing mainly mp3 +mp3blaster: audio files. It is very interactive, and has a great list of features. +mp3blaster: Its playlist can be divided in albums or categories (called 'groups'), +mp3blaster: which allows for very sophisticated playback orders. +mp3blaster: +mp3blaster: +mp3blaster: +mp3blaster: +mp3blaster: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure + on: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +pulseaudio: pulseaudio (sound server daemon) +pulseaudio: +pulseaudio: PulseAudio is a sound server for POSIX and Win32 systems. +pulseaudio: +pulseaudio: +pulseaudio: +pulseaudio: +pulseaudio: +pulseaudio: +pulseaudio: http://www.pulseaudio.org/ +pulseaudio: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +qjackctl: qjackctl (a GUI control interface for the JACK sound server) +qjackctl: +qjackctl: QjackCtl is a simple Qt application to control the JACK sound server +qjackctl: daemon (http://jackit.sourceforge.net), for the Linux Audio Desktop +qjackctl: infrastructure. +qjackctl: +qjackctl: +qjackctl: +qjackctl: +qjackctl: +qjackctl: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +twolame: twolame +twolame: +twolame: TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on +twolame: tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 +twolame: code and portions of LAME. TwoLAME includes libtwolame, a fully +twolame: thread-safe shared library with an API very similar to LAME's. +twolame: +twolame: +twolame: +twolame: +twolame: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files + on: install_documentation + on: slackdesc +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +xmms: XMMS (X Multimedia System) by Slack.Sarava +xmms: +xmms: XMMS is a multimedia player for unix systems. XMMS stands for X +xmms: MultiMedia System and can play media files such as MP3, MOD's, WAV +xmms: and others with the use of Input plugins. XMMS is mainly targeted at +xmms: music playback, but through thirdparty plugins some rudimentary video +xmms: capabilities exists, but there are much better systems other than +xmms: XMMS for video support. +xmms: +xmms: by avs +xmms: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group +off: download_source + on: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check +off: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +cinelerra: cinelerra (cinelerra is powerfull Non Linear Video Editor) +cinelerra: +cinelerra: Heroine Virtual Ltd. presents an advanced content creation system +cinelerra: for Linux. Cinelerra takes what normally is a boring server - studied +cinelerra: in computer science classrooms, hidden in back offices - and turns it +cinelerra: into a 50,000 watt flamethrower of multimedia editing. +cinelerra: +cinelerra: This version is the cv.cinelerra.org branch (in fact, a fork). +cinelerra: +cinelerra: http://cv.cinelerra.org/ +cinelerra: +# + # Configure ++if [ "$ARCH" == "i586" ] || [ "$ARCH" == "i686" ]; then ++ CONF_OPTIONS="$CONF_OPTIONS --enable-mmx" ++fi ++ ++if [ "$HAVE_ALTIVEC" == "true" ]; then ++ CONF_OPTIONS="$CONF_OPTIONS --enable-altivec" ++ if [ -f "$CWD/$PACKAGE-altivec.diff" ]; then ++ patch -p0 < $CWD/$PACKAGE-altivec.diff || exit $ERROR_PATCH ++ fi ++fi ++ ++./autogen.sh || exit $ERROR_CONF +#

>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +dvgrab: dvgrab (dvgrab is a ieee1394 dv grabber) +dvgrab: +dvgrab: Excellent command line audio and video DV grabber data via IEEE1394 +dvgrab: +dvgrab: +dvgrab: +dvgrab: +dvgrab: +dvgrab: +dvgrab: +dvgrab: +# /dev/null +rm -rf "$PKG" 2> /dev/null + +# Create directories if necessary +mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR +mkdir -p "$PKG" || exit $ERROR_MKDIR +mkdir -p "$REPOS" || exit $ERROR_MKDIR +mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR + +# Get svn source code +cd "$SRC_DIR" +SND_DIR="`basename svn://svn.mplayerhq.hu/ffmpeg/trunk`" + +if [ "`find "$SRC_DIR/" -name .svn`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then + cd $SND_DIR + svn update || exit $ERROR_VCS +else + svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk $SND_DIR || exit $ERROR_VCS + cd $SND_DIR +fi + +PKG_VERSION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`_svn" + +# Copy svn source +cd "$PKG_WORK" +cp -a $SRC_DIR/* . +PKG_SRC="$PWD/$SND_DIR" +cd "$PKG_SRC" + +# Patch source +patches=" + $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff + $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff" +for patch in $patches; do + if [ -f "$CWD/$patch" ]; then + patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch" ]; then + patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/$patch.gz" ]; then + gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch.gz" ]; then + gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH + fi +done + +if echo [[PATCH URLS]] | grep -q -v "PATCH URLS"; then + for patch_url in [[PATCH URLS]]; do + patch="`basename $patch_url`" + if [ ! -s "$SRC_DIR/$patch" ]; then + wget "$patch_url" -O "$SRC_DIR/$patch" || exit $ERROR_WGET + fi + if [ "`basename $patch .gz`" != "$patch" ]; then + gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH + elif [ "`basename $patch .bz2`" != "$patch" ]; then + bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH + else + patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH + fi + done +fi + +# Configure +if [ "$ARCH" == "powerpc" ]; then + EXTRA_AC_FLAGS="--disable-altivec" +fi +CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF + +# Compile +make $NUMJOBS || exit $ERROR_MAKE + +# Install +make install DESTDIR="$PKG" || exit $ERROR_INSTALL + +# Lets make our package compatible with the ffmpeg debian package +mkdir $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavutil/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavdevice/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavformat/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libswscale/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavcodec/* $PKG/usr/include/ffmpeg +mkdir $PKG/usr/include/postproc +cp $PKG/usr/include/libpostproc/* $PKG/usr/include/postproc + +# Strip binaries +( cd "$PKG" + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +# Install documentation +DOCS="COPYING CREDITS Changelog MAINTAINERS README" +mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR +for doc in $DOCS; do + if [ -f "$doc" ]; then + cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" + fi +done + +# Add package description (slack-desc) +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +cat << EODESC > "$PKG/install/slack-desc" +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +|-----handy-ruler-------------------------------------------------------------| +ffmpeg: ffmpeg (ffmpeg multimedia system) +ffmpeg: +ffmpeg: FFmpeg is a complete solution to record, convert and stream audio +ffmpeg: and video. It includes libavcodec, the leading audio/video codec +ffmpeg: library. +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +EODESC + +# Build the package +cd "$PKG" +makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG + +# Delete source and build directories if requested +if [ "$CLEANUP" == "yes" ]; then + rm -rf "$PKG_WORK" "$PKG" +fi diff --git a/media/video/ffmpeg/.SlackBuild.old b/media/video/ffmpeg/.SlackBuild.old new file mode 100644 index 0000000..e0f1427 --- /dev/null +++ b/media/video/ffmpeg/.SlackBuild.old @@ -0,0 +1,204 @@ +#!/bin/bash +# +# .SlackBuild is free software; you can redistribute +# it and/or modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the License, +# or any later version. +# +# .SlackBuild 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 General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA +# +# slackbuild for , by Silvio Rhatto +# requires: lame libx264 +# tested: - +# + +# Look for slackbuildrc +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# Set variables +CWD="$(pwd)" +SRC_NAME="" +PKG_NAME="" +ARCH=${ARCH:=i486} +SRC_VERSION=${VERSION:=} +PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME +TMP=${TMP:=/tmp} +PKG=${PKG:=$TMP/package-$PKG_NAME} +REPOS=${REPOS:=$TMP} +PREFIX=${PREFIX:=/usr} +PKG_WORK="$TMP/$SRC_NAME" +CONF_OPTIONS=${CONF_OPTIONS:="$EXTRA_AC_FLAGS --enable-shared --enable-pthreads --enable-swscale --enable-x11grab --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libx264 --enable-postproc --enable-gpl"} +NUMJOBS=${NUMJOBS:=""} + +# Set system libraries' path and optmization flags based on $ARCH +LIBDIR="$PREFIX/lib" + +if [ "$ARCH" = "i386" ]; then + SLKCFLAGS="-O2 -march=i386 -mcpu=i686" +elif [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mcpu=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIR="$PREFIX/lib64" + LDFLAGS="-L/lib64 -L/usr/lib64" +fi + +# Set error codes (used by createpkg) +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42 + +# Clean up any leftovers of previous builds +rm -rf "$PKG_WORK" 2> /dev/null +rm -rf "$PKG" 2> /dev/null + +# Create directories if necessary +mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR +mkdir -p "$PKG" || exit $ERROR_MKDIR +mkdir -p "$REPOS" || exit $ERROR_MKDIR +mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR + +# Get svn source code +cd "$SRC_DIR" +SND_DIR="`basename svn://svn.mplayerhq.hu/ffmpeg/trunk`" + +if [ "`find "$SRC_DIR/" -name .svn`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then + cd $SND_DIR + svn update || exit $ERROR_VCS +else + svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk $SND_DIR || exit $ERROR_VCS + cd $SND_DIR +fi + +PKG_VERSION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`_svn" + +# Copy svn source +cd "$PKG_WORK" +cp -a $SRC_DIR/* . +PKG_SRC="$PWD/$SND_DIR" +cd "$PKG_SRC" + +# Patch source +patches=" + $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff + $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff" +for patch in $patches; do + if [ -f "$CWD/$patch" ]; then + patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch" ]; then + patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/$patch.gz" ]; then + gzip -dc "$CWD/$patch.gz" | patch -Np1 || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch.gz" ]; then + gzip -dc "$CWD/patches/$patch.gz" | patch -Np1 || exit $ERROR_PATCH + fi +done + +if echo [[PATCH URLS]] | grep -q -v "PATCH URLS"; then + for patch_url in [[PATCH URLS]]; do + patch="`basename $patch_url`" + if [ ! -s "$SRC_DIR/$patch" ]; then + wget "$patch_url" -O "$SRC_DIR/$patch" || exit $ERROR_WGET + fi + if [ "`basename $patch .gz`" != "$patch" ]; then + gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH + elif [ "`basename $patch .bz2`" != "$patch" ]; then + bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH + else + patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH + fi + done +fi + +# Configure +if [ "$ARCH" == "powerpc" ]; then + EXTRA_AC_FLAGS="--disable-altivec" +fi +CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF + +# Compile +make $NUMJOBS || exit $ERROR_MAKE + +# Install +make install DESTDIR="$PKG" || exit $ERROR_INSTALL + +# Lets make our package compatible with the ffmpeg debian package +mkdir $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavutil/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavdevice/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavformat/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libswscale/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavcodec/* $PKG/usr/include/ffmpeg +mkdir $PKG/usr/include/postproc +cp $PKG/usr/include/libpostproc/* $PKG/usr/include/postproc + +# Strip binaries +( cd "$PKG" + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +# Install documentation +DOCS="COPYING CREDITS Changelog MAINTAINERS README" +mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR +for doc in $DOCS; do + if [ -f "$doc" ]; then + cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" + fi +done + +# Add package description (slack-desc) +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +cat << EODESC > "$PKG/install/slack-desc" +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +|-----handy-ruler-------------------------------------------------------------| +ffmpeg: ffmpeg (ffmpeg multimedia system) +ffmpeg: +ffmpeg: FFmpeg is a complete solution to record, convert and stream audio +ffmpeg: and video. It includes libavcodec, the leading audio/video codec +ffmpeg: library. +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +EODESC + +# Build the package +cd "$PKG" +makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG + +# Delete source and build directories if requested +if [ "$CLEANUP" == "yes" ]; then + rm -rf "$PKG_WORK" "$PKG" +fi diff --git a/media/video/ffmpeg/ffmpeg.mkbuild b/media/video/ffmpeg/ffmpeg.mkbuild new file mode 100644 index 0000000..a5be82c --- /dev/null +++ b/media/video/ffmpeg/ffmpeg.mkbuild @@ -0,0 +1,131 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="svn://svn.mplayerhq.hu/ffmpeg/trunk" + +# Source base name +[[SOURCE NAME]]="ffmpeg" + +# Package name +[[PACKAGE NAME]]="ffmpeg" + +# +# PKG_NAME version +[[VERSION]]="svn_version" + +# +# Documentation files +[[DOCUMENTATION FILES]]="COPYING CREDITS Changelog MAINTAINERS README" + +# Other configure arguments +[[OTHER CONFIGURE ARGS]]="$EXTRA_AC_FLAGS --enable-shared --enable-pthreads --enable-swscale --enable-x11grab --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libx264 --enable-postproc --enable-gpl" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/video/ffmpeg" + +# Dependencies +[[SLACK REQUIRED]]="lame: faac: libx264" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group +off: download_source + on: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check +off: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +ffmpeg: ffmpeg (ffmpeg multimedia system) +ffmpeg: +ffmpeg: FFmpeg is a complete solution to record, convert and stream audio +ffmpeg: and video. It includes libavcodec, the leading audio/video codec +ffmpeg: library. +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +#install_package +# Install +make install DESTDIR="$PKG" || exit $ERROR_INSTALL + +# Lets make our package compatible with the ffmpeg debian package +mkdir $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavutil/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavdevice/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavformat/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libswscale/* $PKG/usr/include/ffmpeg +cp $PKG/usr/include/libavcodec/* $PKG/usr/include/ffmpeg +mkdir $PKG/usr/include/postproc +cp $PKG/usr/include/libpostproc/* $PKG/usr/include/postproc +# + # Configure ++if [ "$ARCH" == "powerpc" ]; then ++ EXTRA_AC_FLAGS="--disable-altivec" ++fi +#p< diff --git a/media/video/ffmpeg2theora/ffmpeg2theora.mkbuild b/media/video/ffmpeg2theora/ffmpeg2theora.mkbuild new file mode 100644 index 0000000..4119ba9 --- /dev/null +++ b/media/video/ffmpeg2theora/ffmpeg2theora.mkbuild @@ -0,0 +1,95 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.21.tar.bz2" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS COPYING ChangeLog NEWS README TODO" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/video/ffmpeg2theora" + +# Dependencies +[[SLACK REQUIRED]]="ffmpeg" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +ffmpeg2theora: ffmpeg2theora +ffmpeg2theora: +ffmpeg2theora: A simple converter to create Ogg Theora files. +ffmpeg2theora: +ffmpeg2theora: +ffmpeg2theora: +ffmpeg2theora: +ffmpeg2theora: +ffmpeg2theora: +ffmpeg2theora: +ffmpeg2theora: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +kino: kino (Kino is a non-linear DV editor for GNU/Linux) +kino: +kino: Kino is a non-linear DV editor for GNU/Linux. It features excellent +kino: integration with IEEE-1394 for capture, VTR control, and recording +kino: back to the camera. It captures video to disk in Raw DV and AVI +kino: format, in both type-1 DV and type-2 DV (separate audio stream) +kino: encodings. +kino: +kino: +kino: http://www.kinodv.org/ +kino: +#qt_fd)->stream); ++ res = lqt_fileno((quicktime_t *)lav_file->qt_fd); + break; + #endif + default: diff --git a/media/video/mjpegtools/mjpegtools-1.9.0rc2-x86_64.diff b/media/video/mjpegtools/mjpegtools-1.9.0rc2-x86_64.diff new file mode 100644 index 0000000..0b834df --- /dev/null +++ b/media/video/mjpegtools/mjpegtools-1.9.0rc2-x86_64.diff @@ -0,0 +1,31 @@ +--- configure.ac.old 2007-09-27 05:53:17.000000000 +0000 ++++ configure.ac 2007-09-27 05:56:20.000000000 +0000 +@@ -431,25 +431,9 @@ + dnl file). + + if test x$have_x86cpu = xtrue -o x$have_ppccpu = xtrue; then +- if test x$host_alias != x; then +- dnl This is to allow cross compiling +- AC_MSG_CHECKING(sub-architecture settings) +- if test x$have_x86cpu = xtrue; then +- host_mod_cpu=`echo $host_cpu | tr _ -` +- ARCHFLAGS="-march=$host_mod_cpu -mcpu=$host_mod_cpu" +- fi +- else +- if test ! -r $srcdir/cpuinfo.sh; then +- AC_MSG_ERROR([cpuinfo.sh script not found - do a cvs update]) +- fi +- AC_MSG_CHECKING(sub-architecture settings) +- chmod +x $srcdir/cpuinfo.sh +- if test x$have_x86cpu = xtrue; then +- ARCHFLAGS=`$srcdir/cpuinfo.sh x86` +- elif test x$have_ppccpu = xtrue; then +- ARCHFLAGS=`$srcdir/cpuinfo.sh ppc` +- fi +- fi ++ AC_MSG_CHECKING(sub-architecture settings) ++ host_mod_cpu=`echo $host_cpu | tr _ -` ++ ARCHFLAGS="-march=$host_mod_cpu -mcpu=$host_mod_cpu" + AC_MSG_RESULT($ARCHFLAGS) + fi + diff --git a/media/video/mjpegtools/mjpegtools.mkbuild b/media/video/mjpegtools/mjpegtools.mkbuild new file mode 100644 index 0000000..b40a4dc --- /dev/null +++ b/media/video/mjpegtools/mjpegtools.mkbuild @@ -0,0 +1,119 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/mjpeg/mjpegtools-1.9.0rc3.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS BUGS CHANGES COPYING ChangeLog INSTALL NEWS PLANS README TODO" + +# Other configure arguments +# +# - Add --enable-runtime-cpudetection for package creation! +# - Removing ivtv as for slack 12.1 it`s not compiling. +[[OTHER CONFIGURE ARGS]]="--with-docdir=/usr/doc/$PKG_NAME-$VERSION" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/video/mjpegtools" + +# +# Dependency list input +[[SLACK REQUIRED]]="libdv: libquicktime" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +mjpegtools: mjpegtools (mjpegtools is a set of softwares for MPEG A/V) +mjpegtools: +mjpegtools: The mjpeg programs are a set of tools that can do recording of videos +mjpegtools: and playback, simple cut-and-paste editing and the MPEG compression +mjpegtools: of audio and video under Linux. +mjpegtools: +mjpegtools: +mjpegtools: +mjpegtools: +mjpegtools: http://mjpeg.sourceforge.net/ +mjpegtools: +# + LIBDIR="$PREFIX/lib" ++ ++if [ "$ARCH" == "i386" ] || [ "$ARCH" == "i486" ]; then ++ CONF_OPTIONS="$CONF_OPTIONS --disable-simd-accel" ++fi +#p< + +#>configure +# Configure +autoreconf -vif +CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF +#body, "%d %s %08lx", &status, category, &disc_id); ++ ret = sscanf( http_hdr->body, "%d %99s %08lx", &status, category, &disc_id); + if( ret!=3 ) { + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); + return -1; +@@ -496,7 +496,7 @@ + ptr++; + // We have a list of exact/inexact matches, so which one do we use? + // So let's take the first one. +- ret = sscanf(ptr, "%s %08lx %s", cddb_data->category, &(cddb_data->disc_id), album_title); ++ ret = sscanf(ptr, "%99s %08lx %99s", cddb_data->category, &(cddb_data->disc_id), album_title); + if( ret!=3 ) { + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); + return -1; +@@ -533,7 +533,7 @@ + switch(status) { + case 200: + // Found exact match +- ret = sscanf(http_hdr->body, "%d %s %08lx %s", &status, cddb_data->category, &(cddb_data->disc_id), album_title); ++ ret = sscanf(http_hdr->body, "%d %99s %08lx %99s", &status, cddb_data->category, &(cddb_data->disc_id), album_title); + if( ret!=4 ) { + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); + return -1; diff --git a/media/video/mplayer/MPlayer.mkbuild b/media/video/mplayer/MPlayer.mkbuild new file mode 100644 index 0000000..363a341 --- /dev/null +++ b/media/video/mplayer/MPlayer.mkbuild @@ -0,0 +1,142 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="AUTHORS ChangeLog Copyright DOCS LICENSE README TOOLS" + +# Other configure arguments +# +# - Add --enable-runtime-cpudetection for package creation! +# - Removing ivtv as for slack 12.1 it`s not compiling. +[[OTHER CONFIGURE ARGS]]="--disable-ivtv --confdir=/etc --language=pt_BR --enable-largefiles --enable-gui --enable-real" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/video/mplayer" + +# +# Dependency list input +[[SLACK REQUIRED]]="speex: jack: libx264: faac: faad2" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +MPlayer: MPlayer (A Movie Player) +MPlayer: +MPlayer: MPlayer is a movie and animation player that supports a wide range +MPlayer: of codecs and file formats, including MPEG 1/2/4, DivX 3/4/5, Windows +MPlayer: Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. +MPlayer: It has many MMX/SSE(2)/3Dnow(Ex) optimized native audio and video +MPlayer: codecs, but allows using XAnim's and RealPlayer's binary codec plugins, +MPlayer: and Win32 codec DLLs. It has basic VCD/DVD playback functionality, +MPlayer: including DVD subtitles, but supports many text-based subtitle formats +MPlayer: too. For video output, nearly every existing interface is supported. +MPlayer: +#download_source +# Dowload source if necessary +SRC="[[SOURCE NAME CONSTRUCTION STRING]]" +URL="[[DOWNLOAD FOLDER URL]]/$SRC" + +if [ ! -s "$SRC_DIR/$SRC" ] || ! [[DECOMPRESSOR]] [[DECOMPRESSOR TEST FLAG]] "$SRC_DIR/$SRC" 2> /dev/null; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +fi + +# Download skin +SKIN="Blue" +SKIN_VERSION="1.7" +SKIN_EXT="bz2" +SKIN_SRC=${PACKAGE_SKIN:=$SKIN-$SKIN_VERSION.tar.$SKIN_EXT} +SKIN_URL="http://www.mplayerhq.hu/MPlayer/skins/$SKIN_SRC" + +if [ ! -s "$SRC_DIR/$SKIN_SRC" ] || ! [[DECOMPRESSOR]] [[DECOMPRESSOR TEST FLAG]] "$SRC_DIR/$SKIN_SRC" 2> /dev/null; then + wget "$SKIN_URL" -O "$SRC_DIR/$SKIN_SRC" || exit $ERROR_WGET +fi +#install_package +# Install +make install DESTDIR="$PKG" || exit $ERROR_INSTALL + +# Skin installation +SKIN_DIR=${SKIN_DIR:=$PKG/usr/share/mplayer/skins} +mkdir -p $SKIN_DIR +tar jxvf $SRC_DIR/$SKIN_SRC -C $SKIN_DIR +mv $SKIN_DIR/$SKIN $SKIN_DIR/default +# + LIBDIR="$PREFIX/lib" ++ ++if [ "$ARCH" == "i586" ] || [ "$ARCH" == "i686" ]; then ++ CONF_OPTIONS="$CONF_OPTIONS --enable-qtx" ++fi +#p< diff --git a/media/video/oggfwd/oggfwd-0.2.diff b/media/video/oggfwd/oggfwd-0.2.diff new file mode 100644 index 0000000..d385874 --- /dev/null +++ b/media/video/oggfwd/oggfwd-0.2.diff @@ -0,0 +1,25 @@ +--- Makefile.orig 2006-10-30 22:04:46.000000000 -0200 ++++ Makefile 2006-10-30 22:04:28.000000000 -0200 +@@ -2,7 +2,7 @@ + SRC = oggfwd.c + MAN = oggfwd.1 + +-PREFIX ?= /usr/local ++PREFIX ?= /usr + BINDIR ?= ${PREFIX}/bin + MAN1DIR ?= ${PREFIX}/man/man1 + +@@ -23,9 +23,10 @@ + ${CC} ${CFLAGS} ${PTHREADFLAGS} ${INCLUDEFLAGS} ${LINKFLAGS} -o ${PROG} $< + + install: ${PROG} +- ${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR} +- test -d ${MAN1DIR} || ${INSTALL} -d -o root ${MAN1DIR} +- ${INSTALL} -c -m 444 -o root -g bin ${MAN} ${MAN1DIR} ++ test -d ${DESTDIR}${BINDIR} || ${INSTALL} -d -o root ${DESTDIR}${BINDIR} ++ ${INSTALL} -c -m 555 -o root -g bin ${PROG} ${DESTDIR}${BINDIR} ++ test -d ${DESTDIR}${MAN1DIR} || ${INSTALL} -d -o root ${DESTDIR}${MAN1DIR} ++ ${INSTALL} -c -m 444 -o root -g bin ${MAN} ${DESTDIR}${MAN1DIR} + + clean: + -@rm -f ${PROG} *~ core *.core diff --git a/media/video/oggfwd/oggfwd.mkbuild b/media/video/oggfwd/oggfwd.mkbuild new file mode 100644 index 0000000..6613731 --- /dev/null +++ b/media/video/oggfwd/oggfwd.mkbuild @@ -0,0 +1,98 @@ +# +# This mkbuild is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or any later version. +# +# This mkbuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple +# Place - Suite 330, Boston, MA 02111-1307, USA +# + +#-------------------- +# Personal variables +#-------------------- +# Author name +[[SLACKBUILD AUTHOR]]="Silvio Rhatto" + +# Initials author name +[[SLACKBUILD AUTHOR INITIALS]]="rha" + +#------------------------ +# Construction Variables +#------------------------ +# +# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... ) +[[DOWNLOAD FOLDER URL]]="http://juba.tvlivre.org/oggfwd-0.2.tar.gz" + +# +# Documentation files. Null ("") to auto-set commom doc-files: +[[DOCUMENTATION FILES]]="ChangeLog README" + +# SlackBuild model +[[SLACKBUILD MODEL]]="generic.mkSlackBuild" + +# SlackBuild PATH in Slack.Sarava tree +[[SLACKBUILD PATH]]="media/video/oggfwd" + +# Dependencies +[[SLACK REQUIRED]]="speex: libshout" + +# Patch depth +[[NUMBER OF PREFIX SLASHES TO STRIP]]="0" + +#--------------------- +# SlackBuild Sections +#--------------------- +# Default sections: +# head, set_variables, slkflags, start_structure, untar_source, +# make_package, install_package, build_package +# Warning: don't remove '#>>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source + on: patch_source +off: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +oggfwd: OggFWD (a simple ogg streamer) +oggfwd: +oggfwd: A simple ogg streamer (to icecast compatible servers), very useful +oggfwd: for video streaming. +oggfwd: +oggfwd: +oggfwd: +oggfwd: +oggfwd: +oggfwd: http://v2v.cc/~j/oggfwd/ +oggfwd: +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package +off: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: install_documentation +off: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>install_package +# Install +strip theorur +make make_pkg +#build_package +# Build the package +mv *-1rd.tgz $REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG +#>' and "#<<" tags. +#>> Start SlackBuild Sections: + on: head + on: slackbuildrc + on: set_variables + on: slkflags + on: error_codes + on: start_structure +off: create_build_user_and_group + on: download_source +off: svn_source +off: md5sum_download_and_check_0 +off: md5sum_download_and_check_1 +off: gpg_signature_check + on: untar_source +off: patch_source + on: configure + on: make_package + on: install_package + on: strip_binaries +off: compress_manpages +off: compress_info_files +off: copy_init_scripts +off: copy_config_files + on: install_documentation + on: slackdesc +off: move_config_files +off: postinstall_script + on: build_package + on: clean_builds +#<< End SlackBuild Sections + +#------------------ +# Sections changes +#------------------ +#>slackdesc +ucview: ucview (video capture program) +ucview: +ucview: UCView is a video capture and display program +ucview: based on the unicap video imaging library. +ucview: +ucview: +ucview: +ucview: +ucview: +ucview: http://unicap-imaging.org/ucview.htm +ucview: +#