Recipe for STFL (#525)

fixPkgConfig...

Recipe fix.

Fix
This commit is contained in:
miqlas
2017-01-14 19:26:18 +01:00
committed by waddlesplash
parent 651dbea971
commit a24551b5a9
2 changed files with 117 additions and 0 deletions

View 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

View 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
}