summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/libev/Makefile27
-rw-r--r--package/p5-ev/Makefile4
-rw-r--r--package/p5-ev/patches/patch-Makefile_PL17
3 files changed, 33 insertions, 15 deletions
diff --git a/package/libev/Makefile b/package/libev/Makefile
new file mode 100644
index 000000000..e04d595eb
--- /dev/null
+++ b/package/libev/Makefile
@@ -0,0 +1,27 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= libev
+PKG_VERSION:= 4.15
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 3a73f247e790e2590c01f3492136ed31
+PKG_DESCR:= full-featured and high-performance event loop
+PKG_SECTION:= libs/misc
+PKG_URL:= http://software.schmorp.de/pkg/libev.html
+PKG_SITES:= http://dist.schmorp.de/libev/
+PKG_OPTS:= dev
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBEV,libev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+
+libev-install:
+ $(INSTALL_DIR) $(IDIR_LIBEV)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libev*.so* \
+ $(IDIR_LIBEV)/usr/lib
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/p5-ev/Makefile b/package/p5-ev/Makefile
index 68a1a101e..98ad69771 100644
--- a/package/p5-ev/Makefile
+++ b/package/p5-ev/Makefile
@@ -9,8 +9,8 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= ffc39299fab4589bb850b5a46ccd2395
PKG_DESCR:= interface to libev, a high performance full-featured event loop
PKG_SECTION:= dev/perl
-PKG_DEPENDS:= perl libevent
-PKG_BUILDDEP:= perl libevent
+PKG_DEPENDS:= perl libev
+PKG_BUILDDEP:= perl libev
PKG_SITES:= http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/
DISTFILES:= EV-${PKG_VERSION}.tar.gz
diff --git a/package/p5-ev/patches/patch-Makefile_PL b/package/p5-ev/patches/patch-Makefile_PL
index 040144fac..e39cde035 100644
--- a/package/p5-ev/patches/patch-Makefile_PL
+++ b/package/p5-ev/patches/patch-Makefile_PL
@@ -1,14 +1,5 @@
--- EV-4.17.orig/Makefile.PL 2013-08-01 04:08:54.000000000 +0200
-+++ EV-4.17/Makefile.PL 2014-06-17 22:04:03.000000000 +0200
-@@ -77,7 +77,7 @@ OS, via the next question. I highly reco
-
- EOF
-
--if (prompt ("Enable select backend (y/n)?", "y") =~ /[yY]/) {
-+if (prompt ("Enable select backend (y/n)?", "n") =~ /[yY]/) {
- $DEFINE .= " -DEV_USE_SELECT=1";
-
- print <<EOF;
++++ EV-4.17/Makefile.PL 2014-06-23 18:55:22.780438631 +0200
@@ -112,7 +112,7 @@ the default here unless you run into com
EOF
@@ -50,7 +41,7 @@
my $can_inotify = -e "/usr/include/sys/inotify.h";
$can_inotify = $ENV{EV_INOTIFY} if exists $ENV{EV_INOTIFY};
-$DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", $can_inotify ? "y" : "n") =~ /[yY]/));
-+$DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", "y") =~ /[yY]/));
++$DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", "n") =~ /[yY]/));
print <<EOF;
@@ -59,7 +50,7 @@
my $can_eventfd = -e "/usr/include/sys/eventfd.h";
$can_eventfd = $ENV{EV_EVENTFD} if exists $ENV{EV_EVENTFD};
-$DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", $can_eventfd ? "y" : "n") =~ /[yY]/));
-+$DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", "y") =~ /[yY]/));
++$DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", "n") =~ /[yY]/));
print <<EOF;
@@ -68,7 +59,7 @@
my $can_signalfd = -e "/usr/include/sys/signalfd.h";
$can_signalfd = $ENV{EV_SIGNALFD} if exists $ENV{EV_SIGNALFD};
-$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", $can_signalfd ? "y" : "n") =~ /[yY]/));
-+$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", "y") =~ /[yY]/));
++$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", "n") =~ /[yY]/));
print <<EOF;