Package-Name: wine
Gentoo-Package: app-emulation/wine
Requires: XFree86|Xorg
Suggests: fontforge
Compile-Requires: flex bison
Homepage: http://www.winehq.org/
Source: sourceforge:///wine/wine-(\d+(.\d+)+).tar.bz2 $1
Zap-Before-Install: 1
Repack:
	tar xjvfp "$(SOURCE)"
Compile:
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--with-x --mandir='$(PREFIX)/man'"
	$(MAKE) depend
	$(MAKE)
	$(MAKE) install
	if [ "$(STRIPLIB)" ] ; then strip -x "$(PREFIX)"/lib/*.so ; fi
Install:
	$(MAKE) instbin BIN="msiexec notepad progman regedit regsvr32 uninstaller widl wine wine-kthread wine-preloader wine-pthread wineboot winebrowser winebuild winecfg wineconsole winecpp winedbg winedump winefile wineg++ winegcc winelauncher winemaker winemine winepath wineprefixcreate wineserver wineshelllink winhelp wmc wrc"
	$(MAKE) instman SECTION=1 MAN="widl wine winebuild winedbg winedump wineg++ winegcc winemaker wineprefixcreate wineserver wmc wrc"
	$(MAKE) addldso
	rm -rf /usr/share/wine
	ln -vs "$(PREFIX)"/share/wine /usr/share/

/pkg/wine/
/usr/bin/msiexec
/usr/bin/notepad
/usr/bin/progman
/usr/bin/regedit
/usr/bin/regsvr32
/usr/bin/uninstaller
/usr/bin/widl
/usr/bin/wine
/usr/bin/wine-kthread
/usr/bin/wine-preloader
/usr/bin/wine-pthread
/usr/bin/wineboot
/usr/bin/winebrowser
/usr/bin/winebuild
/usr/bin/winecfg
/usr/bin/wineconsole
/usr/bin/winecpp
/usr/bin/winedbg
/usr/bin/winedump
/usr/bin/winefile
/usr/bin/wineg++
/usr/bin/winegcc
/usr/bin/winelauncher
/usr/bin/winemaker
/usr/bin/winemine
/usr/bin/winepath
/usr/bin/wineprefixcreate
/usr/bin/wineserver
/usr/bin/wineshelllink
/usr/bin/winhelp
/usr/bin/wmc
/usr/bin/wrc
/usr/man/man1/widl.1.gz
/usr/man/man1/wine.1.gz
/usr/man/man1/winebuild.1.gz
/usr/man/man1/winedbg.1.gz
/usr/man/man1/winedump.1.gz
/usr/man/man1/wineg++.1.gz
/usr/man/man1/winegcc.1.gz
/usr/man/man1/winemaker.1.gz
/usr/man/man1/wineprefixcreate.1.gz
/usr/man/man1/wineserver.1.gz
/usr/man/man1/wmc.1.gz
/usr/man/man1/wrc.1.gz
/usr/share/wine
