]> git.pld-linux.org Git - packages/crossmingw32-lib3ds.git/blame - crossmingw32-lib3ds.spec
- cleanup
[packages/crossmingw32-lib3ds.git] / crossmingw32-lib3ds.spec
CommitLineData
18e0d3f1 1%define realname lib3ds
2Summary: The 3D Studio File Format Library - Mingw32 cross version
d39c19af 3Summary(pl.UTF-8): Biblioteka obsługująca format plików 3D Studio - wersja skrośna dla Mingw32
18e0d3f1 4Name: crossmingw32-%{realname}
5Version: 1.2.0
6580e556 6Release: 4
18e0d3f1 7License: LGPL
b1b30027 8Group: Development/Libraries
18e0d3f1 9Source0: http://dl.sourceforge.net/lib3ds/%{realname}-%{version}.tar.gz
10# Source0-md5: 3a7f891d18af0151876b98bc05d3b373
18e0d3f1 11URL: http://lib3ds.sourceforge.net/
6580e556 12Requires: crossmingw32-runtime
18e0d3f1 13BuildRequires: autoconf
14BuildRequires: automake
15BuildRequires: crossmingw32-gcc
16BuildRequires: crossmingw32-w32api
17BuildRequires: libtool
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define no_install_post_strip 1
21
22%define target i386-mingw32
23%define target_platform i386-pc-mingw32
24%define arch %{_prefix}/%{target}
18e0d3f1 25
26%define __cc %{target}-gcc
27%define __cxx %{target}-g++
28
0fdb6e94 29%ifarch alpha sparc sparc64 sparcv9
30%define optflags -O2
31%endif
32
18e0d3f1 33%description
34lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
35handling 3DS files. It's main goal is to simplify the creation of 3DS
36import and export filters.
37
ba4bc137
JR
38%description -l pl.UTF-8
39lib3ds to wolnodostępna alternatywa dla 3DS File Toolkit Autodeska do
40obsługi plików 3DS. Głównym celem biblioteki jest uproszczenie
41tworzenia filtrów importujących i eksportujących 3DS.
18e0d3f1 42
43%package dll
44Summary: %{realname} - DLL library for Windows
d39c19af 45Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows
18e0d3f1 46Group: Applications/Emulators
47
48%description dll
49%{realname} - DLL library for Windows.
50
ba4bc137 51%description dll -l pl.UTF-8
18e0d3f1 52%{realname} - biblioteka DLL dla Windows.
53
54%prep
55%setup -q -n %{realname}-%{version}
18e0d3f1 56
57%build
58CC=%{target}-gcc ; export CC
59CXX=%{target}-g++ ; export CXX
60LD=%{target}-ld ; export LD
61AR=%{target}-ar ; export AR
62AS=%{target}-as ; export AS
63CROSS_COMPILE=1 ; export CROSS_COMPILE
64CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
65RANLIB=%{target}-ranlib ; export RANLIB
66LDSHARED="%{target}-gcc -shared" ; export LDSHARED
67TARGET="%{target}" ; export TARGET
68
ab01f857 69tail -n 116 aclocal.m4 | head -n 102 > acinclude.m4
18e0d3f1 70%{__libtoolize}
71%{__aclocal}
72%{__autoconf}
73%{__autoheader}
74%{__automake}
722c4d20 75%configure \
76 --host=%{_host} \
77 --target=%{target}
18e0d3f1 78
9cb4eccf 79# glut is broken
80echo "int main(){}" > examples/player.c
81
18e0d3f1 82%{__make}
83
84cd lib3ds
85%{__cc} --shared *.o -Wl,--enable-auto-image-base -o 3ds.dll -Wl,--out-implib,lib3ds.dll.a
86
87%if 0%{!?debug:1}
88%{target}-strip *.dll
89%{target}-strip -g -R.comment -R.note *.a
90%endif
91
92%install
93rm -rf $RPM_BUILD_ROOT
94install -d $RPM_BUILD_ROOT%{arch}/{include/lib3ds,lib}
95install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
96
97cd lib3ds
98
99install *.h $RPM_BUILD_ROOT%{arch}/include/lib3ds
100rm $RPM_BUILD_ROOT%{arch}/include/lib3ds/chunktable.h
101install lib3ds{,.dll}.a $RPM_BUILD_ROOT%{arch}/lib
102install 3ds.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%files
108%defattr(644,root,root,755)
109%{arch}/include/*
110%{arch}/lib/*
111
112%files dll
113%defattr(644,root,root,755)
114%{_datadir}/wine/windows/system/*
This page took 0.03934 seconds and 4 git commands to generate.