[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / libkver

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / libkver / Makefile (download)

Revision 1.30, Tue Feb 10 00:13:34 2009 UTC (11 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.29: +2 -4 lines

DESTDIR support.

# $NetBSD: Makefile,v 1.30 2009/02/10 00:13:34 joerg Exp $

DISTNAME=		libkver-${VERSION}
CATEGORIES=		pkgtools
MASTER_SITES=		# empty
DISTFILES=		# empty

MAINTAINER=	seb@NetBSD.org
#HOMEPAGE=
COMMENT=	Shared library and sysctl(1) replacement to override system version

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../mk/bsd.prefs.mk"

CHECK_PERMS=		no

NO_PKGTOOLS_REQD_CHECK=	yes
USE_BSD_MAKEFILE=	yes

VERSION=		0.6

ONLY_FOR_PLATFORM=	NetBSD-*-*

BUILDLINK_PASSTHRU_DIRS=	${BSDSRCDIR}/sys

PLIST_VARS=	sysctl
LDD_SYSCTL!=	ldd /sbin/sysctl 2>&1 || ${TRUE}
MAKE_ENV+=	LDD_SYSCTL=${LDD_SYSCTL:Q} # save another ldd run
.if empty(LDD_SYSCTL:M*libc*)
PLIST.sysctl=		yes
FILES_SUBST+=		HAS_SYSCTL=true
.else
FILES_SUBST+=		HAS_SYSCTL=false
.endif

INSTALLATION_DIRS+=	lib man/man3 man/cat3
.if empty(LDD_SYSCTL:M*libc*)
INSTALLATION_DIRS+=	sbin
.endif

do-extract:
	${CP} -R ${FILESDIR} ${WRKSRC}

LIBKVER_STANDALONE_PREFIX?=	/libkver
standalone-install:
	${MAKE} ${MAKEFLAGS} PKG_DBDIR=${LIBKVER_STANDALONE_PREFIX:Q}/pkg \
	  PREFIX=${LIBKVER_STANDALONE_PREFIX:Q} install

.include "../../mk/bsd.pkg.mk"