network/ncp: Fix build with new libowfat.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-07-06 15:16:42 -04:00 committed by Willy Sudiarto Raharjo
parent 9f932ad9e2
commit 49703e7c02
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230706 bkw: BUILD=4, someone updated libowfat and broke my build.
# 20230103 bkw: BUILD=3, how did I miss broken symlinks?
# 20220207 bkw: BUILD=2, libowfat changed its dir structure.
@ -13,7 +14,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ncp
VERSION=${VERSION:-1.2.4}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -67,7 +68,8 @@ sed -i 's,ln -f,ln -s,' GNUmakefile
# The libowfat detection stuff needs a little help...
make PREFIX=/usr CFLAGS="$SLKCFLAGS -Wl,-s -I/opt/diet/include/libowfat -L$L"
INC="-I/opt/diet/include/libowfat -I/opt/diet/include"
make PREFIX=/usr CFLAGS="$SLKCFLAGS -Wl,-s $INC -L$L"
make install PREFIX=$PKG/usr
gzip $PKG/usr/man/man1/*.1
ln -s npush.1.gz $PKG/usr/man/man1/npoll.1.gz