Magellan Linux

Contents of /branches/R11-stable/extras/wine/wine-1.5.25-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16833 - (show annotations) (download)
Thu Mar 7 14:29:12 2013 UTC (11 years, 3 months ago) by niro
File size: 3035 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="wine"
4 PVER="1.5.25"
5 PBUILD="r1"
6
7 PCAT="app-emulation"
8
9 DESCRIPTION="Wine is an Open Source implementation of the Windows API on top of X and Unix."
10 HOMEPAGE="http://www.winehq.com/"
11
12 # todo:
13 # libgphoto2, capi, gsm, jack, mpg123, sane, openldap
14 DEPEND=">= virtual/opengl
15 >= x11-libs/libXcursor-1.1
16 >= x11-libs/libXrandr-1.3
17 >= x11-libs/libXi-1.4
18 >= x11-libs/libXmu-1.1
19 >= x11-libs/libXxf86vm-1.1
20 >= x11-libs/libXinerama-1.1
21 >= x11-libs/libXcomposite-0.4.3
22 >= x11-apps/xmessage-1
23 >= media-libs/lcms-1.19
24 >= media-libs/alsa-lib-1.0.26
25 >= media-libs/freetype-2.4
26 >= media-libs/fontconfig-2.10
27 >= media-libs/libjpeg-8
28 >= media-libs/libpng-1.5
29 >= media-libs/openal-1.13
30 >= media-libs/gstreamer0.10-0.10
31 >= media-libs/gstreamer0.10-plugins-base-0.10
32 >= media-sound/libpulse-2.1
33 >= dev-libs/libxslt-1.1.26
34 >= dev-libs/libxml2-2.7
35 >= dev-libs/openssl-1.0.1
36 >= dev-lang/perl-5.16
37 >= dev-perl/xml-simple-2.18
38 >= sys-apps/dbus-1.6
39 >= sys-fs/udisks2-2.0
40 >= media-fonts/corefonts-2
41 >= net-print/libcups-1.5
42 >= net-fs/samba-3.6
43 >= app-crypt/gnutls-2.12"
44
45 SDEPEND=">= x11-proto/inputproto-2
46 >= x11-proto/xextproto-7.2
47 >= x11-proto/xf86vidmodeproto-2.3
48 >= x11-proto/xineramaproto-1.2
49 >= sys-dev/bison-2.5
50 >= sys-dev/flex-2.5.35
51 >= sys-dev/gettext-0.18"
52
53 SRCFILE="${PNAME}-${PVER}.tar.bz2"
54 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
55
56 # no check supported
57 msetfeature "!check"
58
59 sminclude mbuild multilib
60 # only build for 32bit abi
61 export MULTILIB_ABIS="m32"
62
63 SRC_URI=(
64 sourceforge://${PNAME}/${SRCFILE}
65 mirror://${PNAME}/${SRCFILE}
66 )
67
68 UP2TARBALL="${PNAME}"
69 UP2DATE="updatecmd_sourceforge ${PNAME} Source"
70
71 src_compile()
72 {
73 #export LDCONFIG=/bin/true
74 # fixme: $ORIGIN seems to be broken in glibc
75 # see: http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=225925
76 #export LD_LIBRARY_PATH=${SRCDIR}/libs/wine
77
78 mconfigure \
79 --sysconfdir=/etc/wine \
80 --disable-tests \
81 --disable-win64 \
82 --with-pthread \
83 --with-alsa \
84 --with-cms \
85 --with-cups \
86 --with-dbus \
87 --with-fontconfig \
88 --with-freetype \
89 --with-gnutls \
90 --with-gstreamer \
91 --with-gettext \
92 --with-jpeg \
93 --with-openal \
94 --with-opengl \
95 --with-openssl \
96 --with-png \
97 --with-pulse \
98 --with-x \
99 --with-xcomposite \
100 --with-xinerama \
101 --with-xml \
102 --with-xslt \
103 \
104 --without-capi \
105 --without-curses \
106 --without-gphoto \
107 --without-gsm \
108 --without-hal \
109 --without-ldap \
110 --without-mpg123 \
111 --without-opencl \
112 --without-oss \
113 --without-sane \
114 --without-v4l \
115 || die
116
117 mmake -j1 depend || die
118 mmake all || die
119 }
120
121 src_install()
122 {
123 mmake DESTDIR=${BINDIR} install || die
124
125 # allow users to launch win32 programs by just clicking on the .exe file
126 minstalldir /etc/binfmt.d || die
127 MCONFIG="/etc/binfmt.d/wine.conf"
128 mclearconfig || die
129 maddconfig '# Pre-PE Windows Executables'
130 maddconfig ':windows:M::MZ::/usr/bin/wine:'
131 maddconfig '# PE Windows Executables'
132 maddconfig ':windowsPE:M::PE::/usr/bin/wine:'
133
134 minstalldocs ANNOUNCE AUTHORS COPYING* LICENSE* README VERSION || die
135 }