Annotation of /trunk/extras/wine/wine-1.7.55-r1.smage2
Parent Directory | Revision Log
Revision 28378 -
(hide annotations)
(download)
Wed Aug 24 08:12:51 2016 UTC (8 years, 1 month ago) by niro
File size: 3131 byte(s)
Wed Aug 24 08:12:51 2016 UTC (8 years, 1 month ago) by niro
File size: 3131 byte(s)
-revert commit r28377
1 | niro | 27129 | # $Id$ |
2 | |||
3 | PNAME="wine" | ||
4 | PVER="1.7.55" | ||
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 | >= media-libs/glu-9 | ||
16 | >= x11-libs/libXcursor-1.1 | ||
17 | >= x11-libs/libXrandr-1.3 | ||
18 | >= x11-libs/libXext-1.3 | ||
19 | >= x11-libs/libXi-1.7 | ||
20 | >= x11-libs/libXmu-1.1 | ||
21 | >= x11-libs/libXxf86vm-1.1 | ||
22 | >= x11-libs/libXinerama-1.1 | ||
23 | >= x11-libs/libXcomposite-0.4.4 | ||
24 | >= x11-apps/xmessage-1 | ||
25 | >= media-libs/lcms2-2.7 | ||
26 | >= media-libs/alsa-lib-1.0.29 | ||
27 | >= media-libs/freetype-2.6 | ||
28 | >= media-libs/fontconfig-2.11 | ||
29 | >= media-libs/libjpeg-8 | ||
30 | >= media-libs/libpng-1.5 | ||
31 | >= media-libs/openal-1.16 | ||
32 | >= media-libs/libv4l-1.8 | ||
33 | >= media-libs/gstreamer0.10-0.10 | ||
34 | >= media-libs/gstreamer0.10-plugins-base-0.10 | ||
35 | >= media-sound/libpulse-6.0 | ||
36 | >= media-sound/mpg123-1.21 | ||
37 | >= dev-libs/libxslt-1.1.26 | ||
38 | >= dev-libs/libxml2-2.9 | ||
39 | >= dev-libs/openssl-1.0.2 | ||
40 | >= dev-lang/perl-5.22 | ||
41 | >= dev-perl/xml-simple-2.20 | ||
42 | >= sys-apps/dbus-1.10 | ||
43 | >= sys-fs/udisks2-2.1 | ||
44 | >= sys-libs/ncurses-5.9 | ||
45 | >= media-fonts/corefonts-2 | ||
46 | >= net-print/libcups-2.0 | ||
47 | >= net-fs/samba-4.3 | ||
48 | >= app-crypt/gnutls-3.4" | ||
49 | |||
50 | SDEPEND=">= sys-dev/bison-2.7 | ||
51 | >= sys-dev/flex-2.5.35 | ||
52 | >= sys-dev/gettext-0.18" | ||
53 | |||
54 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
55 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
56 | |||
57 | # no check supported | ||
58 | msetfeature "!check" | ||
59 | |||
60 | sminclude mbuild multilib fdo-mime | ||
61 | # only build for 32bit abi | ||
62 | export MULTILIB_ABIS="m32" | ||
63 | |||
64 | SRC_URI=( | ||
65 | sourceforge://${PNAME}/${SRCFILE} | ||
66 | mirror://${PNAME}/${SRCFILE} | ||
67 | ) | ||
68 | |||
69 | UP2TARBALL="${PNAME}" | ||
70 | UP2DATE="updatecmd_sourceforge ${PNAME} Source" | ||
71 | |||
72 | src_compile() | ||
73 | { | ||
74 | #export LDCONFIG=/bin/true | ||
75 | # fixme: $ORIGIN seems to be broken in glibc | ||
76 | # see: http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=225925 | ||
77 | #export LD_LIBRARY_PATH=${SRCDIR}/libs/wine | ||
78 | |||
79 | mconfigure \ | ||
80 | --sysconfdir=/etc/wine \ | ||
81 | --disable-tests \ | ||
82 | --disable-win64 \ | ||
83 | --with-pthread \ | ||
84 | --with-alsa \ | ||
85 | --with-cms \ | ||
86 | --with-cups \ | ||
87 | --with-curses \ | ||
88 | --with-dbus \ | ||
89 | --with-fontconfig \ | ||
90 | --with-freetype \ | ||
91 | --with-gnutls \ | ||
92 | --with-gstreamer \ | ||
93 | --with-gettext \ | ||
94 | --with-jpeg \ | ||
95 | --with-mpg123 \ | ||
96 | --with-openal \ | ||
97 | --with-opengl \ | ||
98 | --with-openssl \ | ||
99 | --with-png \ | ||
100 | --with-pulse \ | ||
101 | --with-v4l \ | ||
102 | --with-x \ | ||
103 | --with-xcomposite \ | ||
104 | --with-xinerama \ | ||
105 | --with-xml \ | ||
106 | --with-xslt \ | ||
107 | \ | ||
108 | --without-capi \ | ||
109 | --without-gphoto \ | ||
110 | --without-gsm \ | ||
111 | --without-hal \ | ||
112 | --without-ldap \ | ||
113 | --without-opencl \ | ||
114 | --without-oss \ | ||
115 | --without-sane \ | ||
116 | || die | ||
117 | |||
118 | mmake -j1 depend || die | ||
119 | mmake all || die | ||
120 | } | ||
121 | |||
122 | src_install() | ||
123 | { | ||
124 | mmake DESTDIR=${BINDIR} install || die | ||
125 | |||
126 | # allow users to launch win32 programs by just clicking on the .exe file | ||
127 | minstalldir /etc/binfmt.d || die | ||
128 | MCONFIG="/etc/binfmt.d/wine.conf" | ||
129 | mclearconfig || die | ||
130 | maddconfig '# Pre-PE Windows Executables' | ||
131 | maddconfig ':windows:M::MZ::/usr/bin/wine:' | ||
132 | maddconfig '# PE Windows Executables' | ||
133 | maddconfig ':windowsPE:M::PE::/usr/bin/wine:' | ||
134 | |||
135 | minstalldocs ANNOUNCE AUTHORS COPYING* LICENSE* README VERSION || die | ||
136 | } | ||
137 | |||
138 | postinstall() | ||
139 | { | ||
140 | fdo-mime_update_desktop_db | ||
141 | } | ||
142 | |||
143 | postremove() | ||
144 | { | ||
145 | fdo-mime_update_desktop_db | ||
146 | } |