29 Packager: OpenPKG Foundation e.V. |
29 Packager: OpenPKG Foundation e.V. |
30 Distribution: OpenPKG Community |
30 Distribution: OpenPKG Community |
31 Class: EVAL |
31 Class: EVAL |
32 Group: Flash |
32 Group: Flash |
33 License: GPL |
33 License: GPL |
34 Version: 1.8.3 |
34 Version: 1.8.4 |
35 Release: 20090106 |
35 Release: 20090106 |
36 |
36 |
37 # list of sources |
37 # list of sources |
38 Source0: http://switch.dl.sourceforge.net/sswf/sswf-%{version}-src.tar.bz2 |
38 Source0: http://switch.dl.sourceforge.net/sswf/sswf-%{version}-src.tar.bz2 |
39 Patch0: sswf.patch |
39 Patch0: sswf.patch |
40 |
40 |
41 # build information |
41 # build information |
42 Prefix: %{l_prefix} |
42 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes |
43 BuildRoot: %{l_buildroot} |
43 PreReq: OpenPKG, openpkg >= 20100101 |
44 BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes |
|
45 PreReq: OpenPKG, openpkg >= 20060823 |
|
46 BuildPreReq: libiconv, jpeg, zlib, freetype |
44 BuildPreReq: libiconv, jpeg, zlib, freetype |
47 PreReq: libiconv, jpeg, zlib, freetype |
45 PreReq: libiconv, jpeg, zlib, freetype |
48 AutoReq: no |
|
49 AutoReqProv: no |
|
50 |
46 |
51 %description |
47 %description |
52 Script SWF (SSWF) is a C/C++ library and scripting language to |
48 Script SWF (SSWF) is a C/C++ library and scripting language to |
53 dynamically create Adobe Flash animations in SWF format. |
49 dynamically create Adobe Flash animations in SWF format. |
54 |
50 |
60 } |
56 } |
61 |
57 |
62 %prep |
58 %prep |
63 %setup -q |
59 %setup -q |
64 %patch -p0 |
60 %patch -p0 |
|
61 case "%{l_platform -t}" in |
|
62 i?86-* | amd64-* ) |
|
63 %{l_shtool} subst \ |
|
64 -e 's;^\(DEFS = @DEFS@\);\1 -DITSLITTLE;' \ |
|
65 src/lib/Makefile.in |
|
66 %{l_shtool} subst \ |
|
67 -e 's;^\(#if defined(__MINGW32__) || defined(_MSVC)\);\1 || defined(ITSLITTLE);' \ |
|
68 include/sswf/libsswf-config.h |
|
69 ;; |
|
70 sun4u-* ) |
|
71 ( echo "This software is building on a bit endian architecture, but unfortunately" |
|
72 echo "the developer has failed to portably write the software to accommadate" |
|
73 echo "big endian. Little endian receives better support." |
|
74 ) | %{l_rpmtool} msg -b -t warn |
|
75 ;; |
|
76 esac |
65 |
77 |
66 %build |
78 %build |
67 CC="%{l_cc}" \ |
79 CC="%{l_cc}" \ |
68 CXX="%{l_cxx}" \ |
80 CXX="%{l_cxx}" \ |
69 CFLAGS="%{l_cflags -O}" \ |
81 CFLAGS="%{l_cflags -O}" \ |
78 --disable-yydebug \ |
90 --disable-yydebug \ |
79 --disable-shared |
91 --disable-shared |
80 %{l_make} %{l_mflags -O} |
92 %{l_make} %{l_mflags -O} |
81 |
93 |
82 %install |
94 %install |
83 rm -rf $RPM_BUILD_ROOT |
95 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" |
84 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
|
85 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
96 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
86 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
97 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
87 |
98 |
88 %files -f files |
99 %files -f files |
89 |
100 |
90 %clean |
101 %clean |
91 rm -rf $RPM_BUILD_ROOT |
|
92 |
102 |