Import package vendor original specs for necessary manipulations.

Wed, 25 Feb 2009 12:10:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 25 Feb 2009 12:10:46 +0100
changeset 110
b70af19a3465
parent 109
7fdb96a64ea9
child 111
7f3c34b6208f

Import package vendor original specs for necessary manipulations.

sswf/sswf.patch file | annotate | diff | comparison | revisions
sswf/sswf.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sswf/sswf.patch	Wed Feb 25 12:10:46 2009 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +Index: include/sswf/libsswf.h
     1.5 +--- include/sswf/libsswf.h.orig	2008-06-23 07:51:47 +0200
     1.6 ++++ include/sswf/libsswf.h	2008-06-23 18:10:33 +0200
     1.7 +@@ -71,12 +71,14 @@
     1.8 + /* wint_t is an "equivalent" to wchar_t without being limited to 16 bits as on MS-Windows */
     1.9 + #ifndef _MSVC
    1.10 + #ifndef __APPLE_CC__
    1.11 ++#ifndef __FreeBSD__
    1.12 + #ifndef _WINT_T
    1.13 + #define _WINT_T
    1.14 + typedef unsigned int	wint_t;
    1.15 + #endif
    1.16 + #endif
    1.17 + #endif
    1.18 ++#endif
    1.19 + 
    1.20 + #ifndef	M_PI
    1.21 + #define	M_PI		3.14159265358979323846
    1.22 +@@ -88,7 +90,7 @@
    1.23 + #define	rint(x)		((double) (long) floor(x + 0.5))
    1.24 + #endif
    1.25 + 
    1.26 +-#ifdef _LIBICONV_H
    1.27 ++#if defined(_LIBICONV_H) && !defined(__FreeBSD__)
    1.28 + #define	ICONV_INPUT_CAST
    1.29 + #else
    1.30 + /* older versions of iconv() were broken in regard to the
    1.31 +Index: include/sswf/libsswf_c.h
    1.32 +--- include/sswf/libsswf_c.h.orig	2008-06-23 07:51:47 +0200
    1.33 ++++ include/sswf/libsswf_c.h	2008-06-23 18:10:33 +0200
    1.34 +@@ -38,7 +38,7 @@
    1.35 + 
    1.36 + #include <stdlib.h>
    1.37 + #include <stdarg.h>
    1.38 +-#if IRIX
    1.39 ++#if IRIX || defined(__FreeBSD__)
    1.40 + #include <inttypes.h>
    1.41 + #endif
    1.42 + #include <sswf/libsswf-config.h>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sswf/sswf.spec	Wed Feb 25 12:10:46 2009 +0100
     2.3 @@ -0,0 +1,92 @@
     2.4 +##
     2.5 +##  sswf.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package information
    2.28 +Name:         sswf
    2.29 +Summary:      Script SWF Format
    2.30 +URL:          http://www.m2osw.com/sswf
    2.31 +Vendor:       Alexis Wilke et al.
    2.32 +Packager:     OpenPKG Foundation e.V.
    2.33 +Distribution: OpenPKG Community
    2.34 +Class:        EVAL
    2.35 +Group:        Flash
    2.36 +License:      GPL
    2.37 +Version:      1.8.3
    2.38 +Release:      20080914
    2.39 +
    2.40 +#   list of sources
    2.41 +Source0:      http://switch.dl.sourceforge.net/sswf/sswf-%{version}-src.tar.bz2
    2.42 +Patch0:       sswf.patch
    2.43 +
    2.44 +#   build information
    2.45 +Prefix:       %{l_prefix}
    2.46 +BuildRoot:    %{l_buildroot}
    2.47 +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes
    2.48 +PreReq:       OpenPKG, openpkg >= 20060823
    2.49 +BuildPreReq:  libiconv, jpeg, zlib, freetype
    2.50 +PreReq:       libiconv, jpeg, zlib, freetype
    2.51 +AutoReq:      no
    2.52 +AutoReqProv:  no
    2.53 +
    2.54 +%description
    2.55 +    Script SWF (SSWF) is a C/C++ library and scripting language to
    2.56 +    dynamically create Adobe Flash animations in SWF format.
    2.57 +
    2.58 +%track
    2.59 +    prog sswf = {
    2.60 +        version   = %{version}
    2.61 +        url       = http://prdownloads.sourceforge.net/sswf/
    2.62 +        regex     = sswf-(__VER__)-src\.tar\.bz2
    2.63 +    }
    2.64 +
    2.65 +%prep
    2.66 +    %setup -q
    2.67 +    %patch -p0
    2.68 +
    2.69 +%build
    2.70 +    CC="%{l_cc}" \
    2.71 +    CXX="%{l_cxx}" \
    2.72 +    CFLAGS="%{l_cflags -O}" \
    2.73 +    CXXFLAGS="%{l_cxxflags -O}" \
    2.74 +    CPPFLAGS="%{l_cppflags}" \
    2.75 +    LDFLAGS="%{l_ldflags}" \
    2.76 +    ./configure \
    2.77 +        --prefix=%{l_prefix} \
    2.78 +        --mandir=%{l_prefix}/man \
    2.79 +        --disable-rpm-docs \
    2.80 +        --disable-debug \
    2.81 +        --disable-yydebug \
    2.82 +        --disable-shared
    2.83 +    %{l_make} %{l_mflags -O}
    2.84 +
    2.85 +%install
    2.86 +    rm -rf $RPM_BUILD_ROOT
    2.87 +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    2.88 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    2.89 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    2.90 +
    2.91 +%files -f files
    2.92 +
    2.93 +%clean
    2.94 +    rm -rf $RPM_BUILD_ROOT
    2.95 +

mercurial