michael@110: ## michael@110: ## sswf.spec -- OpenPKG RPM Package Specification michael@110: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@110: ## michael@110: ## Permission to use, copy, modify, and distribute this software for michael@110: ## any purpose with or without fee is hereby granted, provided that michael@110: ## the above copyright notice and this permission notice appear in all michael@110: ## copies. michael@110: ## michael@110: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@110: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@110: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@110: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@110: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@110: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@110: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@110: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@110: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@110: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@110: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@110: ## SUCH DAMAGE. michael@110: ## michael@110: michael@110: # package information michael@110: Name: sswf michael@110: Summary: Script SWF Format michael@110: URL: http://www.m2osw.com/sswf michael@110: Vendor: Alexis Wilke et al. michael@110: Packager: OpenPKG Foundation e.V. michael@110: Distribution: OpenPKG Community michael@110: Class: EVAL michael@110: Group: Flash michael@110: License: GPL michael@641: Version: 1.8.4 michael@111: Release: 20090106 michael@110: michael@110: # list of sources michael@110: Source0: http://switch.dl.sourceforge.net/sswf/sswf-%{version}-src.tar.bz2 michael@110: Patch0: sswf.patch michael@110: michael@110: # build information michael@641: BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes michael@641: PreReq: OpenPKG, openpkg >= 20100101 michael@110: BuildPreReq: libiconv, jpeg, zlib, freetype michael@110: PreReq: libiconv, jpeg, zlib, freetype michael@110: michael@110: %description michael@110: Script SWF (SSWF) is a C/C++ library and scripting language to michael@110: dynamically create Adobe Flash animations in SWF format. michael@110: michael@110: %track michael@110: prog sswf = { michael@110: version = %{version} michael@110: url = http://prdownloads.sourceforge.net/sswf/ michael@110: regex = sswf-(__VER__)-src\.tar\.bz2 michael@110: } michael@110: michael@110: %prep michael@110: %setup -q michael@110: %patch -p0 michael@641: case "%{l_platform -t}" in michael@641: i?86-* | amd64-* ) michael@641: %{l_shtool} subst \ michael@641: -e 's;^\(DEFS = @DEFS@\);\1 -DITSLITTLE;' \ michael@641: src/lib/Makefile.in michael@641: %{l_shtool} subst \ michael@641: -e 's;^\(#if defined(__MINGW32__) || defined(_MSVC)\);\1 || defined(ITSLITTLE);' \ michael@641: include/sswf/libsswf-config.h michael@641: ;; michael@641: sun4u-* ) michael@641: ( echo "This software is building on a bit endian architecture, but unfortunately" michael@641: echo "the developer has failed to portably write the software to accommadate" michael@641: echo "big endian. Little endian receives better support." michael@641: ) | %{l_rpmtool} msg -b -t warn michael@641: ;; michael@641: esac michael@110: michael@110: %build michael@110: CC="%{l_cc}" \ michael@110: CXX="%{l_cxx}" \ michael@110: CFLAGS="%{l_cflags -O}" \ michael@110: CXXFLAGS="%{l_cxxflags -O}" \ michael@110: CPPFLAGS="%{l_cppflags}" \ michael@110: LDFLAGS="%{l_ldflags}" \ michael@110: ./configure \ michael@110: --prefix=%{l_prefix} \ michael@110: --mandir=%{l_prefix}/man \ michael@110: --disable-rpm-docs \ michael@110: --disable-debug \ michael@110: --disable-yydebug \ michael@110: --disable-shared michael@110: %{l_make} %{l_mflags -O} michael@110: michael@110: %install michael@641: %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" michael@110: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@110: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@110: michael@110: %files -f files michael@110: michael@110: %clean michael@110: