- Add pkg-config pc file [1]
- Pet portlint while here PR: 233446 [1] Submitted by: Greg V <greg@unrelenting.technology> Approved by: imp (maintainer)
This commit is contained in:
parent
e19c44cecf
commit
69a1868c0d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487244
@ -3,7 +3,7 @@
|
||||
PORTNAME= libsysinfo
|
||||
PORTVERSION= 0.0.3
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= imp@bsdimp.com
|
||||
@ -11,10 +11,11 @@ COMMENT= GNU libc's sysinfo port for FreeBSD
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
USES= uidfix
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= bsdimp
|
||||
|
||||
USES= uidfix
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
LDFLAGS+= -lkvm
|
||||
@ -23,6 +24,13 @@ PLIST_FILES= include/sys/sysinfo.h \
|
||||
lib/libsysinfo.a \
|
||||
lib/libsysinfo.so \
|
||||
lib/libsysinfo.so.0 \
|
||||
libdata/pkgconfig/libsysinfo.pc \
|
||||
man/man3/sysinfo.3.gz
|
||||
|
||||
SUB_FILES= libsysinfo.pc
|
||||
SUB_LIST= PREFIX="${PREFIX}" PORTVERSION="${PORTVERSION}" COMMENT="${COMMENT}"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKDIR}/libsysinfo.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
devel/libsysinfo/files/libsysinfo.pc.in
Normal file
11
devel/libsysinfo/files/libsysinfo.pc.in
Normal file
@ -0,0 +1,11 @@
|
||||
prefix=%%PREFIX%%
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: libsysinfo
|
||||
Description: %%COMMENT%%
|
||||
Version: %%PORTVERSION%%
|
||||
Libs: -L${libdir} -lsysinfo
|
||||
Libs.private:
|
||||
Cflags: -I${includedir}
|
Loading…
Reference in New Issue
Block a user