OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: r...@openpkg.org Module: openpkg-src Date: 07-Mar-2009 21:19:56 Branch: HEAD Handle: 2009030720195500 Added files: openpkg-src/flvtoolxx flvtoolxx.patch flvtoolxx.spec Log: new package: flvtoolxx 1.1.7 (Flash Video Manipulation Tool) Summary: Revision Changes Path 1.1 +85 -0 openpkg-src/flvtoolxx/flvtoolxx.patch 1.1 +82 -0 openpkg-src/flvtoolxx/flvtoolxx.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/flvtoolxx/flvtoolxx.patch ============================================================================ $ cvs diff -u -r0 -r1.1 flvtoolxx.patch --- /dev/null 2009-03-07 21:19:55 +0100 +++ flvtoolxx.patch 2009-03-07 21:19:55 +0100 @@ -0,0 +1,85 @@ +Index: AMFData.h +--- AMFData.h.orig 2009-01-22 02:09:49 +0100 ++++ AMFData.h 2009-03-07 21:14:29 +0100 +@@ -17,13 +17,20 @@ + #ifdef __APPLE__ + #include <architecture/byte_order.h> + #define hton64(x) OSSwapHostToBigInt64(x) +-#else ++#elif defined(__linux__) + #include <byteswap.h> + #if __BYTE_ORDER == __LITTLE_ENDIAN + #define hton64(x) bswap_64(x) + #else + #define hton64(x) (x) + #endif ++#elif defined(__FreeBSD__) ++ #include <sys/endian.h> ++ #if __BYTE_ORDER == __LITTLE_ENDIAN ++ #define hton64(x) bswap64(x) ++ #else ++ #define hton64(x) (x) ++ #endif + #endif + + enum AMFType { +Index: SConscript +--- SConscript.orig 2007-06-05 05:35:40 +0200 ++++ SConscript 2009-03-07 21:14:29 +0100 +@@ -4,6 +4,6 @@ + source = ['flvtool++.cpp', + 'AMFData.cpp'], + CPPPATH= ['.', +- '/usr/local/include/boost-1_33_1']) ++ '@l_prefix@/include', '@l_prefix@/include/boost']) + + Return('flvtoolxx') +Index: SConstruct +--- SConstruct.orig 2008-10-17 03:00:36 +0200 ++++ SConstruct 2009-03-07 21:14:56 +0100 +@@ -1,5 +1,5 @@ + libd = '#lib/' +-env = Environment(CPPFLAGS='-ggdb -O3 -Wall', LINKFLAGS='-ggdb') ++env = Environment(CPPFLAGS='-O3', LINKFLAGS='') + env.TargetSignatures('content') + + Export('env libd') +Index: serialized_buffer.h +--- serialized_buffer.h.orig 2008-11-05 01:54:15 +0100 ++++ serialized_buffer.h 2009-03-07 21:14:29 +0100 +@@ -17,7 +17,7 @@ + #define LE32(x) OSSwapLittleToHostInt32(x) + #define LE64(x) OSSwapLittleToHostInt64(x) + +-#else // Linux byteswap defs ++#elif defined(__linux__) + + #include <byteswap.h> + #include <endian.h> +@@ -38,6 +38,26 @@ + #define LE64(x) __bswap_64(x) + #endif + ++#elif defined(__FreeBSD__) ++ ++#include <sys/endian.h> ++ ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++ #define BE16(x) bswap16(x) ++ #define BE32(x) bswap32(x) ++ #define BE64(x) bswap64(x) ++ #define LE16(x) (x) ++ #define LE32(x) (x) ++ #define LE64(x) (x) ++#else ++ #define BE16(x) (x) ++ #define BE32(x) (x) ++ #define BE64(x) (x) ++ #define LE16(x) bswap16(x) ++ #define LE32(x) bswap32(x) ++ #define LE64(x) bswap64(x) ++#endif ++ + #endif + + class end_of_buffer : public std::exception { @@ . patch -p0 <<'@@ .' Index: openpkg-src/flvtoolxx/flvtoolxx.spec ============================================================================ $ cvs diff -u -r0 -r1.1 flvtoolxx.spec --- /dev/null 2009-03-07 21:19:55 +0100 +++ flvtoolxx.spec 2009-03-07 21:19:55 +0100 @@ -0,0 +1,82 @@ +## +## flvtoolxx.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS 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. +## + +# package information +Name: flvtoolxx +Summary: Flash Video Manipulation Tool +URL: http://mirror.facebook.com/facebook/flvtool++/ +Vendor: Facebook Inc. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Video +License: Open Source +Version: 1.1.7 +Release: 20090307 + +# list of sources +Source0: http://mirror.facebook.com/facebook/flvtool++/flvtool++-%{version}.tar.gz +Patch0: flvtoolxx.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, scons, gcc, gcc::with_cxx = yes +PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: boost +PreReq: boost +AutoReq: no +AutoReqProv: no + +%description + FLVTool++ is tool for hinting and manipulating the metadata of Adobe + Flash Video (FLV) files. + +%track + prog flvtoolxx = { + version = %{version} + url = http://mirror.facebook.com/facebook/flvtool++/ + regex = flvtool\+\+-(__VER__)\.tar\.gz + } + +%prep + %setup -q -c -n flvtool++-%{version} + %patch -p0 + +%build + %{l_shtool} subst %{l_value -s -a} SConscript + scons + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin + %{l_shtool} install -c -s -m 755 \ + flvtool++ $RPM_BUILD_ROOT%{l_prefix}/bin/ + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org