ports/160030: [PATCH] devel/libev add libev.pc
Aldis Berjoza
aldis at bsdroot.lv
Tue Aug 23 16:00:04 UTC 2011
>Number: 160030
>Category: ports
>Synopsis: [PATCH] devel/libev add libev.pc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 23 16:00:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Aldis Berjoza
>Release:
>Organization:
>Environment:
>Description:
libev lacks libev.pc
I created one and updated Makefile, to install it.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -urN libev.bak/Makefile libev/Makefile
--- libev.bak/Makefile 2010-09-18 22:26:25.000000000 +0300
+++ libev/Makefile 2011-08-23 18:22:57.853521841 +0300
@@ -7,7 +7,7 @@
PORTNAME= libev
PORTVERSION= 3.9
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= http://dist.schmorp.de/libev/ \
@@ -21,10 +21,17 @@
MAN3= ev.3
+PKGCONFIGDIR?= ${LOCALBASE}/libdata/pkgconfig
+
post-patch:
@${REINPLACE_CMD} -e 's/if EV_MINIMAL/if defined(EV_MINIMAL) \&\& EV_MINIMAL/g' \
${WRKSRC}/ev.h \
${WRKSRC}/ev.c \
${WRKSRC}/ev++.h
+ @${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
+ ${FILESDIR}/libev.pc.in > ${WRKDIR}/libev.pc
+
+post-install:
+ @${INSTALL_DATA} ${WRKDIR}/libev.pc ${PKGCONFIGDIR}/
.include <bsd.port.mk>
diff -urN libev.bak/files/libev.pc.in libev/files/libev.pc.in
--- libev.bak/files/libev.pc.in 1970-01-01 03:00:00.000000000 +0300
+++ libev/files/libev.pc.in 2011-08-23 18:20:51.905735807 +0300
@@ -0,0 +1,9 @@
+prefix=%PREFIX%
+libdir=${prefix}/lib
+includedi=${prefix}/include
+
+Name: libev
+Description: High-performance event loop/event model
+Version: %VERSION%
+Libs: -L${libdir} -lev
+Cflags: -I${includedir}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list