ports/155293: [regression][patch] devel/libevent2: no compat headers via pkg-config
Anonymous
swell.k at gmail.com
Sat Mar 5 15:20:10 UTC 2011
>Number: 155293
>Category: ports
>Synopsis: [regression][patch] devel/libevent2: no compat headers via pkg-config
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Mar 05 15:20:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Allow pkg-config users to find libevent14 compatability headers.
Unlike vanilla sources the port moves the headers outside directory
advertised via pkg-config. So, depending ports that use them and
pkg-config are forced to alter CFLAGS manually.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/libevent2/Makefile
===================================================================
RCS file: /a/.cvsup/ports/devel/libevent2/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- devel/libevent2/Makefile 2 Mar 2011 20:14:26 -0000 1.2
+++ devel/libevent2/Makefile 5 Mar 2011 14:49:29 -0000
@@ -48,6 +48,8 @@ post-patch:
@${REINPLACE_CMD} -E \
-e "s,^pkgconfigdir =.*,pkgconfigdir = \$$(prefix)/libdata/pkgconfig,g" \
${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} '/^Cflags:/s|$$| -I$${includedir}/event2/compat|' \
+ ${WRKSRC}/*.pc.in
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/event_rpcgen.py ${PREFIX}/bin/event2_rpcgen.py
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list