1 # $NetBSD: Makefile,v 1.32 2012/10/31 14:41:55 apb Exp $
3 DISTNAME
= libkver-
${VERSION}
8 MAINTAINER
= seb@NetBSD.org
10 COMMENT
= Shared library and sysctl
(1) replacement to
override system version
12 PKG_INSTALLATION_TYPES
= overwrite pkgviews
14 .
include "../../mk/bsd.prefs.mk"
18 NO_PKGTOOLS_REQD_CHECK
= yes
23 ONLY_FOR_PLATFORM
= NetBSD-
*-*
25 BUILDLINK_PASSTHRU_DIRS
= ${BSDSRCDIR}/sys
28 LDD_SYSCTL
!= ldd
/sbin
/sysctl
2>&1 ||
${TRUE}
29 MAKE_ENV
+= LDD_SYSCTL
=${LDD_SYSCTL
:Q
} # save another ldd run
30 .if empty
(LDD_SYSCTL
:M
*libc
*)
32 FILES_SUBST
+= HAS_SYSCTL
=true
34 FILES_SUBST
+= HAS_SYSCTL
=false
38 SUBST_FILES.paths
= kver
/kver.sh kver
/kver
.8 lib
/kver
.3
39 SUBST_SED.paths
+= -e
's,@PREFIX@,${PREFIX},g'
40 SUBST_SED.paths
+= -e
's,@SH@,${SH},g'
41 SUBST_STAGE.paths
= post-patch
43 INSTALLATION_DIRS
+= sbin
${PKGMANDIR}/man8
${PKGMANDIR}/cat8
44 INSTALLATION_DIRS
+= lib
${PKGMANDIR}/man3
${PKGMANDIR}/cat3
45 .if empty
(LDD_SYSCTL
:M
*libc
*)
46 INSTALLATION_DIRS
+= sbin
50 ${CP} -R
${FILESDIR} ${WRKSRC}
52 LIBKVER_STANDALONE_PREFIX?
= /libkver
54 ${MAKE} ${MAKEFLAGS} PKG_DBDIR
=${LIBKVER_STANDALONE_PREFIX
:Q
}/pkg \
55 PREFIX
=${LIBKVER_STANDALONE_PREFIX
:Q
} install
57 .
include "../../mk/bsd.pkg.mk"