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: Language |
32 Group: Language |
33 License: STLport |
33 License: STLport |
34 Version: 5.0.2 |
34 Version: 5.2.1 |
35 Release: 20080101 |
35 Release: 20090106 |
36 |
36 |
37 # package options |
37 # package options |
38 %option with_debug yes |
38 %option with_debug yes |
39 |
39 |
40 # list of sources |
40 # list of sources |
41 Source0: http://switch.dl.sourceforge.net/stlport/STLport-%{version}.tar.gz |
41 Source0: http://switch.dl.sourceforge.net/stlport/STLport-%{version}.tar.gz |
|
42 Patch0: stlport.patch |
42 |
43 |
43 # build information |
44 # build information |
44 Prefix: %{l_prefix} |
45 Prefix: %{l_prefix} |
45 BuildRoot: %{l_buildroot} |
46 BuildRoot: %{l_buildroot} |
46 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc |
47 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc |
64 url = http://prdownloads.sourceforge.net/stlport/ |
65 url = http://prdownloads.sourceforge.net/stlport/ |
65 regex = STLport-(\d+\.\d+\.\d+)\.tar\.gz |
66 regex = STLport-(\d+\.\d+\.\d+)\.tar\.gz |
66 } |
67 } |
67 |
68 |
68 %prep |
69 %prep |
69 %setup -q -n STLport |
70 %setup -q -n STLport-%{version} |
|
71 %patch -p0 |
70 %{l_shtool} subst \ |
72 %{l_shtool} subst \ |
71 -e 's;\(define _STLP_NATIVE_INCLUDE_PATH\).*;\1 %{l_prefix}/include/g++;' \ |
73 -e 's;^\(# if defined (__QNXNTO__) || ( defined(__GNUC__)\) && defined(__APPLE__) );\1;' \ |
72 stlport/config/stl_gcc.h |
74 src/num_put_float.cpp |
73 %{l_shtool} subst \ |
75 %{l_shtool} subst \ |
74 -e 's;^\(# if defined (__QNXNTO__) || ( defined(__GNUC__)\) && defined(__APPLE__);\1;' \ |
76 -e 's/__f->_file;/fileno((FILE *)__f);/g' \ |
|
77 src/_stdio_file.h |
|
78 %{l_shtool} subst \ |
|
79 -e 's;\(_STLP_STATIC_ASSERT( sizeof(long double).*\);//\1;' \ |
|
80 src/num_get_float.cpp |
|
81 %{l_shtool} subst \ |
|
82 -e 's;( \(defined(__GNUC__)\);\1;' \ |
75 src/num_put_float.cpp |
83 src/num_put_float.cpp |
76 |
84 |
77 %build |
85 %build |
78 buildtargets="release-static" |
86 buildtargets="release-static" |
79 %if "%{with_debug}" == "yes" |
87 %if "%{with_debug}" == "yes" |
80 buildtargets="$buildtargets dbg-static stldbg-static" |
88 buildtargets="$buildtargets dbg-static stldbg-static" |
81 %endif |
89 %endif |
82 cd build/lib && %{l_make} %{l_mflags} -f gcc.mak $buildtargets |
90 cd build/lib && %{l_make} %{l_mflags -O} -f gcc.mak $buildtargets |
83 |
91 |
84 %install |
92 %install |
85 rm -rf $RPM_BUILD_ROOT |
93 rm -rf $RPM_BUILD_ROOT |
86 %{l_shtool} mkdir -f -p -m 755 \ |
94 %{l_shtool} mkdir -f -p -m 755 \ |
87 $RPM_BUILD_ROOT%{l_prefix}/include |
95 $RPM_BUILD_ROOT%{l_prefix}/include |