summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/stfl/DESCR10
-rw-r--r--devel/stfl/Makefile42
-rw-r--r--devel/stfl/PLIST7
-rw-r--r--devel/stfl/buildlink3.mk12
-rw-r--r--devel/stfl/distinfo10
-rw-r--r--devel/stfl/patches/patch-aa14
-rw-r--r--devel/stfl/patches/patch-ab14
-rw-r--r--devel/stfl/patches/patch-ac20
-rw-r--r--devel/stfl/patches/patch-ad44
9 files changed, 173 insertions, 0 deletions
diff --git a/devel/stfl/DESCR b/devel/stfl/DESCR
new file mode 100644
index 00000000000..0861d54b432
--- /dev/null
+++ b/devel/stfl/DESCR
@@ -0,0 +1,10 @@
+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.
diff --git a/devel/stfl/Makefile b/devel/stfl/Makefile
new file mode 100644
index 00000000000..d2bd75f5002
--- /dev/null
+++ b/devel/stfl/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+MAJOR= 0
+MINOR= 24
+DISTNAME= stfl-${MAJOR}.${MINOR}
+CATEGORIES= devel
+MASTER_SITES= http://www.clifford.at/stfl/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.clifford.at/stfl/
+COMMENT= Library which implements a curses-based widget set for text terminals
+LICENSE= gnu-lgpl-v3
+
+NO_CONFIGURE= yes
+USE_TOOLS+= gmake perl
+USE_GNU_ICONV= yes
+
+INSTALL_MAKE_FLAGS+= prefix=${PREFIX}
+
+# Makefile
+SUBST_CLASSES+= makefile
+SUBST_STAGE.makefile= pre-build
+SUBST_MESSAGE.makefile= Fixing distribution Makefile...
+SUBST_FILES.makefile= ${MAKE_FILE}
+SUBST_SED.makefile= -e "s|LDLIBS.*|& -liconv -Wl,-R${PREFIX}/lib|"
+
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
+SUBST_CLASSES+= curses
+SUBST_STAGE.curses= pre-build
+SUBST_MESSAGE.curses= replacing ncursesw includes by native curses
+SUBST_FILES.curses= stfl.pc.in Makefile
+SUBST_SED.curses= -e "s|-lncursesw|-lcurses|g"
+.include "../../mk/curses.buildlink3.mk"
+.else
+.include "../../devel/ncursesw/buildlink3.mk"
+.endif
+
+PLIST_SUBST+= MAJOR=${MAJOR:Q} MINOR=${MINOR:Q}
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/stfl/PLIST b/devel/stfl/PLIST
new file mode 100644
index 00000000000..fb1227bdc0a
--- /dev/null
+++ b/devel/stfl/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2016/05/24 09:20:07 leot Exp $
+include/stfl.h
+lib/libstfl.a
+lib/libstfl.so
+lib/libstfl.so.${MAJOR}
+lib/libstfl.so.${MAJOR}.${MINOR}
+lib/pkgconfig/stfl.pc
diff --git a/devel/stfl/buildlink3.mk b/devel/stfl/buildlink3.mk
new file mode 100644
index 00000000000..85843e9764d
--- /dev/null
+++ b/devel/stfl/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+BUILDLINK_TREE+= stfl
+
+.if !defined(STFL_BUILDLINK3_MK)
+STFL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.stfl+= stfl>=0.19
+BUILDLINK_PKGSRCDIR.stfl?= ../../devel/stfl
+.endif # STFL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -stfl
diff --git a/devel/stfl/distinfo b/devel/stfl/distinfo
new file mode 100644
index 00000000000..7f143013b70
--- /dev/null
+++ b/devel/stfl/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+SHA1 (stfl-0.24.tar.gz) = c770a20f719f5a7f0a691727098c51b43df9c33c
+RMD160 (stfl-0.24.tar.gz) = 374ef95e6de3e77991a469ce75c1c972d8c8a3be
+SHA512 (stfl-0.24.tar.gz) = 95df4574b1bc32d795751156dc5b93afbca3ba241607a3a55210c89dda61b9a26ad574bb5f729a0158c9052235dbf63d6c58b38e7f1061d14ab7062af6150fa0
+Size (stfl-0.24.tar.gz) = 45585 bytes
+SHA1 (patch-aa) = fc6e09cdb31feaa59422222ebf6ea6ac788c8813
+SHA1 (patch-ab) = 3ef69d82bf1c2d1477332f79f5535a59ed87b89a
+SHA1 (patch-ac) = dfaa67b489463ff4758161ffbf4bccad510f0d7f
+SHA1 (patch-ad) = 3a92ae825c02ced62802630ca82affedeab88a03
diff --git a/devel/stfl/patches/patch-aa b/devel/stfl/patches/patch-aa
new file mode 100644
index 00000000000..828d0900cb1
--- /dev/null
+++ b/devel/stfl/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+Specify all needed linker flags.
+
+--- stfl.pc.in.orig 2012-01-19 19:51:47.000000000 +0000
++++ stfl.pc.in 2012-01-19 19:53:51.000000000 +0000
+@@ -8,6 +8,6 @@
+ Name: STFL
+ Description: Structured Terminal Forms Language/Library
+ Version: @VERSION@
+-Libs: -L${libdir} -lstfl
++Libs: -Wl,-R${libdir} -L${libdir} -lstfl
+ Libs.private: -lncursesw
+ Cflags: -I${includedir}
diff --git a/devel/stfl/patches/patch-ab b/devel/stfl/patches/patch-ab
new file mode 100644
index 00000000000..67a1a1055e1
--- /dev/null
+++ b/devel/stfl/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+Create a symbolic link also for the versioned SONAME.
+
+--- Makefile.orig 2012-01-19 21:12:56.000000000 +0000
++++ Makefile 2012-01-19 21:13:57.000000000 +0000
+@@ -65,6 +65,7 @@
+ install -m 644 stfl.pc $(DESTDIR)$(prefix)/$(libdir)/pkgconfig/
+ install -m 644 libstfl.so.$(VERSION) $(DESTDIR)$(prefix)/$(libdir)
+ ln -fs libstfl.so.$(VERSION) $(DESTDIR)$(prefix)/$(libdir)/libstfl.so
++ ln -fs libstfl.so.$(VERSION) $(DESTDIR)$(prefix)/$(libdir)/$(SONAME)
+
+ stfl.pc: stfl.pc.in
+ sed 's,@VERSION@,$(VERSION),g' < $< | sed 's,@PREFIX@,$(prefix),g' > $@
diff --git a/devel/stfl/patches/patch-ac b/devel/stfl/patches/patch-ac
new file mode 100644
index 00000000000..2ae4798ff1a
--- /dev/null
+++ b/devel/stfl/patches/patch-ac
@@ -0,0 +1,20 @@
+$NetBSD: patch-ac,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+Use curses(3) in NetBSD instead of ncursesw.
+
+--- stfl_internals.h.orig 2015-01-05 10:47:32.000000000 +0000
++++ stfl_internals.h
+@@ -28,7 +28,12 @@ extern "C" {
+ #endif
+
+ #include "stfl.h"
+-#include <ncursesw/ncurses.h>
++#ifdef __NetBSD__
++# include <curses.h>
++# include <stdarg.h>
++#else
++# include <ncursesw/ncurses.h>
++#endif
+ #include <pthread.h>
+
+ struct stfl_widget_type;
diff --git a/devel/stfl/patches/patch-ad b/devel/stfl/patches/patch-ad
new file mode 100644
index 00000000000..af0ed31b3d1
--- /dev/null
+++ b/devel/stfl/patches/patch-ad
@@ -0,0 +1,44 @@
+$NetBSD: patch-ad,v 1.1 2016/05/24 09:20:07 leot Exp $
+
+Disable building modules/binding for other programming languages and avoid to
+check if they are present.
+
+--- Makefile.cfg.orig 2009-05-31 18:20:39.000000000 +0000
++++ Makefile.cfg
+@@ -22,33 +22,11 @@ export libdir ?= lib
+ export prefix ?= /usr/local
+ export DESTDIR ?= /
+
+-ifneq ($(shell spl-config --cflags 2>/dev/null),)
+-FOUND_SPL = 1
+-else
+-FOUND_SPL = 0
+-endif
++# Modules for other programming languages should get their own packages, no
++# matter what's installed on the system
+
+-ifneq ($(shell swig -help 2>/dev/null),)
+-FOUND_SWIG = 1
+-else
++FOUND_SPL = 0
+ FOUND_SWIG = 0
+-endif
+-
+-ifneq ($(shell perl -le 'print 1' 2>/dev/null),)
+-FOUND_PERL5 = 1
+-else
+ FOUND_PERL5 = 0
+-endif
+-
+-ifneq ($(shell python -c 'print 1' 2>/dev/null),)
+-FOUND_PYTHON = 1
+-else
+ FOUND_PYTHON = 0
+-endif
+-
+-ifneq ($(shell ruby -e 'puts 1' 2>/dev/null),)
+-FOUND_RUBY = 1
+-else
+ FOUND_RUBY = 0
+-endif
+-