View | Details | Raw Unified | Return to bug 239494 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/toybox/Makefile (+50 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	toybox
4
PORTVERSION=	0.8.1
5
CATEGORIES=	sysutils
6
7
MAINTAINER=	vidar@karlsen.tech
8
COMMENT=	All-in-one command line
9
10
LICENSE=	0BSD
11
LICENSE_NAME=	BSD Zero Clause License
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
14
15
BUILD_DEPENDS=	bash:shells/bash gsed:textproc/gsed
16
LIB_DEPENDS=	libinotify.so:devel/libinotify
17
18
USES=		gmake
19
20
SHEBANG=	scripts/change.sh scripts/findglobals.sh \
21
		scripts/genconfig.sh scripts/install.sh \
22
		scripts/make.sh scripts/minicom.sh \
23
		scripts/portability.sh scripts/runtest.sh \
24
		scripts/single.sh scripts/test.sh configure
25
26
PLIST_FILES=	bin/toybox
27
28
USE_GITHUB=	yes
29
GH_ACCOUNT=	landley
30
31
post-patch:
32
.for f in ${SHEBANG}
33
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/${f}
34
.endfor
35
	@${REINPLACE_CMD} -e 's|<sys/inotify.h>|"${LOCALBASE}/include/sys/inotify.h"|' \
36
		${WRKSRC}/lib/portability.c
37
	@${REINPLACE_CMD} -e 's|-Werror=implicit-function-declaration||' \
38
		${WRKSRC}/configure
39
	@${REINPLACE_CMD} -e 's|-Wundef||' ${WRKSRC}/configure
40
41
do-configure:
42
	cd ${WRKSRC} && ${GMAKE} bsd_defconfig
43
44
do-build:
45
	cd ${WRKSRC} && ${GMAKE}
46
47
do-install:
48
	${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin
49
50
.include <bsd.port.mk>
(-)sysutils/toybox/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1564230606
2
SHA256 (landley-toybox-0.8.1_GH0.tar.gz) = a71cb9e59539437d2c682903a1ac980a431710ee1e5a7ea9a230b78dbb8f1d11
3
SIZE (landley-toybox-0.8.1_GH0.tar.gz) = 1022564
(-)sysutils/toybox/pkg-descr (+5 lines)
Line 0 Link Here
1
Toybox combines common command line utilities together
2
into a single BSD-licensed executable that's simple, small,
3
fast, reasonably standards-compliant, and powerful.
4
5
WWW: http://landley.net/toybox/

Return to bug 239494