2006-06-01 00:04:55 +02:00
|
|
|
# $NetBSD: Makefile,v 1.22 2006/05/31 22:04:55 seb Exp $
|
2003-07-11 16:50:37 +02:00
|
|
|
|
|
|
|
DISTNAME= libkver-${VERSION}
|
|
|
|
CATEGORIES= pkgtools
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
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
|
|
|
|
2004-01-19 14:38:28 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2003-07-11 16:50:37 +02:00
|
|
|
|
|
|
|
NO_PKGTOOLS_REQD_CHECK= # defined
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_MTREE= yes
|
2003-07-11 16:50:37 +02:00
|
|
|
|
2005-03-30 08:41:01 +02:00
|
|
|
VERSION= 0.6
|
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
|
|
|
|
|
2003-07-20 17:37:46 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-12-13 18:45:59 +01:00
|
|
|
LDD_SYSCTL!= ldd /sbin/sysctl 2>&1
|
|
|
|
MAKE_ENV+= LDD_SYSCTL=${LDD_SYSCTL:Q} # save another ldd run
|
|
|
|
.if empty(LDD_SYSCTL:M*libc*)
|
|
|
|
PLIST_SUBST+= HAS_SYSCTL=
|
|
|
|
FILES_SUBST+= HAS_SYSCTL=true
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= HAS_SYSCTL="@comment "
|
|
|
|
FILES_SUBST+= HAS_SYSCTL=false
|
2003-07-20 17:37:46 +02:00
|
|
|
.endif
|
|
|
|
|
2003-12-23 20:48:31 +01:00
|
|
|
INSTALLATION_DIRS+= lib man/man3 man/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:
|
2005-01-06 06:32:29 +01: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:
|
2005-11-14 09:58:51 +01:00
|
|
|
${MAKE} ${MAKEFLAGS} PKG_DBDIR=${LIBKVER_STANDALONE_PREFIX}/pkg \
|
|
|
|
PREFIX=${LIBKVER_STANDALONE_PREFIX} install
|
2005-11-07 23:30:13 +01:00
|
|
|
|
2003-07-11 16:50:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|