blob: 3ce4598dd9d96ad36dee989e9bf999b88a22abd9 (
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
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
|
# Created by: luigi@FreeBSD.org
# $FreeBSD$
PORTNAME= busybox
PORTVERSION= 1.21.0
PORTREVISION= 2
CATEGORIES= sysutils misc shells
MASTER_SITES= http://www.busybox.net/downloads/
PKGNAMESUFFIX= -unstable
PATCH_SITES= http://www.busybox.net/downloads/fixes-${PORTVERSION}/
PATCH_DIST_STRIP= -p1
PATCHFILES= busybox-1.21.0-mdev.patch \
busybox-1.21.0-platform.patch \
busybox-1.21.0-xz.patch
MAINTAINER= mandree@FreeBSD.org
COMMENT= Busybox for FreeBSD
LICENSE= GPLv2
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
CONFLICTS_INSTALL= busybox-[1-9]*
IGNORE= is older than stable version. Use sysutils/busybox
PORTSCOUT= skipv:1.21.1
MAKE_ARGS+= SKIP_STRIP=y CC="${CC}" HOSTCC="${CC}" CXX="${CXX}" HOSTCXX="${CXX}"
USES= gmake
USE_BZIP2= yes
# avoid clang, breaks in findutils/find.c l. 752+,
NO_STAGE= yes
# uses a GCC extension/invalid C code:
USE_GCC?= 4.2+
PLIST_FILES= bin/busybox
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
USES+= perl5
USE_PERL5= build
PORTDOCS= *
.endif
post-patch:
${REINPLACE_CMD} -e 's/sed/gsed/' ${WRKSRC}/scripts/gen_build_files.sh
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
${WRKSRC}/libbb/appletlib.c \
${WRKSRC}/shell/hush.c
${REINPLACE_CMD} -e 's/<alloca.h>/<stdlib.h>/' \
${WRKSRC}/scripts/basic/*.c
do-configure:
${CP} ${FILESDIR}/data-.config ${WRKSRC}/.config
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} oldconfig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
${RM} -f ${DOCSDIR}/.gitignore
.endif
.include <bsd.port.mk>
|