mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
htop: convert to an actual recipe
Builds but doesn't run. More work is needed.
This commit is contained in:
50
sys-process/htop/htop-2.0.1.recipe
Normal file
50
sys-process/htop/htop-2.0.1.recipe
Normal file
@@ -0,0 +1,50 @@
|
||||
SUMMARY="An interactive process viewer for Unix"
|
||||
DESCRIPTION="This is htop, an interactive process viewer for Unix systems. It \
|
||||
is a text-mode application (for console or X terminals) and requires ncurses."
|
||||
HOMEPAGE="http://hisham.hm/htop/"
|
||||
COPYRIGHT="22004-2016 Hisham Muhammad"
|
||||
LICENSE="GNU GPL v2"
|
||||
SOURCE_URI="https://github.com/hishamhm/htop/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="636c1e8b703058e793e8d25423af4b74059290ef9e48fa261ba58555069517b5"
|
||||
REVISION="1"
|
||||
|
||||
PATCHES="htop-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
htop$secondaryArchSuffix = $portVersion
|
||||
cmd:htop$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libncursesw$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libncursesw$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autogen.sh
|
||||
sed -i 's/-lm//g' configure
|
||||
CFLAGS=-D_BSD_SOURCE LDFLAGS=-lbsd runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
Reference in New Issue
Block a user