Update Haiku Makefile and recipe with suggestions from HaikuPorts (#426)

This commit is contained in:
Anna Arad 2020-01-03 18:55:44 +02:00 committed by Mischievous Meerkat
parent d43abec4bc
commit 443bb7925b
2 changed files with 30 additions and 26 deletions

View file

@ -1,7 +1,7 @@
VERSION = $(shell grep -m1 VERSION $(SRC) | cut -f 2 -d'"') VERSION = $(shell grep -m1 VERSION $(SRC) | cut -f 2 -d'"')
PREFIX ?= /boot/system/non-packaged PREFIX ?= /boot/system/non-packaged
MANPREFIX ?= /boot/system/non-packaged/documentation/man MANPREFIX ?= $(PREFIX)/documentation/man
STRIP ?= strip STRIP ?= strip
PKG_CONFIG ?= pkg-config PKG_CONFIG ?= pkg-config
INSTALL ?= install INSTALL ?= install

View file

@ -1,52 +1,56 @@
SUMMARY="The missing terminal file manager for X" SUMMARY="The missing terminal file manager for X"
DESCRIPTION=" DESCRIPTION="nnn is a full-featured terminal file manager. It's tiny and \
nnn is a full-featured terminal file manager. It's tiny and nearly 0-config with an incredible performance. nearly 0-config with an incredible performance.
nnn is also a du analyzer, an app launcher, a batch renamer and a file picker. The plugin repository has tons of plugins and documentation to extend the capabilities further. You can plug new functionality and play with a custom keybind instantly. There's an independent (neo)vim plugin. nnn is also a du analyzer, an app launcher, a batch renamer and a file picker. \
The plugin repository has tons of plugins and documentation to extend the \
capabilities further. You can plug new functionality and play with a \
custom keybind instantly. There's an independent (neo)vim plugin.
It runs smoothly on the Raspberry Pi, Termux on Android, Linux, macOS, BSD, Cygwin, WSL and works seamlessly with DEs and GUI utilities. It runs smoothly on the Raspberry Pi, Termux on Android, Linux, macOS, BSD, \
Cygwin, WSL and works seamlessly with DEs and GUI utilities.
Visit the Wiki for concepts, program usage, how-tos and troubleshooting. Visit the Wiki for concepts, program usage, how-tos and troubleshooting."
"
HOMEPAGE="https://github.com/jarun/nnn" HOMEPAGE="https://github.com/jarun/nnn"
COPYRIGHT="2016-2020 Arun Prakash Jana" COPYRIGHT="2016-2020 Arun Prakash Jana"
LICENSE="BSD (2-clause)" LICENSE="BSD (2-clause)"
REVISION="1" REVISION="1"
SOURCE_URI="git://github.com/jarun/nnn.git" SOURCE_URI="git://github.com/jarun/nnn.git"
ARCHITECTURES="x86 x86_64" ARCHITECTURES="x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES=" PROVIDES="
nnn = $portVersion nnn$secondaryArchSuffix = $portVersion
cmd:nnn = $portVersion cmd:nnn = $portVersion
" "
REQUIRES=" REQUIRES="
haiku haiku$secondaryArchSuffix
lib:libncurses file$secondaryArchSuffix
lib:libreadline lib:libncurses$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
" "
BUILD_REQUIRES=" BUILD_REQUIRES="
haiku_devel haiku${secondaryArchSuffix}_devel
pkgconfig devel:libncurses$secondaryArchSuffix
devel:libncurses devel:libreadline$secondaryArchSuffix
devel:libreadline
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
cmd:make cmd:g++$secondaryArchSuffix
cmd:gcc cmd:gcc$secondaryArchSuffix
cmd:g++
cmd:ld
cmd:install cmd:install
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
" "
BUILD() BUILD()
{ {
make -f misc/haiku/Makefile make -f misc/haiku/Makefile $jobArgs
} }
INSTALL() INSTALL()
{ {
make -f misc/haiku/Makefile PREFIX=$prefix MANPREFIX=$manDir install make -f misc/haiku/Makefile install PREFIX=$prefix
} }