2004-07-06 11:45:38 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2004/07/06 09:45:38 cube Exp $
|
2003-07-11 16:50:37 +02:00
|
|
|
|
|
|
|
DISTNAME= libkver-${VERSION}
|
|
|
|
CATEGORIES= pkgtools
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
2003-07-18 00:50: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
|
|
|
|
|
|
|
|
USE_BUILDLINK3= YES
|
2003-12-13 18:45:59 +01:00
|
|
|
USE_PKGINSTALL= YES
|
2003-07-11 16:50:37 +02:00
|
|
|
|
|
|
|
NO_PKGTOOLS_REQD_CHECK= # defined
|
|
|
|
NO_CHECKSUM= # defined
|
|
|
|
NO_MTREE= # defined
|
|
|
|
|
2004-07-06 11:45:38 +02:00
|
|
|
VERSION= 0.5
|
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-13 18:45:59 +01:00
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
|
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:
|
|
|
|
@${CP} -Rp ${FILESDIR} ${WRKSRC}
|
|
|
|
|
2003-07-11 16:50:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|