# HG changeset patch # User Michael Schloh von Bennewitz # Date 1235560246 -3600 # Node ID b70af19a34654d7707ed373bcd08b878e1efc1f0 # Parent 7fdb96a64ea919b8b688ec0ec51019f1e0e0f510 Import package vendor original specs for necessary manipulations. diff -r 7fdb96a64ea9 -r b70af19a3465 sswf/sswf.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sswf/sswf.patch Wed Feb 25 12:10:46 2009 +0100 @@ -0,0 +1,39 @@ +Index: include/sswf/libsswf.h +--- include/sswf/libsswf.h.orig 2008-06-23 07:51:47 +0200 ++++ include/sswf/libsswf.h 2008-06-23 18:10:33 +0200 +@@ -71,12 +71,14 @@ + /* wint_t is an "equivalent" to wchar_t without being limited to 16 bits as on MS-Windows */ + #ifndef _MSVC + #ifndef __APPLE_CC__ ++#ifndef __FreeBSD__ + #ifndef _WINT_T + #define _WINT_T + typedef unsigned int wint_t; + #endif + #endif + #endif ++#endif + + #ifndef M_PI + #define M_PI 3.14159265358979323846 +@@ -88,7 +90,7 @@ + #define rint(x) ((double) (long) floor(x + 0.5)) + #endif + +-#ifdef _LIBICONV_H ++#if defined(_LIBICONV_H) && !defined(__FreeBSD__) + #define ICONV_INPUT_CAST + #else + /* older versions of iconv() were broken in regard to the +Index: include/sswf/libsswf_c.h +--- include/sswf/libsswf_c.h.orig 2008-06-23 07:51:47 +0200 ++++ include/sswf/libsswf_c.h 2008-06-23 18:10:33 +0200 +@@ -38,7 +38,7 @@ + + #include + #include +-#if IRIX ++#if IRIX || defined(__FreeBSD__) + #include + #endif + #include diff -r 7fdb96a64ea9 -r b70af19a3465 sswf/sswf.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sswf/sswf.spec Wed Feb 25 12:10:46 2009 +0100 @@ -0,0 +1,92 @@ +## +## sswf.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. +## +## 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: sswf +Summary: Script SWF Format +URL: http://www.m2osw.com/sswf +Vendor: Alexis Wilke et al. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Flash +License: GPL +Version: 1.8.3 +Release: 20080914 + +# list of sources +Source0: http://switch.dl.sourceforge.net/sswf/sswf-%{version}-src.tar.bz2 +Patch0: sswf.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes +PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: libiconv, jpeg, zlib, freetype +PreReq: libiconv, jpeg, zlib, freetype +AutoReq: no +AutoReqProv: no + +%description + Script SWF (SSWF) is a C/C++ library and scripting language to + dynamically create Adobe Flash animations in SWF format. + +%track + prog sswf = { + version = %{version} + url = http://prdownloads.sourceforge.net/sswf/ + regex = sswf-(__VER__)-src\.tar\.bz2 + } + +%prep + %setup -q + %patch -p0 + +%build + CC="%{l_cc}" \ + CXX="%{l_cxx}" \ + CFLAGS="%{l_cflags -O}" \ + CXXFLAGS="%{l_cxxflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --mandir=%{l_prefix}/man \ + --disable-rpm-docs \ + --disable-debug \ + --disable-yydebug \ + --disable-shared + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +