summaryrefslogtreecommitdiff
path: root/crosspkgtools/crosspkg-netbsd1-hpcarm/Makefile
blob: 1e6b04188ad6105e43d678dd0e3d2773b31af850 (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
# $NetBSD: Makefile,v 1.2 2005/08/13 05:56:23 uebayasi Exp $

DISTNAME=	crosspkg-netbsd1-hpcarm-1.6.2
CATEGORIES=     crosspkgtools
MASTER_SITES=	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/hpcarm/binary/sets/
EXTRACT_SUFX=	.tgz
DISTFILES=	base.tgz comp.tgz etc.tgz games.tgz kern-JORNADA720.tgz man.tgz \
		misc.tgz text.tgz xbase.tgz xcomp.tgz xcontrib.tgz xfont.tgz \
		xmisc.tgz \
		gnusrc.tgz sharesrc.tgz src.tgz syssrc.tgz xsrc.tgz

MAINTAINER=	kristerw@NetBSD.org
HOMEPAGE=	http://www.df.lth.se/~cato/kwacross/
COMMENT=	Files neccessary to cross build NetBSD/arm-1.6.x programs

DEPENDS+=	kwacross-netbsd1-arm-2*:../../crosspkgtools/kwacross-netbsd1-arm

DIST_SUBDIR=	${PKGNAME_NOREV}
SRC_SITES=	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/source/sets/
SITES_gnusrc.tgz=	${SRC_SITES}
SITES_sharesrc.tgz=	${SRC_SITES}
SITES_src.tgz=		${SRC_SITES}
SITES_syssrc.tgz=	${SRC_SITES}
SITES_xsrc.tgz=		${SRC_SITES}

EXTRACT_ONLY=	# empty
NO_BUILD=	YES

NO_PACKAGE=	"needs work to function properly as a binary package"

# Dynamically generate the PLIST from the installed files.
CROSSFS_PLIST_FILES= \
	(cd ${PREFIX};  ${FIND} crossfs/netbsd1-hpcarm \! -type d -print ) \
	| ${SORT} -u
CROSSFS_PLIST_DIRS= \
	(cd ${PREFIX};  ${FIND} crossfs/netbsd1-hpcarm -type d -print ) \
	| ${SED} -e "s,^,@unexec ${RMDIR} -p %D/,"			\
		 -e "s,$$, 2>/dev/null || ${TRUE},"			\
	| ${SORT} -ur
GENERATE_PLIST+=	${CROSSFS_PLIST_FILES}; ${CROSSFS_PLIST_DIRS};

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/crossfs/netbsd1-hpcarm
	cd ${PREFIX}/crossfs/netbsd1-hpcarm && 			\
		${TAR} zxfp ${_DISTDIR}/base.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/comp.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/etc.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/games.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/kern-JORNADA720.tgz && 	\
		${TAR} zxfp ${_DISTDIR}/man.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/misc.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/text.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/xbase.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/xcomp.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/xcontrib.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/xfont.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/xmisc.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/gnusrc.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/sharesrc.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/src.tgz && 		\
		${TAR} zxfp ${_DISTDIR}/syssrc.tgz
	cd ${PREFIX}/crossfs/netbsd1-hpcarm/usr && 		\
		${TAR} zxfp ${_DISTDIR}/xsrc.tgz
	# XXX These should be done in some kind of installation script
	# and should not be added in binary packages.
	${CP} /etc/resolv.conf ${PREFIX}/crossfs/netbsd1-hpcarm/etc/resolv.conf
	${RM}  ${PREFIX}/crossfs/netbsd1-hpcarm/etc/localtime
	${CP} /etc/localtime ${PREFIX}/crossfs/netbsd1-hpcarm/etc/localtime

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