aboutsummaryrefslogtreecommitdiff
path: root/sysutils/busybox/Makefile
blob: cd23a69ebe5728201c95fc4259585930db1ac625 (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
# New ports collection makefile for:	busybox
# Date created:         Aug.18, 2008
# Whom:                 luigi@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	busybox
PORTVERSION=	1.18.4
CATEGORIES=	sysutils misc shells
MASTER_SITES=	http://www.busybox.net/downloads/ \
		${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=	distfiles

MAINTAINER=	utisoft@gmail.com
COMMENT=	Busybox for FreeBSD

BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc/gsed

MAKE_ARGS=	SKIP_STRIP=y
USE_BZIP2=	yes
USE_GMAKE=	yes

PLIST_FILES=	bin/busybox

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

do-configure:
	${CP} ${FILESDIR}/data-.config ${WRKSRC}/.config
	cd ${WRKSRC} && ${GMAKE} oldconfig

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>