diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-03-03 17:57:19 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-03-03 17:57:19 +0000 |
commit | 0f1a08f8d16cdb723d7dda82cf7df04917d2daa8 (patch) | |
tree | 4e2eea41d988a187098d25ddba0f1d0cbd98d131 /www-client/chromium | |
parent | Add svn use flag. Include respective patch. EAPI2fy. Added amd64 keyword. Fix... (diff) | |
download | historical-0f1a08f8d16cdb723d7dda82cf7df04917d2daa8.tar.gz historical-0f1a08f8d16cdb723d7dda82cf7df04917d2daa8.tar.bz2 historical-0f1a08f8d16cdb723d7dda82cf7df04917d2daa8.zip |
Initial work on making ffmpeg support more sane wrt bug #306921. Used
suggestions by Carlos Augusto <silvaesilva@gmail.com> and Doktor Notor
<notordoktor@gmail.com>. Also remove an unused patch.
Package-Manager: portage-2.1.7.17/cvs/Linux i686
Diffstat (limited to 'www-client/chromium')
-rw-r--r-- | www-client/chromium/ChangeLog | 9 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 7 | ||||
-rw-r--r-- | www-client/chromium/chromium-5.0.335.0.ebuild | 26 | ||||
-rw-r--r-- | www-client/chromium/chromium-9999.ebuild | 25 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-use_system_libevent-1.4.13.patch | 202 |
5 files changed, 49 insertions, 220 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 84b50f4408f5..22102ae87b52 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for www-client/chromium # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.62 2010/03/01 10:26:59 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.63 2010/03/03 17:57:17 phajdan.jr Exp $ + + 03 Mar 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + -files/chromium-use_system_libevent-1.4.13.patch, + chromium-5.0.335.0.ebuild, chromium-9999.ebuild: + Initial work on making ffmpeg support more sane wrt bug #306921. Used + suggestions by Carlos Augusto <silvaesilva@gmail.com> and Doktor Notor + <notordoktor@gmail.com>. Also remove an unused patch. 01 Mar 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> chromium-5.0.307.11.ebuild, chromium-5.0.335.0.ebuild, diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index 4315488adee6..d31dd231e23d 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -2,7 +2,6 @@ AUX chromium-20100122-ubuntu-html5-video-mimetypes.patch 1228 RMD160 69157e703e1 AUX chromium-drop_sse2.patch 1560 RMD160 285a13c5a0d73b8cdadf8012adfb182a85392af8 SHA1 1aa9701b329d970db00726ba883d7dd5448ba372 SHA256 2da9ffbbaff5d00045b49ae75658df3c9f536543d388caff7a18ff093a0b1cd6 AUX chromium-fix-make-build.patch 677 RMD160 b0dd0057d6f28e5d79b0bd9fd45b8e7cb79cbfcf SHA1 c7a7bf5fe81349f077a15458d66d53e1aa523f33 SHA256 8de8636ceedcbf0dc4f8494f48fd78baf261ef9334efe359d7e99bc668193c9e AUX chromium-launcher.sh 602 RMD160 e01a871fbe36224aa24b6c448cdad8eb3c3b3f22 SHA1 b35dae7032a2967a1be5814cb442a245a9a166e7 SHA256 a9aa84e924e592b85e58a3ce5b245f34637180000f52ef3b615dd4e9a56a602b -AUX chromium-use_system_libevent-1.4.13.patch 6919 RMD160 1417a38ad95afb61bf90ffab289caebb9de5dd81 SHA1 0337132b42377ccac9ce5b3f9270f26cab2666a7 SHA256 39878315ead10c3b08c5285c7a87a227280b6847d4342ec94c09ec8b8223effa AUX chromium.xml 390 RMD160 6b2f901da76555a7112f71a6f9dae6e2e3307324 SHA1 81148a0b094bc697ff2c9d33efe976b1bffb72a3 SHA256 a81c6257346eaa4f6389fc9ea8834fd2dd3b006cf4e9e999028aca812d76fe9a DIST chromium-5.0.307.11.tar.bz2 153145874 RMD160 2e8820fae4bd2ca0b6e7c4c3f0d10eb0b4bcc2d3 SHA1 33b5a62501af3645076f3d48dba76356d4736471 SHA256 4578711c2359b9d6751c6fcecb541d0fb63c5bcde2a82346040d218c8de5a4ea DIST chromium-5.0.307.7.tar.bz2 145158495 RMD160 b68ca5dbee16de30b4bd15b695eda60410258c12 SHA1 8bb917e5935080a45d9b6e22e2a5866a40777df7 SHA256 b7219454ff85459fd1d58555e06907726e02c5a956c95974c7af66bddf20b6c6 @@ -13,7 +12,7 @@ EBUILD chromium-5.0.307.11.ebuild 5976 RMD160 562edf408011bb22401ebd8e20776e0e9c EBUILD chromium-5.0.307.7.ebuild 5786 RMD160 eb13f7869f316d923031521d813cd90889b29a0a SHA1 eff5b132de524a900615c002f4eef4666513ac39 SHA256 99f62591873eaccbd6988f0bae9e4dc84c2f86e2c2cb19a1b730ae2d2e2ed302 EBUILD chromium-5.0.307.9.ebuild 5924 RMD160 9224ac0227fe0c1363c2dbe48c8e490cd8b5652d SHA1 47b83b8671a7a8d390006d920f8c77ae4aa9b7ba SHA256 80d9ef52210c0c003c436a51618c372eaa364878da2074bdd36927a6d97e6505 EBUILD chromium-5.0.322.2.ebuild 5977 RMD160 c6f23a55f31b59083c12a6455ae94e84cd111f05 SHA1 1a1aa28c36877021d956d02d7d26826584d60c8a SHA256 2918f727578a9175fad8ca608481c8a6f7d47ddd58332f9232157771d775a1e1 -EBUILD chromium-5.0.335.0.ebuild 6031 RMD160 15bad1207f753dd6ee63d90ebdd5ed4b9a6d896f SHA1 3a651e51384f2a9b19cad11da747fb43fc737e0c SHA256 024fce7b6575244e723007f51f961826d7e0d482c7192de027d707008cd5e209 -EBUILD chromium-9999.ebuild 7743 RMD160 f55a364e1c9ab143452950b3238f49963c5084e5 SHA1 46246f8f16087141daf571f6dc757c4c88af5fc1 SHA256 6d50df5bbeedb2a50037f7207591c6ce29018b85adbb18ab4866e07ac9337e45 -MISC ChangeLog 14140 RMD160 09a55c3e513de51bf46011a40d65715aeddfc3f5 SHA1 7f04b0c818b799fee5805d447297dbb99be5daf8 SHA256 0fa92c5e169cbb62ea6a2d54d8ecaaeaccc755bc88a612cb595a8005cbbe54cc +EBUILD chromium-5.0.335.0.ebuild 6326 RMD160 a43676f71dd052fe7e5600021a58a879316e92fa SHA1 1dddee5c715c7e277947ca0559d35a8527184461 SHA256 4ecd7d3e0fcf7f2d757d5d47500ad10325bcc19cdac0b95e7a7e23b3bf9961f3 +EBUILD chromium-9999.ebuild 8039 RMD160 0d5701ed65da0c9bdd4b2a452c0574734e4ec7d7 SHA1 ff11f39e0c4f7fc6cb990ac12fc275172aa171f6 SHA256 c578fa603f9adabd0cd961bfa9941b1eabe525e7fec36fef3341a87577763801 +MISC ChangeLog 14500 RMD160 4b32cbb892891fddc2dae85891844476f52cc63d SHA1 fa10dd2c116c2ba6c2bf0836f51e3372a61827e8 SHA256 43c371e3ffb71b4cd9221d5e9d587ba0b6a8cbc3c0ebef81fc4b9882a55b2f97 MISC metadata.xml 674 RMD160 5904280e3a216e0d322f1649e14f52f68cd00a39 SHA1 c2310be724a3345e36f644b53b8cfa02d3abdbed SHA256 e05422220666ef456f98ada2f42078b37400b538a452c1e3cee2945d7769dc5c diff --git a/www-client/chromium/chromium-5.0.335.0.ebuild b/www-client/chromium/chromium-5.0.335.0.ebuild index 3b14c08e20c7..859df3c2aacc 100644 --- a/www-client/chromium/chromium-5.0.335.0.ebuild +++ b/www-client/chromium/chromium-5.0.335.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.335.0.ebuild,v 1.2 2010/03/01 10:26:59 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.335.0.ebuild,v 1.3 2010/03/03 17:57:17 phajdan.jr Exp $ EAPI="2" inherit eutils flag-o-matic multilib portability toolchain-funcs @@ -13,7 +13,7 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" -IUSE="+ffmpeg +plugins-symlink" +IUSE="bindist +ffmpeg +plugins-symlink" RDEPEND="app-arch/bzip2 >=dev-libs/libevent-1.4.13 @@ -24,7 +24,7 @@ RDEPEND="app-arch/bzip2 >=media-libs/alsa-lib-1.0.19 media-libs/jpeg:0 media-libs/libpng - ffmpeg? ( >=media-video/ffmpeg-0.5_p19787 ) + ffmpeg? ( >=media-video/ffmpeg-0.5_p21602 ) sys-libs/zlib >=x11-libs/gtk+-2.14.7 x11-libs/libXScrnSaver @@ -61,6 +61,13 @@ pkg_setup() { elog "${PN} might crash occasionally. To get more useful backtraces" elog "and submit better bug reports, please read" elog "http://www.gentoo.org/proj/en/qa/backtraces.xml" + + if ! use bindist; then + einfo + elog "You may not redistribute this build to any users on your network" + elog "or the internet." + elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" + fi } src_prepare() { @@ -73,8 +80,10 @@ src_prepare() { sed -i "s/'-Werror'/''/" build/common.gypi || die "Werror sed failed" # Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007 epatch "${FILESDIR}"/${PN}-drop_sse2.patch - # Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg - epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch + if ! use bindist; then + # Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg + epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch + fi # Prevent the make build from filling entire disk space on some systems, # bug 297273. epatch "${FILESDIR}"/${PN}-fix-make-build.patch @@ -104,7 +113,7 @@ EOF export HOME="${S}" # Configuration options (system libraries) - local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1 -Duse_system_ffmpeg=1" + local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1" # -Duse_system_sqlite=1 : http://crbug.com/22208 # Others still bundled: icu (not possible?), hunspell (changes required for sandbox support) @@ -127,6 +136,10 @@ EOF myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" fi + if use ffmpeg; then + myconf="${myconf} -Duse_system_ffmpeg=1" + fi + build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" } @@ -186,5 +199,4 @@ src_install() { dodir /usr/share/gnome-control-center/default-apps insinto /usr/share/gnome-control-center/default-apps doins "${FILESDIR}"/chromium.xml - } diff --git a/www-client/chromium/chromium-9999.ebuild b/www-client/chromium/chromium-9999.ebuild index 59dc39ed4ed0..2c60634ce556 100644 --- a/www-client/chromium/chromium-9999.ebuild +++ b/www-client/chromium/chromium-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.31 2010/03/01 10:26:59 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.32 2010/03/03 17:57:17 phajdan.jr Exp $ EAPI="2" inherit eutils flag-o-matic multilib portability subversion toolchain-funcs @@ -14,7 +14,7 @@ EGCLIENT_REPO_URI="http://src.chromium.org/svn/trunk/src/" LICENSE="BSD" SLOT="0" KEYWORDS="" -IUSE="+ffmpeg +plugins-symlink" +IUSE="bindist +ffmpeg +plugins-symlink" RDEPEND="app-arch/bzip2 >=dev-libs/libevent-1.4.13 @@ -25,7 +25,7 @@ RDEPEND="app-arch/bzip2 >=media-libs/alsa-lib-1.0.19 media-libs/jpeg:0 media-libs/libpng - ffmpeg? ( >=media-video/ffmpeg-0.5_p19787 ) + ffmpeg? ( >=media-video/ffmpeg-0.5_p21602 ) sys-libs/zlib >=x11-libs/gtk+-2.14.7 x11-libs/libXScrnSaver @@ -62,6 +62,13 @@ pkg_setup() { elog "${PN} might crash occasionally. To get more useful backtraces" elog "and submit better bug reports, please read" elog "http://www.gentoo.org/proj/en/qa/backtraces.xml" + + if ! use bindist; then + einfo + elog "You may not redistribute this build to any users on your network" + elog "or the internet." + elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" + fi } src_unpack() { @@ -117,8 +124,10 @@ src_prepare() { sed -i "s/'-Werror'/''/" build/common.gypi || die "Werror sed failed" # Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007 epatch "${FILESDIR}"/${PN}-drop_sse2.patch - # Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg - epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch + if ! use bindist; then + # Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg + epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch + fi # Prevent the make build from filling entire disk space on some systems, # bug 297273. epatch "${FILESDIR}"/${PN}-fix-make-build.patch @@ -147,7 +156,7 @@ EOF export HOME="${S}" # Configuration options (system libraries) - local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1 -Duse_system_ffmpeg=1" + local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1" # -Duse_system_sqlite=1 : http://crbug.com/22208 # Others still bundled: icu (not possible?), hunspell (changes required for sandbox support) @@ -170,6 +179,10 @@ EOF myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" fi + if use ffmpeg; then + myconf="${myconf} -Duse_system_ffmpeg=1" + fi + build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" } diff --git a/www-client/chromium/files/chromium-use_system_libevent-1.4.13.patch b/www-client/chromium/files/chromium-use_system_libevent-1.4.13.patch deleted file mode 100644 index 3d1be28c4a0c..000000000000 --- a/www-client/chromium/files/chromium-use_system_libevent-1.4.13.patch +++ /dev/null @@ -1,202 +0,0 @@ -diff -Naur chromium-4.0.212.0_p26343.orig/base/message_pump_libevent.cc chromium-4.0.212.0_p26343/base/message_pump_libevent.cc ---- chromium-4.0.212.0_p26343.orig/base/message_pump_libevent.cc 2009-09-17 17:06:50.000000000 +0200 -+++ chromium-4.0.212.0_p26343/base/message_pump_libevent.cc 2009-09-17 17:11:01.000000000 +0200 -@@ -12,7 +12,11 @@ - #include "base/scoped_nsautorelease_pool.h" - #include "base/scoped_ptr.h" - #include "base/time.h" -+#if defined(USE_SYSTEM_LIBEVENT) -+#include <event.h> -+#else - #include "third_party/libevent/event.h" -+#endif - - // Lifecycle of struct event - // Libevent uses two main data structures: -diff -Naur chromium-4.0.212.0_p26343.orig/chrome/browser/debugger/devtools_remote_listen_socket.cc chromium-4.0.212.0_p26343/chrome/browser/debugger/devtools_remote_listen_socket.cc ---- chromium-4.0.212.0_p26343.orig/chrome/browser/debugger/devtools_remote_listen_socket.cc 2009-09-17 17:06:51.000000000 +0200 -+++ chromium-4.0.212.0_p26343/chrome/browser/debugger/devtools_remote_listen_socket.cc 2009-09-17 17:10:49.000000000 +0200 -@@ -18,8 +18,12 @@ - #include "base/message_loop.h" - #include "base/message_pump_libevent.h" - #include "net/base/net_errors.h" -+#if defined(USE_SYSTEM_LIBEVENT) -+#include <event.h> -+#else - #include "third_party/libevent/event.h" - #endif -+#endif - - #include "base/eintr_wrapper.h" - #include "base/platform_thread.h" -diff -Naur chromium-4.0.212.0_p26343.orig/net/base/listen_socket.cc chromium-4.0.212.0_p26343/net/base/listen_socket.cc ---- chromium-4.0.212.0_p26343.orig/net/base/listen_socket.cc 2009-09-17 17:06:23.000000000 +0200 -+++ chromium-4.0.212.0_p26343/net/base/listen_socket.cc 2009-09-17 17:10:12.000000000 +0200 -@@ -13,8 +13,12 @@ - #include <sys/socket.h> - #include <arpa/inet.h> - #include "net/base/net_errors.h" -+#if defined(USE_SYSTEM_LIBEVENT) -+#include <event.h> -+#else - #include "third_party/libevent/event.h" - #endif -+#endif - - #include "base/eintr_wrapper.h" - #include "net/base/net_util.h" -diff -Naur chromium-4.0.212.0_p26343.orig/net/base/telnet_server.cc chromium-4.0.212.0_p26343/net/base/telnet_server.cc ---- chromium-4.0.212.0_p26343.orig/net/base/telnet_server.cc 2009-09-17 17:06:23.000000000 +0200 -+++ chromium-4.0.212.0_p26343/net/base/telnet_server.cc 2009-09-17 17:10:06.000000000 +0200 -@@ -13,7 +13,11 @@ - #include <sys/socket.h> - #include "base/message_loop.h" - #include "net/base/net_errors.h" -+#if defined(USE_SYSTEM_LIBEVENT) -+#include <event.h> -+#else - #include "third_party/libevent/event.h" -+#endif - #include "base/message_pump_libevent.h" - #endif - -diff -Naur chromium-4.0.212.0_p26343.orig/net/socket/tcp_client_socket_libevent.cc chromium-4.0.212.0_p26343/net/socket/tcp_client_socket_libevent.cc ---- chromium-4.0.212.0_p26343.orig/net/socket/tcp_client_socket_libevent.cc 2009-09-17 17:06:23.000000000 +0200 -+++ chromium-4.0.212.0_p26343/net/socket/tcp_client_socket_libevent.cc 2009-09-17 17:09:49.000000000 +0200 -@@ -15,8 +15,11 @@ - #include "base/trace_event.h" - #include "net/base/io_buffer.h" - #include "net/base/net_errors.h" -+#if defined(USE_SYSTEM_LIBEVENT) -+#include <event.h> -+#else - #include "third_party/libevent/event.h" -- -+#endif - - namespace net { - -diff -Naur chromium-4.0.212.0_p26343.orig/third_party/libevent/libevent.gyp chromium-4.0.212.0_p26343/third_party/libevent/libevent.gyp ---- chromium-4.0.212.0_p26343.orig/third_party/libevent/libevent.gyp 2009-12-02 17:36:16.000000000 +0100 -+++ chromium-4.0.212.0_p26343/third_party/libevent/libevent.gyp 2009-12-02 17:46:03.000000000 +0100 -@@ -3,54 +3,78 @@ - # found in the LICENSE file. - - { -- 'targets': [ -- { -- 'target_name': 'libevent', -- 'product_name': 'event', -- 'type': '<(library)', -- 'sources': [ -- 'buffer.c', -- 'evbuffer.c', -- 'evdns.c', -- 'event.c', -- 'event_tagging.c', -- 'evrpc.c', -- 'evutil.c', -- 'http.c', -- 'log.c', -- 'poll.c', -- 'select.c', -- 'signal.c', -- 'strlcpy.c', -+ 'variables': { -+ 'use_system_libevent%': 0, -+ }, -+ 'conditions': [ -+ ['use_system_libevent==0', { -+ 'targets': [ -+ { -+ 'target_name': 'libevent', -+ 'product_name': 'event', -+ 'type': '<(library)', -+ 'sources': [ -+ 'buffer.c', -+ 'evbuffer.c', -+ 'evdns.c', -+ 'event.c', -+ 'event_tagging.c', -+ 'evrpc.c', -+ 'evutil.c', -+ 'http.c', -+ 'log.c', -+ 'poll.c', -+ 'select.c', -+ 'signal.c', -+ 'strlcpy.c', -+ ], -+ 'defines': [ -+ 'HAVE_CONFIG_H', -+ ], -+ 'include_dirs': [ -+ '.', # libevent includes some of its own headers with #include <...> -+ # instead of #include "..." -+ ], -+ 'conditions': [ -+ # libevent has platform-specific implementation files. Since its -+ # native build uses autoconf, platform-specific config.h files are -+ # provided and live in platform-specific directories. -+ [ 'OS == "linux"', { -+ 'sources': [ 'epoll.c', 'epoll_sub.c' ], -+ 'include_dirs': [ 'linux' ], -+ 'link_settings': { -+ 'libraries': [ -+ # We need rt for clock_gettime(). -+ # TODO(port) Maybe on FreeBSD as well? -+ '-lrt', -+ ], -+ }, -+ }], -+ [ 'OS == "mac" or OS == "freebsd"', { -+ 'sources': [ 'kqueue.c' ], -+ 'include_dirs': [ 'mac' ] -+ }], -+ ], -+ }, - ], -- 'defines': [ -- 'HAVE_CONFIG_H', -- ], -- 'include_dirs': [ -- '.', # libevent includes some of its own headers with #include <...> -- # instead of #include "..." -- ], -- 'conditions': [ -- # libevent has platform-specific implementation files. Since its -- # native build uses autoconf, platform-specific config.h files are -- # provided and live in platform-specific directories. -- [ 'OS == "linux"', { -- 'sources': [ 'epoll.c', 'epoll_sub.c' ], -- 'include_dirs': [ 'linux' ], -+ }, { -+ 'targets': [ -+ { -+ 'target_name': 'libevent', -+ 'type': 'settings', -+ 'direct_dependent_settings': { -+ 'defines': [ -+ 'USE_SYSTEM_LIBEVENT', -+ ], -+ }, - 'link_settings': { - 'libraries': [ -- # We need rt for clock_gettime(). -- # TODO(port) Maybe on FreeBSD as well? -- '-lrt', -+ '-levent', - ], - }, -- }], -- [ 'OS == "mac" or OS == "freebsd"', { -- 'sources': [ 'kqueue.c' ], -- 'include_dirs': [ 'mac' ] -- }], -+ } - ], -- }, -+ }], - ], - } - |