SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

46
devel/stfl/Makefile Executable file
View file

@ -0,0 +1,46 @@
COMMENT= Structured Terminal Forms Language/Library
DISTNAME= stfl-0.24
REVISION= 1
SHARED_LIBS+= stfl 0.0
CATEGORIES= devel
HOMEPAGE= http://www.clifford.at/stfl/
# LGPLv3
PERMIT_PACKAGE= Yes
WANTLIB += curses iconv pthread
MASTER_SITES= http://www.clifford.at/stfl/
LIB_DEPENDS= converters/libiconv
ALL_TARGET= libstfl.so.${LIBstfl_VERSION}
USE_GMAKE= Yes
NO_TEST= Yes
MAKE_FLAGS= FOUND_SPL=0 \
FOUND_SWIG=0 \
FOUND_PERL5=0 \
FOUND_PYTHON=0 \
FOUND_RUBY=0
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile
post-build:
cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} ${MAKEFILE} stfl.pc
do-install:
${INSTALL_DATA} ${WRKBUILD}/libstfl.so.${LIBstfl_VERSION} ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/stfl.h ${PREFIX}/include/
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
${INSTALL_DATA} ${WRKSRC}/stfl.pc ${PREFIX}/lib/pkgconfig
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/stfl
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/stfl
.include <bsd.port.mk>

2
devel/stfl/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (stfl-0.24.tar.gz) = 1KeqGBpHWq+KiRSozLKn/yiRnUyMD4oGHhegw2hpwJA=
SIZE (stfl-0.24.tar.gz) = 45585

View file

@ -0,0 +1,45 @@
--- Makefile.orig Thu Feb 12 14:14:33 2015
+++ Makefile Fri Jul 17 01:17:37 2015
@@ -20,14 +20,14 @@
include Makefile.cfg
-export CC = gcc -pthread
-export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
-export LDLIBS += -lncursesw
+export CC ?= gcc -pthread
+export CFLAGS += -I. -Wall -ggdb -D_XOPEN_SOURCE_EXTENDED -fPIC -I${LOCALBASE}/include
+export LDLIBS += -lpthread -lncursesw -L${LOCALBASE}/lib -liconv -Wl,-R${LOCALBASE}/lib
-SONAME := libstfl.so.0
+SONAME := libstfl.so.${LIBstfl_VERSION}
VERSION := 0.24
-all: libstfl.so.$(VERSION) libstfl.a example
+all: $(SONAME) libstfl.a example
example: libstfl.a example.o
@@ -37,9 +37,9 @@ libstfl.a: public.o base.o parser.o dump.o style.o bin
ar qc $@ $^
ranlib $@
-libstfl.so.$(VERSION): public.o base.o parser.o dump.o style.o binding.o iconv.o \
+$(SONAME): public.o base.o parser.o dump.o style.o binding.o iconv.o \
$(patsubst %.c,%.o,$(wildcard widgets/*.c))
- $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $(LDLIBS) $^
+ $(CC) $(CFLAGS) -shared -o $@ $(LDLIBS) $^
clean:
rm -f libstfl.a example core core.* *.o Makefile.deps
@@ -53,8 +53,8 @@ clean:
rm -f stfl.pc libstfl.so libstfl.so.*
Makefile.deps: *.c widgets/*.c *.h
- $(CC) -I. -MM *.c > Makefile.deps_new
- $(CC) -I. -MM widgets/*.c | sed 's,^wt_[^ ]*\.o: ,widgets/&,' >> Makefile.deps_new
+ $(CC) $(CFLAGS) -I. -MM *.c > Makefile.deps_new
+ $(CC) $(CFLAGS) -I. -MM widgets/*.c | sed 's,^wt_[^ ]*\.o: ,widgets/&,' >> Makefile.deps_new
mv -f Makefile.deps_new Makefile.deps
install: all stfl.pc

View file

@ -0,0 +1,14 @@
--- stfl_internals.h.orig Sun Dec 30 09:25:50 2012
+++ stfl_internals.h Sun Dec 30 09:26:11 2012
@@ -28,7 +28,11 @@ extern "C" {
#endif
#include "stfl.h"
+#ifdef __OpenBSD__
+#include <curses.h>
+#else
#include <ncursesw/ncurses.h>
+#endif
#include <pthread.h>
struct stfl_widget_type;

View file

@ -0,0 +1,10 @@
--- stfl.pc.in.orig Sun Dec 30 10:31:46 2012
+++ stfl.pc.in Sun Dec 30 10:31:59 2012
@@ -8,6 +8,6 @@ includedir=${prefix}/include
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}

22
devel/stfl/pkg/DESCR Executable file
View file

@ -0,0 +1,22 @@
STFL is a library which implements a curses-based widget set for text
terminals. The public STFL API is only 14 simple function calls big and
there are already generic SWIG bindings. Thus 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.
There are two different syntaxes for STFL code, one designed to make
handwriting of STFL code as easy as possible and one aiming at generated
STFL code.
The STFL GUI descriptions (written in STFL code) do not contain any
concrete layouting information such as x/y coordinates of widgets.
Instead container widgets such as vertical and horizontal boxes as well
as tables are used to group widgets and the actual layouting work is
done by the STFL library. Thus STFL GUIs can handle terminals of
different sizes and terminal resize events transparently for the
application programmer.

5
devel/stfl/pkg/PLIST Normal file
View file

@ -0,0 +1,5 @@
include/stfl.h
@lib lib/libstfl.so.${LIBstfl_VERSION}
lib/pkgconfig/stfl.pc
share/doc/stfl/
share/doc/stfl/README