mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 17:11:34 +02:00
Import libX11-1.4.4 ebuild.
BUGS=chromium-os:25404 Change-Id: Ib40321a7974a5fb7e97fe5e1c33040dfd760e357 Reviewed-on: https://gerrit.chromium.org/gerrit/14760 Tested-by: Stéphane Marchesin <marcheu@chromium.org> Commit-Ready: Stéphane Marchesin <marcheu@chromium.org> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
This commit is contained in:
parent
c1dc14c8e4
commit
b1a2f2cfd6
@ -0,0 +1,11 @@
|
||||
--- configure.ac.orig 2008-07-21 15:48:33 +0200
|
||||
+++ configure.ac 2008-07-21 15:49:23 +0200
|
||||
@@ -198,6 +198,8 @@
|
||||
XTHREADLIB="-pthread" ;;
|
||||
solaris*)
|
||||
XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
|
||||
+ aix*)
|
||||
+ XTHREAD_CFLAGS="-pthread" ;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST(XTHREADLIB)
|
13
sdk_container/src/third_party/portage-stable/x11-libs/libX11/files/libX11-1.1.5-solaris.patch
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/x11-libs/libX11/files/libX11-1.1.5-solaris.patch
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
wchar_t is defined in /usr/include/stddef.h on Solaris
|
||||
|
||||
--- include/X11/Xlib.h
|
||||
+++ include/X11/Xlib.h
|
||||
@@ -71,7 +71,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#ifndef X_WCHAR
|
||||
+#if !defined(X_WCHAR) || defined(__sun__)
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#ifdef __UNIXOS2__
|
@ -0,0 +1,13 @@
|
||||
diff -ru -x '*.Po' -x '*.Plo' -x '*.o' -x '*.lo' libX11-1.1.5/src/xlibi18n/Ximint.h libX11-1.1.5.orig/src/xlibi18n/Ximint.h
|
||||
--- libX11-1.1.5/src/xlibi18n/Ximint.h 2009-01-16 10:14:37 +0100
|
||||
+++ libX11-1.1.5.orig/src/xlibi18n/Ximint.h 2009-01-16 09:39:48 +0100
|
||||
@@ -37,6 +37,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <X11/Xutil.h>
|
||||
+#ifdef WIN32
|
||||
+# include <X11/Xwindows.h>
|
||||
+#endif
|
||||
|
||||
#define Public /**/
|
||||
#define Private static
|
56
sdk_container/src/third_party/portage-stable/x11-libs/libX11/libX11-1.4.4.ebuild
vendored
Normal file
56
sdk_container/src/third_party/portage-stable/x11-libs/libX11/libX11-1.4.4.ebuild
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libX11/libX11-1.4.4.ebuild,v 1.9 2012/01/15 20:45:05 chithanh Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
XORG_DOC=doc
|
||||
XORG_EAUTORECONF=yes
|
||||
inherit xorg-2 toolchain-funcs flag-o-matic
|
||||
|
||||
DESCRIPTION="X.Org X11 library"
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE="ipv6 test"
|
||||
|
||||
RDEPEND=">=x11-libs/libxcb-1.1.92
|
||||
x11-libs/xtrans
|
||||
>=x11-proto/xproto-7.0.17
|
||||
x11-proto/xf86bigfontproto
|
||||
x11-proto/inputproto
|
||||
x11-proto/kbproto
|
||||
x11-proto/xextproto"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-lang/perl )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.1.4-aix-pthread.patch
|
||||
"${FILESDIR}"/${PN}-1.1.5-winnt-private.patch
|
||||
"${FILESDIR}"/${PN}-1.1.5-solaris.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
xorg-2_pkg_setup
|
||||
XORG_CONFIGURE_OPTIONS=(
|
||||
$(use_with doc xmlto)
|
||||
$(use_enable doc specs)
|
||||
$(use_enable ipv6)
|
||||
--without-fop
|
||||
)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
[[ ${CHOST} == *-interix* ]] && export ac_cv_func_poll=no
|
||||
xorg-2_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# [Cross-Compile Love] Disable {C,LD}FLAGS and redefine CC= for 'makekeys'
|
||||
if tc-is-cross-compiler; then
|
||||
(
|
||||
filter-flags -m*
|
||||
emake -C "${AUTOTOOLS_BUILD_DIR}"/src/util CC=$(tc-getBUILD_CC) CFLAGS="${CFLAGS}" LDFLAGS="" clean all || die
|
||||
)
|
||||
fi
|
||||
xorg-2_src_compile
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user