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 |
|
38 |
do-configure: |
39 |
cd ${WRKSRC} && ${GMAKE} bsd_defconfig |
40 |
|
41 |
do-install: |
42 |
${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin |
43 |
|
44 |
.include <bsd.port.mk> |