Сравнение glew-1.10.0-r101 с glew-2.2.0

/usr/portage/media-libs/glew/glew-2.2.0.ebuild 2023-10-09 14:52:31.668368405 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=8
4
EAPI=7
5

  
5 6
inherit multilib-minimal toolchain-funcs
6 7

  
7 8
DESCRIPTION="The OpenGL Extension Wrangler Library"
......
9 10
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
10 11

  
11 12
LICENSE="BSD MIT"
12
SLOT="$(ver_cut 1-2)"
13
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
14

  
15
RDEPEND=">=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
16
	!=media-libs/glew-1.10*:0"
17

  
18
DEPEND="${RDEPEND}
19
	x11-base/xorg-proto
20
	x11-libs/libX11"
21

  
22
DOCS=""
13
SLOT="0/$(ver_cut 1-2)"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
15
IUSE="doc static-libs"
16

  
17
DEPEND="
18
	>=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
19
	>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
20
	>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
21
	>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
22
	>=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
23
	>=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
24
"
25
RDEPEND="${DEPEND}"
23 26

  
24 27
src_prepare() {
25
	default
28
	local PATCHES=(
29
		"${FILESDIR}"/${PN}-2.0.0-install-headers.patch
30
	)
26 31

  
27 32
	sed -i \
33
		-e '/INSTALL/s:-s::' \
28 34
		-e '/$(CC) $(CFLAGS) -o/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
29
		-e '/glew.lib:/s|lib/$(LIB.STATIC) ||' \
30
		-e '/glew.lib.mx:/s|lib/$(LIB.STATIC.MX) ||' \
35
		-e '/^.PHONY: .*\.pc$/d' \
31 36
		Makefile || die
32 37

  
38
	if ! use static-libs ; then
39
		sed -i \
40
			-e '/glew.lib:/s|lib/$(LIB.STATIC) ||' \
41
			-e '/glew.lib.mx:/s|lib/$(LIB.STATIC.MX) ||' \
42
			-e '/INSTALL.*LIB.STATIC/d' \
43
			Makefile || die
44
	fi
45

  
33 46
	# don't do stupid Solaris specific stuff that won't work in Prefix
34 47
	cp config/Makefile.linux config/Makefile.solaris || die
35 48

  
49
	default
36 50
	multilib_copy_sources
37 51
}
38 52

  
......
56 70
		SYSTEM="$(glew_system)"
57 71
		M_ARCH=""
58 72
		LDFLAGS.EXTRA=""
59
		LDFLAGS.GL="-lGL" # Don't need X libs!
60 73
		POPT="${CFLAGS}"
61 74
	)
62 75
}
63 76

  
64 77
multilib_src_compile() {
65 78
	set_opts
66
	emake glew.lib{,.mx} "${myglewopts[@]}"
79
	emake \
80
		GLEW_PREFIX="${EPREFIX}/usr" \
81
		GLEW_DEST="${EPREFIX}/usr" \
82
		LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
83
		"${myglewopts[@]}"
67 84
}
68 85

  
69 86
multilib_src_install() {
70
	newlib.so lib/libGLEW.so.${SLOT}.* libGLEW.so.${SLOT}
71
	newlib.so lib/libGLEWmx.so.${SLOT}.* libGLEWmx.so.${SLOT}
87
	set_opts
88
	emake \
89
		GLEW_DEST="${ED}/usr" \
90
		LIBDIR="${ED}/usr/$(get_libdir)" \
91
		PKGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \
92
		"${myglewopts[@]}" \
93
		install.all
94

  
95
	dodoc README.md
96
	if use doc; then
97
		docinto html
98
		dodoc -r doc
99
	fi
72 100
}
Спасибо!