this port is closely tied to interfaces in the base OS and really needs an active maintainer
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.41 2021/03/22 17:23:22 sthen Exp $
|
|
|
|
BROKEN = needs adapting to changes in base\n
|
|
BROKEN += (again); this port is closely tied to interfaces in the base OS and really\n
|
|
BROKEN += needs an active maintainer!
|
|
|
|
COMMENT = network switch style shell
|
|
|
|
DISTNAME = nsh-1.0.20201006
|
|
|
|
GH_ACCOUNT = yellowman
|
|
GH_PROJECT = nsh
|
|
GH_COMMIT = 4b92f9124641caddcce238293919b1ec45b5a20d
|
|
|
|
CATEGORIES = shells net
|
|
HOMEPAGE = http://www.nmedia.net/nsh/
|
|
|
|
# 3 & 2 clause BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += c curses edit sqlite3
|
|
|
|
FLAVORS = static
|
|
FLAVOR ?=
|
|
|
|
MAKE_FLAGS = CC="${CC}" \
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
LIB_DEPENDS = databases/sqlite3
|
|
|
|
.if ${FLAVOR:Mstatic}
|
|
MAKE_FLAGS += LDADD="-ledit -ltermcap -lsqlite3 -lm -lpthread -static"
|
|
.endif
|
|
|
|
NO_TEST= Yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKDIST}/nsh ${PREFIX}/bin
|
|
.for i in save-ro.sh save-rw.sh
|
|
${INSTALL_SCRIPT} ${WRKDIST}/${i} ${PREFIX}/bin
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nsh
|
|
sed -i s,/usr/local,${LOCALBASE},g ${WRKDIST}/MANUAL
|
|
.for i in MANUAL README TODO COPYRIGHT
|
|
${INSTALL_DATA} ${WRKDIST}/${i} ${PREFIX}/share/doc/nsh/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|