aboutsummaryrefslogtreecommitdiffstats
path: root/misc/rump/Makefile
blob: a704f850aae7d883d41c998e6e79100effd28f24 (plain) (blame)
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
# Created by: vanilla
# $FreeBSD$

PORTNAME=   rump
PORTVERSION=    20170822
PORTREVISION=   1
CATEGORIES= misc

MAINTAINER= vanilla@FreeBSD.org
COMMENT=    Virtualized NetBSD kernel components in userspace

LICENSE=    BSD2CLAUSE

NOT_FOR_ARCHS=  aarch64 armv6 mips mips64 powerpc powerpc64 sparc64
NOT_FOR_ARCHS_REASON=   not yet ported to FreeBSD on this architecture

USE_GITHUB= yes
GH_ACCOUNT= rumpkernel
GH_PROJECT= buildrump.sh
GH_TAGNAME= b914579
GH_TUPLE=   rumpkernel:src-netbsd:82f3a69:netbsd/src
USE_LDCONFIG=   yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 1100121
CFLAGS+=    -Wno-address-of-packed-member
.endif

do-build:
    cd ${WRKSRC}; ${SETENV} CC=${CC} AR=${AR} NM=${NM} OBJCOPY=${OBJCOPY} ./buildrump.sh -F CFLAGS="${CFLAGS}" -r fullbuild

do-install:
    cd ${WRKSRC}/rump; ${PAX} -wr lib include ${STAGEDIR}${PREFIX}/

.include <bsd.port.post.mk>