blob: 0cc2f592eccc794547182d4ab2c1a1a929cc068b (
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
|
# $NetBSD: Makefile,v 1.10 2009/11/06 13:50:53 stacktic Exp $
#
DISTNAME= rump_20091103
PKGNAME= ${DISTNAME:S/_/-/}
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/stacktic/
MAINTAINER= stacktic@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/docs/rump/
COMMENT= Virtualized NetBSD kernel components in userspace
ONLY_FOR_PLATFORM= Linux-*-* FreeBSD-*-*
INSTALLATION_DIRS= lib include/rump ${PKGMANDIR}/man3
PKG_DESTDIR_SUPPORT= user-destdir
USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}/rump
MAKEFLAGS+= MACHINE_ARCH=${MACHINE_ARCH}
MAKEFLAGS+= BSDSRCDIR=${WRKSRC}
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Adjusting path.
SUBST_FILES.path= sys/rump/include/rump/rump.h
SUBST_SED.path= -e 's|\#include.*\<rump/rumpnet_if_pub.h\>||g'
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
MAKEFLAGS+= MACHINE=${MACHINE_ARCH:C/x86_64/amd64/}
CRT_PATH!= gcc --print-file-name=crtbegin.o
MAKEFLAGS+= _GCC_CRTBEGIN=${CRT_PATH}
MAKEFLAGS+= _GCC_CRTBEGINS=${CRT_PATH:C/begin/beginS/}
MAKEFLAGS+= _GCC_CRTEND=${CRT_PATH:C/begin/end/}
MAKEFLAGS+= _GCC_CRTENDS=${CRT_PATH:C/begin/endS/}
.endif
RUMP_INCS= rump.h rump_compat.h rump_namei.h rump_syscalls.h
RUMP_INCS+= rumpdefs.h rumpuser.h rumpvnode_if.h
RUMP_INCS+= rumpkern_if_pub.h rumpvfs_if_pub.h
post-install:
.for i in ${RUMP_INCS}
${INSTALL_DATA} ${WRKSRC}/sys/rump/include/rump/${i} \
${DESTDIR}${PREFIX}/include/rump
.endfor
${INSTALL_DATA} ${WRKSRC}/lib/libukfs/ukfs.h \
${DESTDIR}${PREFIX}/include/rump
.include "../../mk/bsd.pkg.mk"
|