summaryrefslogtreecommitdiff
path: root/pkgtools/bootstrap-extras/Makefile
blob: 7954bd485aca5f48c412f789baff2b5f212d9508 (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
# $NetBSD: Makefile,v 1.4 2007/07/02 13:34:14 tnn 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}

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

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

OPSYSVARS+=		NEED_FAKELDD
NEED_FAKELDD.IRIX=	# empty
NEED_FAKELDD.*=		"@comment "
PLIST_SUBST+=		NEED_FAKELDD=${NEED_FAKELDD}

OPSYSVARS+=		NEED_MKDIR
NEED_MKDIR.UnixWare=	# empty
NEED_MKDIR.*=		"@comment "
PLIST_SUBST+=		NEED_MKDIR=${NEED_MKDIR}

OPSYSVARS+=		NEED_STRIP
NEED_STRIP.AIX=		# empty
NEED_STRIP.*=		"@comment "
PLIST_SUBST+=		NEED_STRIP=${NEED_STRIP}

OPSYSVARS+=		NEED_XARGS
NEED_XARGS.Interix=	# empty
NEED_XARGS.*=		"@comment "
PLIST_SUBST+=		NEED_XARGS=${NEED_XARGS}

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

do-install:
	if ${TEST} -z ${NEED_FAKELDD:M*:Q}""; then			\
		${INSTALL_SCRIPT_DIR} ${PREFIX}/sbin;			\
		${INSTALL_SCRIPT} ${WRKSRC}/fakeldd			\
			${PREFIX}/sbin/fakeldd;				\
	fi
	if ${TEST} -z ${NEED_MKDIR:M*:Q}""; then			\
		${INSTALL_SCRIPT_DIR} ${PREFIX}/bin;			\
		${INSTALL_SCRIPT} ${WRKSRC}/mkdir-sh			\
			${PREFIX}/bin/mkdir-sh;				\
	fi
	if ${TEST} -z ${NEED_STRIP:M*:Q}""; then			\
		${INSTALL_SCRIPT_DIR} ${PREFIX}/bin;			\
		${INSTALL_SCRIPT} ${WRKSRC}/strip-sh			\
			${PREFIX}/bin/strip;				\
	fi
	if ${TEST} -z ${NEED_XARGS:M*:Q}""; then			\
		${INSTALL_SCRIPT_DIR} ${PREFIX}/bin;			\
		${INSTALL_SCRIPT} ${WRKSRC}/xargs-sh			\
			${PREFIX}/bin/xargs;				\
	fi

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