/[gentoo-x86]/app-emulation/wine/wine-1.4.1.ebuild
Gentoo

Diff of /app-emulation/wine/wine-1.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.15
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/Attic/wine-1.4.1.ebuild,v 1.5 2012/08/23 16:45:20 tetromino Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/Attic/wine-1.4.1.ebuild,v 1.15 2015/01/01 21:01:23 ryao Exp $
4 4
5EAPI="4" 5EAPI="5"
6 6
7inherit autotools eutils flag-o-matic multilib pax-utils 7inherit autotools eutils flag-o-matic multilib pax-utils
8 8
9if [[ ${PV} == "9999" ]] ; then 9if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git" 10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
17 KEYWORDS="-* amd64 x86 ~x86-fbsd" 17 KEYWORDS="-* amd64 x86 ~x86-fbsd"
18 S=${WORKDIR}/${MY_P} 18 S=${WORKDIR}/${MY_P}
19fi 19fi
20 20
21GV="1.4" 21GV="1.4"
22DESCRIPTION="free implementation of Windows(tm) on Unix" 22DESCRIPTION="Free implementation of Windows(tm) on Unix"
23HOMEPAGE="http://www.winehq.org/" 23HOMEPAGE="http://www.winehq.org/"
24SRC_URI="${SRC_URI} 24SRC_URI="${SRC_URI}
25 gecko? ( 25 gecko? (
26 mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi 26 mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
27 win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) 27 win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
28 )" 28 )"
29 29
30LICENSE="LGPL-2.1" 30LICENSE="LGPL-2.1"
31SLOT="0" 31SLOT="0"
32IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" 32IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
33REQUIRED_USE="elibc_glibc? ( threads )" #286560 33REQUIRED_USE="elibc_glibc? ( threads )" #286560
34RESTRICT="test" #72375 34RESTRICT="test" #72375
35 35
36MLIB_DEPS="amd64? ( 36MLIB_DEPS="amd64? (
37 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) 37 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
46 scanner? ( app-emulation/emul-linux-x86-medialibs ) 46 scanner? ( app-emulation/emul-linux-x86-medialibs )
47 v4l? ( app-emulation/emul-linux-x86-medialibs ) 47 v4l? ( app-emulation/emul-linux-x86-medialibs )
48 app-emulation/emul-linux-x86-baselibs 48 app-emulation/emul-linux-x86-baselibs
49 >=sys-kernel/linux-headers-2.6 49 >=sys-kernel/linux-headers-2.6
50 )" 50 )"
51RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) 51RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
52 perl? ( dev-lang/perl dev-perl/XML-Simple ) 52 perl? ( dev-lang/perl dev-perl/XML-Simple )
53 capi? ( net-dialup/capi4k-utils ) 53 capi? ( net-dialup/capi4k-utils )
54 ncurses? ( >=sys-libs/ncurses-5.2 ) 54 ncurses? ( >=sys-libs/ncurses-5.2:= )
55 fontconfig? ( media-libs/fontconfig ) 55 fontconfig? ( media-libs/fontconfig:= )
56 gphoto2? ( media-libs/libgphoto2 ) 56 gphoto2? ( media-libs/libgphoto2:= )
57 openal? ( media-libs/openal ) 57 openal? ( media-libs/openal:= )
58 udisks? ( 58 udisks? (
59 sys-apps/dbus 59 sys-apps/dbus
60 sys-fs/udisks:0 60 sys-fs/udisks:0
61 ) 61 )
62 gnutls? ( net-libs/gnutls ) 62 gnutls? ( net-libs/gnutls:= )
63 gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base ) 63 gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
64 X? ( 64 X? (
65 x11-libs/libICE
66 x11-libs/libSM
65 x11-libs/libXcursor 67 x11-libs/libXcursor
66 x11-libs/libXrandr 68 x11-libs/libXrandr
67 x11-libs/libXi 69 x11-libs/libXi
68 x11-libs/libXmu
69 x11-libs/libXxf86vm 70 x11-libs/libXxf86vm
70 ) 71 )
71 xinerama? ( x11-libs/libXinerama ) 72 xinerama? ( x11-libs/libXinerama )
72 alsa? ( media-libs/alsa-lib ) 73 alsa? ( media-libs/alsa-lib )
73 cups? ( net-print/cups ) 74 cups? ( net-print/cups:= )
74 opencl? ( virtual/opencl ) 75 opencl? ( virtual/opencl )
75 opengl? ( virtual/opengl ) 76 opengl? (
77 virtual/glu
78 virtual/opengl
79 )
76 gsm? ( media-sound/gsm ) 80 gsm? ( media-sound/gsm:= )
77 jpeg? ( virtual/jpeg ) 81 jpeg? ( virtual/jpeg:0= )
78 ldap? ( net-nds/openldap ) 82 ldap? ( net-nds/openldap:= )
79 lcms? ( =media-libs/lcms-1* )
80 mp3? ( >=media-sound/mpg123-1.5.0 ) 83 mp3? ( >=media-sound/mpg123-1.5.0 )
81 nls? ( sys-devel/gettext ) 84 nls? ( sys-devel/gettext )
82 odbc? ( dev-db/unixODBC ) 85 odbc? ( dev-db/unixODBC:= )
83 samba? ( >=net-fs/samba-3.0.25 ) 86 samba? ( >=net-fs/samba-3.0.25 )
84 selinux? ( sec-policy/selinux-wine ) 87 selinux? ( sec-policy/selinux-wine )
85 xml? ( dev-libs/libxml2 dev-libs/libxslt ) 88 xml? ( dev-libs/libxml2 dev-libs/libxslt )
86 scanner? ( media-gfx/sane-backends ) 89 scanner? ( media-gfx/sane-backends:= )
87 ssl? ( dev-libs/openssl ) 90 ssl? ( dev-libs/openssl:0= )
88 png? ( media-libs/libpng ) 91 png? ( media-libs/libpng:0= )
89 v4l? ( media-libs/libv4l ) 92 v4l? ( media-libs/libv4l )
90 !win64? ( ${MLIB_DEPS} ) 93 !win64? ( ${MLIB_DEPS} )
91 win32? ( ${MLIB_DEPS} ) 94 win32? ( ${MLIB_DEPS} )
92 xcomposite? ( x11-libs/libXcomposite )" 95 xcomposite? ( x11-libs/libXcomposite )"
93DEPEND="${RDEPEND} 96DEPEND="${RDEPEND}
95 x11-proto/inputproto 98 x11-proto/inputproto
96 x11-proto/xextproto 99 x11-proto/xextproto
97 x11-proto/xf86vidmodeproto 100 x11-proto/xf86vidmodeproto
98 ) 101 )
99 xinerama? ( x11-proto/xineramaproto ) 102 xinerama? ( x11-proto/xineramaproto )
100 !hardened? ( sys-devel/prelink ) 103 prelink? ( sys-devel/prelink )
101 virtual/pkgconfig 104 virtual/pkgconfig
102 virtual/yacc 105 virtual/yacc
103 sys-devel/flex" 106 sys-devel/flex"
104 107
108wine_build_environment_check() {
109 [[ ${MERGE_TYPE} = "binary" ]] && return 0
110
111 if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
112 eerror "You need gcc-4.4+ to build 64-bit wine"
113 eerror
114 return 1
115 fi
116
117 if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
118 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
119 eerror "See https://bugs.gentoo.org/487864 for more details."
120 eerror
121 return 1
122 fi
123}
124
125pkg_pretend() {
126 wine_build_environment_check || die
127}
128
129pkg_setup() {
130 wine_build_environment_check || die
131}
132
105src_unpack() { 133src_unpack() {
106 if use win64 ; then
107 [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
108 && die "you need gcc-4.4+ to build 64bit wine"
109 fi
110
111 if use win32 && use opencl; then
112 [[ x$(eselect opencl show) = "xintel" ]] &&
113 die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
114 fi
115
116 if [[ ${PV} == "9999" ]] ; then 134 if [[ ${PV} == "9999" ]] ; then
117 git-2_src_unpack 135 git-2_src_unpack
118 else 136 else
119 unpack ${MY_P}.tar.bz2 137 unpack ${MY_P}.tar.bz2
120 fi 138 fi
142 ECONF_SOURCE=${S} \ 160 ECONF_SOURCE=${S} \
143 econf \ 161 econf \
144 --sysconfdir=/etc/wine \ 162 --sysconfdir=/etc/wine \
145 $(use_with alsa) \ 163 $(use_with alsa) \
146 $(use_with capi) \ 164 $(use_with capi) \
147 $(use_with lcms cms) \ 165 --without-cms \
148 $(use_with cups) \ 166 $(use_with cups) \
149 $(use_with ncurses curses) \ 167 $(use_with ncurses curses) \
150 $(use_with udisks dbus) \ 168 $(use_with udisks dbus) \
151 $(use_with fontconfig) \ 169 $(use_with fontconfig) \
152 $(use_with gnutls) \ 170 $(use_with gnutls) \

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20