2019-05-23 21:22:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.40 2019/05/23 19:23:12 rillig Exp $
|
2003-07-11 16:50:37 +02:00
|
|
|
|
2014-03-03 04:30:52 +01:00
|
|
|
PKGNAME= libkver-${VERSION}
|
2003-07-11 16:50:37 +02:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
|
2018-01-27 20:07:46 +01:00
|
|
|
MAINTAINER= seb@NetBSD.org
|
2003-07-11 16:50:37 +02:00
|
|
|
#HOMEPAGE=
|
2018-01-27 20:07:46 +01:00
|
|
|
COMMENT= Shared library and sysctl(1) replacement to override system version
|
2003-07-11 16:50:37 +02:00
|
|
|
|
2007-07-26 14:24:52 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-07-26 14:24:08 +02:00
|
|
|
CHECK_PERMS= no
|
2003-07-11 16:50:37 +02:00
|
|
|
|
2006-06-01 00:10:30 +02:00
|
|
|
NO_PKGTOOLS_REQD_CHECK= yes
|
2008-10-01 22:16:50 +02:00
|
|
|
USE_BSD_MAKEFILE= yes
|
2003-07-11 16:50:37 +02:00
|
|
|
|
2013-08-23 10:59:51 +02:00
|
|
|
VERSION= 0.7.2
|
2003-07-11 16:50:37 +02:00
|
|
|
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-*
|
|
|
|
|
2004-01-19 14:38:28 +01:00
|
|
|
BUILDLINK_PASSTHRU_DIRS= ${BSDSRCDIR}/sys
|
|
|
|
|
2018-01-27 20:07:46 +01:00
|
|
|
PLIST_VARS= sysctl
|
|
|
|
LDD_SYSCTL!= ldd /sbin/sysctl 2>&1 || ${TRUE}
|
|
|
|
MAKE_ENV+= LDD_SYSCTL=${LDD_SYSCTL:Q} # save another ldd run
|
2003-12-13 18:45:59 +01:00
|
|
|
.if empty(LDD_SYSCTL:M*libc*)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.sysctl= yes
|
2003-12-13 18:45:59 +01:00
|
|
|
FILES_SUBST+= HAS_SYSCTL=true
|
|
|
|
.else
|
|
|
|
FILES_SUBST+= HAS_SYSCTL=false
|
2003-07-20 17:37:46 +02:00
|
|
|
.endif
|
|
|
|
|
2018-01-27 20:07:46 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= kver/kver.sh kver/kver.8 lib/kver.3
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.paths= PREFIX
|
|
|
|
SUBST_VARS.paths+= SH
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.paths= pre-configure
|
2012-10-31 15:41:55 +01:00
|
|
|
|
|
|
|
INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man8 ${PKGMANDIR}/cat8
|
|
|
|
INSTALLATION_DIRS+= lib ${PKGMANDIR}/man3 ${PKGMANDIR}/cat3
|
2003-12-13 18:45:59 +01:00
|
|
|
.if empty(LDD_SYSCTL:M*libc*)
|
2003-12-23 20:48:31 +01:00
|
|
|
INSTALLATION_DIRS+= sbin
|
2003-12-13 18:45:59 +01:00
|
|
|
.endif
|
|
|
|
|
2017-08-19 02:22:00 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q}
|
|
|
|
|
2003-12-23 20:48:31 +01:00
|
|
|
do-extract:
|
2006-06-01 00:10:30 +02:00
|
|
|
${CP} -R ${FILESDIR} ${WRKSRC}
|
2003-12-23 20:48:31 +01:00
|
|
|
|
2005-11-14 09:58:51 +01:00
|
|
|
LIBKVER_STANDALONE_PREFIX?= /libkver
|
2005-11-07 23:30:13 +01:00
|
|
|
standalone-install:
|
2006-06-01 00:10:30 +02:00
|
|
|
${MAKE} ${MAKEFLAGS} PKG_DBDIR=${LIBKVER_STANDALONE_PREFIX:Q}/pkg \
|
|
|
|
PREFIX=${LIBKVER_STANDALONE_PREFIX:Q} install
|
2005-11-07 23:30:13 +01:00
|
|
|
|
2003-07-11 16:50:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|