packages: pfstmo/pfstmo-c++.patch (NEW), pfstmo/pfstmo-opt.patch (NEW), pfs...

qboosh qboosh at pld-linux.org
Sat Feb 4 15:04:22 CET 2012


Author: qboosh                       Date: Sat Feb  4 14:04:22 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/pfstmo:
   pfstmo-c++.patch (NONE -> 1.1)  (NEW), pfstmo-opt.patch (NONE -> 1.1)  (NEW), pfstmo.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pfstmo/pfstmo-c++.patch
diff -u /dev/null packages/pfstmo/pfstmo-c++.patch:1.1
--- /dev/null	Sat Feb  4 15:04:22 2012
+++ packages/pfstmo/pfstmo-c++.patch	Sat Feb  4 15:04:17 2012
@@ -0,0 +1,11 @@
+--- pfstmo-1.4/src/mantiuk08/display_adaptive_tmo.h.orig	2009-02-23 19:46:36.000000000 +0100
++++ pfstmo-1.4/src/mantiuk08/display_adaptive_tmo.h	2012-02-04 08:32:14.497281537 +0100
+@@ -29,6 +29,8 @@
+  * $Id$
+  */
+ 
++#include <memory>
++
+ #include "display_function.h"
+ #include "display_size.h"
+ 

================================================================
Index: packages/pfstmo/pfstmo-opt.patch
diff -u /dev/null packages/pfstmo/pfstmo-opt.patch:1.1
--- /dev/null	Sat Feb  4 15:04:22 2012
+++ packages/pfstmo/pfstmo-opt.patch	Sat Feb  4 15:04:17 2012
@@ -0,0 +1,35 @@
+--- pfstmo-1.4/configure.ac.orig	2009-02-23 20:10:23.000000000 +0100
++++ pfstmo-1.4/configure.ac	2012-02-04 13:46:34.797913050 +0100
+@@ -37,13 +37,12 @@
+ 		AC_HELP_STRING([--enable-debug],
+ 				 [Enable debug symbols and asserts]),
+ 		 [if test "$enable_debug" = "yes" ; then
+-                     temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O./ /; s/-g//"`
++                     temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O[0-9]/ /"`
+ 		     CXXFLAGS="-g $temp_CXXFLAGS"
+ 		     AC_DEFINE([DEBUG])
+ 		  fi],
+                   [enable_debug="no"
+-                     temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O./ /; s/-g//"`
+-   	             CXXFLAGS="-O3 $temp_CXXFLAGS"
++   	             CXXFLAGS="-O3 $CXXFLAGS"
+                      AC_DEFINE(NDEBUG, 1, [Disable assertion checks])
+ 
+ 
+@@ -58,7 +57,7 @@
+ 
+                      AC_MSG_CHECKING([for $CC optimization options])
+                      temp_CXXFLAGS="$CXXFLAGS"
+-                     CXXFLAGS="$CXXFLAGS -ffast-math -ftree-vectorize -mfpmath=sse,387"
++                     CXXFLAGS="$CXXFLAGS -ffast-math -ftree-vectorize"
+                      AC_COMPILE_IFELSE([
+ /* nothing */
+                        ], [AC_MSG_RESULT([yes])], [CXXFLAGS="$temp_CXXFLAGS"; AC_MSG_RESULT([no])])
+@@ -76,7 +75,6 @@
+ dnl System detection and configuration
+ dnl
+ 
+-AX_GCC_ARCHFLAG($enable_portable, [CXXFLAGS="$CXXFLAGS $ax_cv_gcc_archflag"])
+ 
+ dnl PFS tools library - base for input sources
+ AC_MSG_CHECKING([for pfs library])

================================================================
Index: packages/pfstmo/pfstmo.spec
diff -u /dev/null packages/pfstmo/pfstmo.spec:1.1
--- /dev/null	Sat Feb  4 15:04:22 2012
+++ packages/pfstmo/pfstmo.spec	Sat Feb  4 15:04:17 2012
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+Summary:	PFS tone mapping operators
+Summary(pl.UTF-8):	PFS tone mapping operators - operatory odwzorowania tonów (kompresji dynamiki)
+Name:		pfstmo
+Version:	1.4
+Release:	1
+License:	GPL v2+
+Group:		Applications/Graphics
+Source0:	http://downloads.sourceforge.net/pfstools/%{name}-%{version}.tar.gz
+# Source0-md5:	90409a9adda70f59001c04cafcdab8d6
+Patch0:		%{name}-c++.patch
+Patch1:		%{name}-opt.patch
+URL:		http://pfstools.sourceforge.net/pfstmo.html
+BuildRequires:	autoconf
+BuildRequires:	automake >= 1.6
+BuildRequires:	fftw3-single-devel >= 3.0
+BuildRequires:	gsl-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool >= 2:1.5
+BuildRequires:	pfstools-devel >= 1.0
+BuildRequires:	pkgconfig
+%if 0%{?debug:1}
+BuildRequires:	gcc-c++ >= 6:4.2
+BuildRequires:	libgomp-devel
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pfstmo package contains the implementation of state-of-the-art tone
+mapping operators. The motivation here is to provide an implementation
+of tone mapping operators suitable for convenient processing of both
+static images and animations.
+
+%description -l pl.UTF-8
+Pakiet pfstmo zawiera implementacje operatorów odwzorowania tonów
+(kompresji dynamiki). Celem jest zapewnienie operatorów nadających się
+do wygodnego przetwarzania obrazów statycznych i animacji.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	%{?debug:--enable-debug}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/pfstmo_*
+%{_mandir}/man1/pfstmo_*.1*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/02/04 14:04:17  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list