2009-03-25 23:17:16 +01:00
|
|
|
# New ports collection makefile for: busybox
|
|
|
|
# Date created: Aug.18, 2008
|
|
|
|
# Whom: luigi@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= busybox
|
2012-07-17 04:27:08 +02:00
|
|
|
PORTVERSION= 1.20.2
|
2009-03-25 23:17:16 +01:00
|
|
|
CATEGORIES= sysutils misc shells
|
2011-07-14 11:51:29 +02:00
|
|
|
MASTER_SITES= http://www.busybox.net/downloads/
|
2009-03-25 23:17:16 +01:00
|
|
|
|
2011-10-30 01:35:33 +02:00
|
|
|
#PATCH_SITES= http://www.busybox.net/downloads/fixes-${PORTVERSION}/
|
|
|
|
#PATCH_DIST_STRIP= -p1
|
|
|
|
#PATCHFILES= \
|
2011-08-26 03:14:01 +02:00
|
|
|
|
2011-07-13 22:14:02 +02:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2009-03-25 23:17:16 +01:00
|
|
|
COMMENT= Busybox for FreeBSD
|
|
|
|
|
2011-07-14 12:57:39 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-02-05 09:48:13 +01:00
|
|
|
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
|
|
|
|
|
2011-07-14 12:57:39 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MAKE_ARGS+= SKIP_STRIP=y
|
2009-03-25 23:17:16 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2011-09-22 23:13:27 +02:00
|
|
|
# avoid clang, breaks in findutils/find.c l. 752+,
|
|
|
|
# uses a GCC extension/invalid C code:
|
2011-07-14 12:57:39 +02:00
|
|
|
USE_GCC= 4.2+
|
2009-03-25 23:17:16 +01:00
|
|
|
|
|
|
|
PLIST_FILES= bin/busybox
|
|
|
|
|
2011-07-14 12:57:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
2011-01-14 10:59:17 +01:00
|
|
|
post-patch:
|
2011-08-26 03:14:01 +02:00
|
|
|
${REINPLACE_CMD} -e 's/sed/gsed/' ${WRKSRC}/scripts/gen_build_files.sh
|
|
|
|
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
|
2011-02-05 09:48:13 +01:00
|
|
|
${WRKSRC}/libbb/appletlib.c \
|
|
|
|
${WRKSRC}/shell/hush.c
|
2012-07-17 04:27:08 +02:00
|
|
|
${REINPLACE_CMD} -e 's/<alloca.h>/<stdlib.h>/' \
|
|
|
|
${WRKSRC}/scripts/basic/*.c
|
2009-07-06 10:27:51 +02:00
|
|
|
|
2009-03-25 23:17:16 +01:00
|
|
|
do-configure:
|
|
|
|
${CP} ${FILESDIR}/data-.config ${WRKSRC}/.config
|
2011-07-14 12:57:39 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} oldconfig
|
2009-03-25 23:17:16 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
2011-07-14 12:57:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
|
|
${RM} -f ${DOCSDIR}/.gitignore
|
|
|
|
.endif
|
2009-03-25 23:17:16 +01:00
|
|
|
|
2011-03-23 16:11:33 +01:00
|
|
|
.include <bsd.port.mk>
|