File project.diff of Package mingw64-freetype

--- mingw64-freetype.spec.orig
+++ mingw64-freetype.spec
@@ -15,6 +15,7 @@ License:        FTL or GPLv2+
 Url:            http://www.freetype.org
 Source:         http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
 Source1:        http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
+Patch1000:      freetype-2.4.5-wix.patch
 Group:          Development/Libraries
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -26,6 +27,8 @@ BuildRequires:  mingw64-cross-gcc
 BuildRequires:  mingw64-cross-binutils
 BuildRequires:  mingw64-cross-pkg-config
 BuildRequires:  mingw64-zlib-devel
+BuildRequires:  automake autoconf libtool
+BuildRequires:  wixwine
 
 %description
 FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while
@@ -48,8 +51,11 @@ conversion tools, text image generation
 
 %prep
 %setup -q -n freetype-%{version} -b 1 -a 1
+%patch1000 -p1 -b .wix
 
 %build
+. ./autogen.sh
+
 echo "lt_cv_deplibs_check_method='pass_all'" >>builds/unix/%{_mingw64_cache} && chmod +w builds/unix/%{_mingw64_cache}
 %{_mingw64_configure} \
 	--enable-shared --disable-static
@@ -58,6 +64,11 @@ make %{?_smp_mflags} || make
 
 %install
 make DESTDIR=$RPM_BUILD_ROOT install
+mkdir -p $RPM_BUILD_ROOT%{_mingw64_datadir}/wixlib
+cp freetype2.wixlib $RPM_BUILD_ROOT%{_mingw64_datadir}/wixlib/freetype2.wixlib
+echo 'Wixlibs=%{_mingw64_datadir}/wixlib/freetype2.wixlib' >> $RPM_BUILD_ROOT%{_mingw64_libdir}/pkgconfig/freetype2.pc
+echo 'Fualflags=-C freetype2 -D freetype2' >> $RPM_BUILD_ROOT%{_mingw64_libdir}/pkgconfig/freetype2.pc
+
 
 
 %clean
@@ -77,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mingw64_libdir}/libfreetype.dll.a
 %{_mingw64_libdir}/pkgconfig/freetype2.pc
 %{_mingw64_datadir}/aclocal/freetype2.m4
+%{_mingw64_datadir}/wixlib/freetype2.wixlib
 
 
 %changelog
openSUSE Build Service is sponsored by