Merge from vendor branch TNF:
[pkgsrcv2.git] / pkgtools / mtree / Makefile
1 # $NetBSD: Makefile,v 1.16 2005/09/28 14:31:08 rillig Exp $
2 #
3
4 DISTNAME=               mtree-20040722
5 CATEGORIES=             pkgtools
6 MASTER_SITES=           # empty
7 DISTFILES=              # empty
8
9 MAINTAINER=             grant@NetBSD.org
10 HOMEPAGE=               http://www.NetBSD.org/
11 COMMENT=                Utility for mapping and checking directory hierarchies
12
13 GNU_CONFIGURE=          yes
14
15 NO_PKGTOOLS_REQD_CHECK= # defined
16 NO_CHECKSUM=            yes
17 NO_MTREE=               yes
18 NO_PKG_REGISTER=        # defined
19 NO_PACKAGE=             Deinstallation is not permitted
20 PKG_PRESERVE=           # defined
21
22 .include "../../mk/bsd.prefs.mk"
23
24 do-extract:
25         @${CP} -R ${FILESDIR} ${WRKSRC}
26
27 .if defined(LIBNBCOMPAT_STYLE) && (${LIBNBCOMPAT_STYLE} == "inplace")
28 .  include "../../pkgtools/libnbcompat/inplace.mk"
29 .else
30 .  include "../../pkgtools/libnbcompat/buildlink3.mk"
31 .endif
32
33 .include "../../mk/bsd.pkg.mk"
34
35 PREFIX:=                ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
36 .if ${PREFIX} == "/usr"
37 CONFIGURE_ARGS+=        --mandir=${PREFIX}/share/man
38 .else
39 CONFIGURE_ARGS+=        --mandir=${PREFIX}/man
40 .endif