Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add new pkgconf file
Baptiste Daroussin committed 13 years ago
commit 9a7378b982eb37f8f070500d4ae71df9823ec291
parent bfde602
2 files changed +25 -0
modified libpkg/Makefile
@@ -36,7 +36,16 @@ SRCS= backup.c \
		utils.c \
		plugins.c

+
PC=	pkg.pc
+
CLEANFILES=	${PC}
+

+
all: ${PC}
+

+
realinstall: ${PC}
+
	${INSTALL} -m 644 ${PC} ${PREFIX}/libdata/pkgconfig
+

HAVE_GRUTILS!=	grep -q gr_copy /usr/include/libutil.h && echo yes || echo no
+
VERSION!=	awk '$$2 == "PKGVERSION" { print $$3 }' pkg.h

.if ${HAVE_GRUTILS} != yes
SRCS+=	gr_util.c
@@ -75,3 +84,10 @@ NO_MAN= yes

.include <bsd.lib.mk>

+
.SUFFIXES: .pc.in .pc
+

+
.pc.in.pc:
+
	sed -e "s,__PREFIX__,${PREFIX},g" \
+
		-e "s,__VERSION__,${VERSION},g" \
+
		${.IMPSRC} > ${.TARGET}
+

added libpkg/pkg.pc.in
@@ -0,0 +1,9 @@
+
prefix=__PREFIX__
+
libdir=${prefix}/lib
+
includedir=${prefix}/include
+

+
Name: pkg
+
Descriptions: Library to manipulate packages
+
Version: __VERSION__
+
Libs: -L${libdir} -lpkg
+
Cflags: -I${includedir}