e2facd354b
ChangeLog: http://landley.net/toybox/#19-15-2021 PR: 256351 Reported by: vidar@karlsen.tech (maintainer)
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
PORTNAME= toybox
|
|
PORTVERSION= 0.8.5
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= vidar@karlsen.tech
|
|
COMMENT= All-in-one command line
|
|
|
|
LICENSE= 0BSD
|
|
LICENSE_NAME= BSD Zero Clause License
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= bash:shells/bash gsed:textproc/gsed
|
|
LIB_DEPENDS= libinotify.so:devel/libinotify
|
|
|
|
USES= gmake shebangfix
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= landley
|
|
|
|
SHEBANG_FILES= scripts/bloatcheck scripts/mcm-buildall.sh \
|
|
scripts/change.sh scripts/findglobals.sh \
|
|
scripts/genconfig.sh scripts/install.sh \
|
|
scripts/make.sh scripts/mkroot.sh \
|
|
scripts/portability.sh scripts/record-commands \
|
|
scripts/runtest.sh scripts/single.sh \
|
|
scripts/test.sh configure \
|
|
tests/*
|
|
|
|
PLIST_FILES= bin/toybox
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|<sys/inotify.h>|"${LOCALBASE}/include/sys/inotify.h"|' \
|
|
${WRKSRC}/lib/portability.c
|
|
${REINPLACE_CMD} -e 's|sed|gsed|' ${WRKSRC}/scripts/single.sh
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && HOSTCC=${CC} ${GMAKE} bsd_defconfig
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|