mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
39
sys-libs/stfl/patches/stfl-0.24.patchset
Normal file
39
sys-libs/stfl/patches/stfl-0.24.patchset
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
From 5229c08d55cfd4882f8443e025a21317dc0c552d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zoltan Mizsei <miqlas@gmail.com>
|
||||||
|
Date: Tue, 29 Mar 2016 16:38:34 +0200
|
||||||
|
Subject: [PATCH] Changes for Haiku
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 2 +-
|
||||||
|
stfl_internals.h | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index a2e512f..4e3dcb0 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
include Makefile.cfg
|
||||||
|
|
||||||
|
-export CC = gcc -pthread
|
||||||
|
+export CC = gcc -lroot -liconv
|
||||||
|
export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
|
||||||
|
export LDLIBS += -lncursesw
|
||||||
|
|
||||||
|
diff --git a/stfl_internals.h b/stfl_internals.h
|
||||||
|
index 024fa97..c16347b 100644
|
||||||
|
--- a/stfl_internals.h
|
||||||
|
+++ b/stfl_internals.h
|
||||||
|
@@ -28,7 +28,7 @@ extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "stfl.h"
|
||||||
|
-#include <ncursesw/ncurses.h>
|
||||||
|
+#include <ncurses.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
|
||||||
|
struct stfl_widget_type;
|
||||||
|
--
|
||||||
|
2.8.0
|
||||||
|
|
||||||
78
sys-libs/stfl/stfl-0.24.recipe
Normal file
78
sys-libs/stfl/stfl-0.24.recipe
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
SUMMARY="A curses-based widget library"
|
||||||
|
DESCRIPTION="STFL is a library which implements a curses-based widget set for \
|
||||||
|
text terminals. The STFL API can be used from C, SPL, Python, Perl \
|
||||||
|
and Ruby. Since the API is only 14 simple function calls big and there \
|
||||||
|
are already generic SWIG bindings it is very easy to port STFL to \
|
||||||
|
additional scripting languages.
|
||||||
|
|
||||||
|
A special language (the Structured Terminal Forms Language) is used \
|
||||||
|
to describe STFL GUIs. The language is designed to be easy and fast to \
|
||||||
|
write so an application programmer does not need to spend ages \
|
||||||
|
fiddling around with the GUI and can concentrate on the more \
|
||||||
|
interesting programming tasks."
|
||||||
|
HOMEPAGE="http://www.clifford.at/stfl/"
|
||||||
|
COPYRIGHT="2006-2007 Clifford Wolf"
|
||||||
|
LICENSE="GNU GPL v3"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="http://www.clifford.at/stfl/stfl-$portVersion.tar.gz"
|
||||||
|
CHECKSUM_SHA256="d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090"
|
||||||
|
SOURCE_DIR="stfl-$portVersion"
|
||||||
|
PATCHES="stfl-$portVersion.patchset"
|
||||||
|
|
||||||
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
stfl$secondaryArchSuffix = $portVersion compat >= 0
|
||||||
|
lib:libstfl$secondaryArchSuffix = $portVersion compat >= 0
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
lib:libiconv$secondaryArchSuffix
|
||||||
|
lib:libncurses$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
stfl$secondaryArchSuffix = $portVersion compat >= 0
|
||||||
|
devel:libstfl$secondaryArchSuffix = $portVersion compat >= 0
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
stfl$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
devel:libiconv$secondaryArchSuffix
|
||||||
|
devel:libncurses$secondaryArchSuffix
|
||||||
|
devel:libruby$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:ld$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:perl
|
||||||
|
cmd:python
|
||||||
|
"
|
||||||
|
# FOR BUILD() AND INSTALL()
|
||||||
|
export libdir=$relativeLibDir
|
||||||
|
export prefix=$prefix
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
mkdir -p $includeDir
|
||||||
|
mv $prefix/include/* $includeDir
|
||||||
|
rmdir $prefix/include/
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs libstfl
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
# devel package
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user