summaryrefslogtreecommitdiff
path: root/user/libev
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-12-27 00:16:22 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-12-27 00:50:58 +0000
commit20d6948ff8589faf53802bc4f2b82194a5296880 (patch)
treee66d8a2c0daaeb378bf365c2d09df19973ee10a3 /user/libev
parent7e1f58eff231562a3633dd654a2ba158cf241e49 (diff)
downloadpackages-20d6948ff8589faf53802bc4f2b82194a5296880.tar.gz
packages-20d6948ff8589faf53802bc4f2b82194a5296880.tar.bz2
packages-20d6948ff8589faf53802bc4f2b82194a5296880.tar.xz
packages-20d6948ff8589faf53802bc4f2b82194a5296880.zip
system/{c-ares,libev}: Move back to user/
These are no longer required in the system/ repository.
Diffstat (limited to 'user/libev')
-rw-r--r--user/libev/APKBUILD38
-rw-r--r--user/libev/libev-4.11-Add-pkgconfig-support.patch58
2 files changed, 96 insertions, 0 deletions
diff --git a/user/libev/APKBUILD b/user/libev/APKBUILD
new file mode 100644
index 000000000..8b1b90edd
--- /dev/null
+++ b/user/libev/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Ariadne Conill <ariadne@dereferenced.org>
+# Maintainer: Síle Ekaterin Liszka <sheila@adelielinux.org>
+pkgname=libev
+pkgver=4.33
+pkgrel=0
+pkgdesc="Event dispatch library"
+url="http://software.schmorp.de/pkg/libev.html"
+arch="all"
+options="!check" # No test suite.
+license="BSD-2-Clause OR GPL-2.0+"
+makedepends="$depends_dev autoconf automake libtool"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://dist.schmorp.de/${pkgname}/Attic/${pkgname}-${pkgver}.tar.gz
+ libev-4.11-Add-pkgconfig-support.patch
+ "
+
+prepare() {
+ default_prepare
+ libtoolize --force && aclocal -I m4 && autoheader && autoconf \
+ && automake --add-missing
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ make
+}
+
+package() {
+ make -j1 DESTDIR="$pkgdir" install
+ rm "$pkgdir"/usr/include/event.h
+}
+
+sha512sums="c662a65360115e0b2598e3e8824cf7b33360c43a96ac9233f6b6ea2873a10102551773cad0e89e738541e75af9fd4f3e3c11cd2f251c5703aa24f193128b896b libev-4.33.tar.gz
+b5bc1b5ed1e605cd45a01adce70c1a97188c0b46a36333f12eccd4407c95d96f18adff90ee8c5733c1783a36b4adc5ef67d6b470104339a1ac5c4539a2a4599e libev-4.11-Add-pkgconfig-support.patch"
diff --git a/user/libev/libev-4.11-Add-pkgconfig-support.patch b/user/libev/libev-4.11-Add-pkgconfig-support.patch
new file mode 100644
index 000000000..8c478caee
--- /dev/null
+++ b/user/libev/libev-4.11-Add-pkgconfig-support.patch
@@ -0,0 +1,58 @@
+From 01d2c386b58afa49567ccc079c963f76dc2e60f3 Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha@fedoraproject.org>
+Date: Fri, 8 Feb 2013 15:40:51 +0800
+Subject: [PATCH] Add pkgconfig support
+
+---
+ Makefile.am | 4 ++++
+ configure.ac | 2 +-
+ libev.pc.in | 11 +++++++++++
+ 3 files changed, 16 insertions(+), 1 deletion(-)
+ create mode 100644 libev.pc.in
+
+diff --git a/Makefile.am b/Makefile.am
+index 059305b..9e556c0 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -11,6 +11,10 @@ man_MANS = ev.3
+
+ include_HEADERS = ev.h ev++.h event.h
+
++pkgconfigdir = $(libdir)/pkgconfig
++
++pkgconfig_DATA = libev.pc
++
+ lib_LTLIBRARIES = libev.la
+
+ libev_la_SOURCES = ev.c event.c
+diff --git a/configure.ac b/configure.ac
+index 31d0a25..1af149a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -21,5 +21,5 @@ AC_PROG_LIBTOOL
+
+ m4_include([libev.m4])
+
+-AC_CONFIG_FILES([Makefile])
++AC_CONFIG_FILES([Makefile libev.pc])
+ AC_OUTPUT
+diff --git a/libev.pc.in b/libev.pc.in
+new file mode 100644
+index 0000000..3b6c636
+--- /dev/null
++++ b/libev.pc.in
+@@ -0,0 +1,11 @@
++prefix=@prefix@
++exec_prefix=@prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: libev
++Description: High-performance event loop/event model
++Version: @VERSION@
++Libs: -L${libdir} -lev
++Libs.private:
++Cflags: -I${includedir}
+--
+1.8.1
+