2014-10-09 16:05:50 +02:00
|
|
|
# $NetBSD: Makefile,v 1.36 2014/10/09 14:06:49 wiz 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
|
|
|
|
|
2006-06-01 00:04:55 +02:00
|
|
|
MAINTAINER= seb@NetBSD.org
|
2003-07-11 16:50:37 +02:00
|
|
|
#HOMEPAGE=
|
2003-07-21 19:10:16 +02: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
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS= sysctl
|
2007-05-19 00:44:32 +02:00
|
|
|
LDD_SYSCTL!= ldd /sbin/sysctl 2>&1 || ${TRUE}
|
2003-12-13 18:45:59 +01:00
|
|
|
MAKE_ENV+= LDD_SYSCTL=${LDD_SYSCTL:Q} # save another ldd run
|
|
|
|
.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
|
|
|
|
|
2012-10-31 15:41:55 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= kver/kver.sh kver/kver.8 lib/kver.3
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@SH@,${SH},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
|
|
|
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
|
|
|
|
|
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"
|