|
|
发表于 2009-6-20 18:32:10
|
显示全部楼层
[PHP]# Maintainer: Adam Eberlin < ae at intellitech dot org >
# Caution: Building on a 64-bit arch system is very difficult and there is little support or documentation regarding it. If you have a problem, please post in the forum. I have not personally attempted this, but I have added most of the proper dependencies in case there are those who wish to try. Please do not email me if you cannot get this to build on 64-bit, as once again I have not extensively looked into this.
pkgname=wine
pkgver=20090614
pkgrel=1
pkgdesc="Interpreter for the Windows 3.x and Win32 APIs"
url="http://www.winehq.com/"
arch=('i686' )
license=('LGPL')
depends=('fontconfig' 'libldap' 'libxslt' 'lcms' 'libxxf86dga' \
'libxcursor' 'libxrandr' 'libxdamage' 'mesa')
makedepends=( 'flex' 'bison'
'libxinerama' 'giflib' 'ncurses' 'libxcomposite' \
'libxpm' 'libxmu' 'libxxf86vm' 'perl' 'libxml2') #'libgphoto2' 'samba' 'fontforge'
optdepends=("cups" "sane" "libgphoto2" "alsa-lib" "giflib" "libjpeg" "libpng")
conflicts=('bin32-wine' 'bin32-wine-suse' 'bin32-wine-war' 'wine' 'wine-git')
replaces=()
provides=("wine-git=$pkgver" "wine")
backup=()
source=()
md5sums=()
_gitroot="git://source.winehq.org/git/wine.git"
_gitname="wine"
build() {
cd ${srcdir}
msg "Connecting to GIT server...."
if [ -d ${srcdir}/$_gitname ] ; then
cd $_gitname && git pull origin
msg "Local repository updated."
else
git clone $_gitroot $_gitname
fi
# git clone git://source.winehq.org/git/wine.git wine
msg "GIT checkout done or server timeout"
msg "Removing old build directory..."
rm -Irf ${srcdir}/$_gitname-build
msg "Creating new build directory..."
cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
msg "Starting make..."
cd ${srcdir}/$_gitname-build
# Patches:
msg "Applying patches..."
patch -Np1 -i ${startdir}/06_defsyscolors.patch || return 1
patch -Np1 -i ${startdir}/06_fix-chinese-font.patch || return 1
#patch -Np1 -i ${startdir}/06_iexplore_xdg.patch || return 1
#msg2 "w3 hosting patch..."
#patch -Np1 -i ${startdir}/w3_hosting.patch || return 1
#msg2 "w3 minimize patch..."
#patch -Np1 -i ${startdir}/w3_minimize.patch || return 1
#msg2 "modelrender patch..."
#patch -Np1 -i ${startdir}/modelrender.patch || return 1
# CARCH="i686" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -mtune=generic -pipe" CXXFLAGS="-march=i686 -mtune=generic -pipe" LDFLAGS="-L/opt/lib32/usr/lib" ./configure --verbose --prefix=/usr --libdir=/opt/lib32/usr/lib
./configure --prefix=/usr --sysconfdir=/etc --with-x --without-cups --without-jack --disable-win16 --without-gphoto
make depend || return 1
make || return 1
make prefix=$pkgdir/usr install || return 1
mkdir -p $pkgdir/etc/wine
}
# Maintainer: Adam Eberlin < ae at intellitech dot org >
# Caution: Building on a 64-bit arch system is very difficult and there is little support or documentation regarding it. If you have a problem, please post in the forum. I have not personally attempted this, but I have added most of the proper dependencies in case there are those who wish to try. Please do not email me if you cannot get this to build on 64-bit, as once again I have not extensively looked into this.
pkgname=wine
pkgver=20090614
pkgrel=1
pkgdesc="Interpreter for the Windows 3.x and Win32 APIs"
url="http://www.winehq.com/"
arch=('i686' )
license=('LGPL')
depends=('fontconfig' 'libldap' 'libxslt' 'lcms' 'libxxf86dga' \
'libxcursor' 'libxrandr' 'libxdamage' 'mesa')
makedepends=( 'flex' 'bison'
'libxinerama' 'giflib' 'ncurses' 'libxcomposite' \
'libxpm' 'libxmu' 'libxxf86vm' 'perl' 'libxml2') #'libgphoto2' 'samba' 'fontforge'
optdepends=("cups" "sane" "libgphoto2" "alsa-lib" "giflib" "libjpeg" "libpng")
conflicts=('bin32-wine' 'bin32-wine-suse' 'bin32-wine-war' 'wine' 'wine-git')
replaces=()
provides=("wine-git=$pkgver" "wine")
backup=()
source=()
md5sums=()
_gitroot="git://source.winehq.org/git/wine.git"
_gitname="wine"
build() {
cd ${srcdir}
msg "Connecting to GIT server...."
if [ -d ${srcdir}/$_gitname ] ; then
cd $_gitname && git pull origin
msg "Local repository updated."
else
git clone $_gitroot $_gitname
fi
# git clone git://source.winehq.org/git/wine.git wine
msg "GIT checkout done or server timeout"
msg "Removing old build directory..."
rm -Irf ${srcdir}/$_gitname-build
msg "Creating new build directory..."
cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
msg "Starting make..."
cd ${srcdir}/$_gitname-build
# Patches:
msg "Applying patches..."
patch -Np1 -i ${startdir}/06_defsyscolors.patch || return 1
patch -Np1 -i ${startdir}/06_fix-chinese-font.patch || return 1
#patch -Np1 -i ${startdir}/06_iexplore_xdg.patch || return 1
#msg2 "w3 hosting patch..."
#patch -Np1 -i ${startdir}/w3_hosting.patch || return 1
#msg2 "w3 minimize patch..."
#patch -Np1 -i ${startdir}/w3_minimize.patch || return 1
#msg2 "modelrender patch..."
#patch -Np1 -i ${startdir}/modelrender.patch || return 1
# CARCH="i686" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -mtune=generic -pipe" CXXFLAGS="-march=i686 -mtune=generic -pipe" LDFLAGS="-L/opt/lib32/usr/lib" ./configure --verbose --prefix=/usr --libdir=/opt/lib32/usr/lib
./configure --prefix=/usr --sysconfdir=/etc --with-x --without-cups --without-jack --disable-win16 --without-gphoto
make depend || return 1
make || return 1
make prefix=$pkgdir/usr install || return 1
mkdir -p $pkgdir/etc/wine
}
[/PHP] |
|