Date: Tue, 23 Aug 2011 15:56:20 GMT From: Aldis Berjoza <aldis@bsdroot.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/160031: [PATCH] devel/yajl add yajl.pc Message-ID: <201108231556.p7NFuKDm025704@red.freebsd.org> Resent-Message-ID: <201108231600.p7NG04Io079208@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 160031 >Category: misc >Synopsis: [PATCH] devel/yajl add yajl.pc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 23 16:00:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Aldis Berjoza >Release: >Organization: >Environment: >Description: yajl lacks yajl.pc I created one and updated Makefile, to install it. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN yajl.bak/Makefile yajl/Makefile --- yajl.bak/Makefile 2011-08-23 18:25:45.916568929 +0300 +++ yajl/Makefile 2011-08-23 18:50:28.575082829 +0300 @@ -7,6 +7,7 @@ PORTNAME= yajl PORTVERSION= 1.0.11 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= LOCAL/bapt \ http://files.etoilebsd.net/yajl/ @@ -24,4 +25,13 @@ USE_LDCONFIG= yes USE_CMAKE= yes +PKGCONFIGDIR?= ${LOCALBASE}/libdata/pkgconfig + +post-patch: + @${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \ + ${FILESDIR}/yajl.pc.in > ${WRKDIR}/yajl.pc + +post-install: + @${INSTALL_DATA} ${WRKDIR}/yajl.pc ${PKGCONFIGDIR}/ + .include <bsd.port.mk> diff -ruN yajl.bak/files/yajl.pc.in yajl/files/yajl.pc.in --- yajl.bak/files/yajl.pc.in 1970-01-01 03:00:00.000000000 +0300 +++ yajl/files/yajl.pc.in 2011-08-23 18:45:43.814170585 +0300 @@ -0,0 +1,9 @@ +prefix=%PREFIX% +libdir=${prefix}/lib +includedir=${prefix}/include/yajl + +Name: Yet Another JSON Library +Description: A Portable JSON parsing and serialization library in ANSI C +Version: %VERSION% +Cflags: -I${includedir} +Libs: -L${libdir} -lyajl >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108231556.p7NFuKDm025704>