Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / libkver / Makefile
blob91620b9f3c9cf272fee2eb6dcbf14266f7610af6
1 # $NetBSD: Makefile,v 1.32 2012/10/31 14:41:55 apb Exp $
3 DISTNAME= libkver-${VERSION}
4 CATEGORIES= pkgtools
5 MASTER_SITES= # empty
6 DISTFILES= # empty
8 MAINTAINER= seb@NetBSD.org
9 #HOMEPAGE=
10 COMMENT= Shared library and sysctl(1) replacement to override system version
12 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 .include "../../mk/bsd.prefs.mk"
16 CHECK_PERMS= no
18 NO_PKGTOOLS_REQD_CHECK= yes
19 USE_BSD_MAKEFILE= yes
21 VERSION= 0.7.1
23 ONLY_FOR_PLATFORM= NetBSD-*-*
25 BUILDLINK_PASSTHRU_DIRS= ${BSDSRCDIR}/sys
27 PLIST_VARS= sysctl
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*)
31 PLIST.sysctl= yes
32 FILES_SUBST+= HAS_SYSCTL=true
33 .else
34 FILES_SUBST+= HAS_SYSCTL=false
35 .endif
37 SUBST_CLASSES+= paths
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
47 .endif
49 do-extract:
50 ${CP} -R ${FILESDIR} ${WRKSRC}
52 LIBKVER_STANDALONE_PREFIX?= /libkver
53 standalone-install:
54 ${MAKE} ${MAKEFLAGS} PKG_DBDIR=${LIBKVER_STANDALONE_PREFIX:Q}/pkg \
55 PREFIX=${LIBKVER_STANDALONE_PREFIX:Q} install
57 .include "../../mk/bsd.pkg.mk"