summaryrefslogtreecommitdiff
path: root/pkgtools/bootstrap-extras/Makefile
blob: cc4276915c44c6e7f1c35fcd61da8f6f0d64d8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# $NetBSD: Makefile,v 1.6 2008/06/19 18:12:18 joerg Exp $

DISTNAME=	bootstrap-extra-files-20070702
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Extra bootstrap files and scripts for ${OPSYS}

PKG_DESTDIR_SUPPORT=	user-destdir

NO_CHECKSUM=	yes
NO_MTREE=	yes
NO_CONFIGURE=	yes
NO_BUILD=	yes

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

EXTRA_FILES=	fakeldd mkdir strip xargs
PLIST_VARS+=	${EXTRA_FILES}

.PHONY: ${EXTRA_FILES:S/^/do-install-/}

NEED_FAKELDD=		IRIX
.if !empty(NEED_FAKELDD:M${OPSYS})
PLIST.fakeldd=		yes
do-install:		do-install-fakeldd
.endif

NEED_MKDIR=		UnixWare
.if !empty(NEED_MKDIR:M${OPSYS})
PLIST.mkdir=		yes
do-install:		do-install-mkdir
.endif

NEED_STRIP=		AIX
.if !empty(NEED_STRIP:M${OPSYS})
PLIST.strip=		yes
do-install:		do-install-strip
.endif

NEED_XARGS=		Interix
.if !empty(NEED_XARGS:M${OPSYS})
PLIST.xargs=		yes
do-install:		do-install-xargs
.endif

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

do-install:
	@${ECHO} ${.ALLSRC}

do-install-fakeldd:
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/fakeldd ${DESTDIR}${PREFIX}/sbin/fakeldd

do-install-mkdir:
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/mkdir-sh ${DESTDIR}${PREFIX}/bin/mkdir-sh

do-install-strip:
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/strip-sh ${DESTDIR}${PREFIX}/bin/strip

do-install-xargs:
	${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/xargs-sh ${DESTDIR}${PREFIX}/bin/xargs

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