From 444c5fa9c44db8d4ce568da670dc6a5792ed3aa4 Mon Sep 17 00:00:00 2001 From: QuzarDC Date: Mon, 5 Feb 2024 20:58:13 -0500 Subject: [PATCH 1/3] Initial commit for PDCurses --- PDCurses/Makefile | 23 +++++++++++++++++ PDCurses/files/KOSMakefile.mk | 48 +++++++++++++++++++++++++++++++++++ PDCurses/pkg-descr | 7 +++++ 3 files changed, 78 insertions(+) create mode 100644 PDCurses/Makefile create mode 100644 PDCurses/files/KOSMakefile.mk create mode 100644 PDCurses/pkg-descr diff --git a/PDCurses/Makefile b/PDCurses/Makefile new file mode 100644 index 0000000..143bf56 --- /dev/null +++ b/PDCurses/Makefile @@ -0,0 +1,23 @@ +# Port Metadata +PORTNAME = PDCurses +PORTVERSION = master + +MAINTAINER = Quzar +LICENSE = Public Domain +SHORT_DESC = PDCurses + +# Requires SDL1 for now +DEPENDENCIES = SDL + +# What files we need to download, and where from. +GIT_REPOSITORY = https://github.com/wmcbrine/PDCurses.git + +TARGET = libPDCurses.a +INSTALLED_HDRS = curses.h +HDR_INSTDIR = PDCurses +EXAMPLES_DIR = demos + +# KOS Distributed extras (to be copied into the build tree) +KOS_DISTFILES = KOSMakefile.mk + +include ${KOS_PORTS}/scripts/kos-ports.mk diff --git a/PDCurses/files/KOSMakefile.mk b/PDCurses/files/KOSMakefile.mk new file mode 100644 index 0000000..0a0e0b9 --- /dev/null +++ b/PDCurses/files/KOSMakefile.mk @@ -0,0 +1,48 @@ +# Makefile for PDCurses for SDL on KOS + +PDCURSES_SRCDIR = . + +O = o + +include $(PDCURSES_SRCDIR)/common/libobjs.mif + +osdir = $(PDCURSES_SRCDIR)/sdl1 + +PDCURSES_SDL_H = $(osdir)/pdcsdl.h + +ifeq ($(DEBUG),Y) + CFLAGS = $(KOS_CFLAGS) -DPDCDEBUG +else + CFLAGS = $(KOS_CFLAGS) +endif + +ifeq ($(UTF8),Y) + CFLAGS += -DPDC_FORCE_UTF8 +endif + +BUILD = kos-cc $(CFLAGS) -I$(KOS_PORTS)/include/SDL -I$(PDCURSES_SRCDIR) + +LDFLAGS = $(LIBCURSES) -lSDL +RANLIB = ranlib +LIBCURSES = libPDCurses.a + +.PHONY: all clean + +all: $(LIBCURSES) + +clean: + -rm -rf *.o $(LIBCURSES) + +$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS) + ar rv $@ $? + -$(RANLIB) $@ + +$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS) +$(PDCOBJS) : $(PDCURSES_SDL_H) + +$(LIBOBJS) : %.o: $(srcdir)/%.c + $(BUILD) -c $< + +$(PDCOBJS) : %.o: $(osdir)/%.c + $(BUILD) -c $< + diff --git a/PDCurses/pkg-descr b/PDCurses/pkg-descr new file mode 100644 index 0000000..a8d2576 --- /dev/null +++ b/PDCurses/pkg-descr @@ -0,0 +1,7 @@ +PDCurses is a public domain curses library for DOS, OS/2, Windows console, +X11 and SDL, implementing most of the functions available in X/Open and +System V R4 curses, and supporting a variety of compilers for these platforms. +The X11 and SDL ports let you recompile existing text-mode curses programs to +produce GUI applications. + +URL: https://pdcurses.org/ From 02b3ce0270bec10d2938d56352ab4fc8bb9a2ee6 Mon Sep 17 00:00:00 2001 From: QuzarDC Date: Tue, 6 Feb 2024 08:28:28 -0500 Subject: [PATCH 2/3] Change name to proper name --- PDCurses/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDCurses/Makefile b/PDCurses/Makefile index 143bf56..3395971 100644 --- a/PDCurses/Makefile +++ b/PDCurses/Makefile @@ -2,7 +2,7 @@ PORTNAME = PDCurses PORTVERSION = master -MAINTAINER = Quzar +MAINTAINER = Donald Haase LICENSE = Public Domain SHORT_DESC = PDCurses From a9cff226780fc4881318bea87dacc65f246e9f33 Mon Sep 17 00:00:00 2001 From: QuzarDC Date: Mon, 29 Apr 2024 23:32:22 -0400 Subject: [PATCH 3/3] Correct some white space and naming issues --- PDCurses/Makefile | 12 ++++++------ PDCurses/files/KOSMakefile.mk | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PDCurses/Makefile b/PDCurses/Makefile index 3395971..791656d 100644 --- a/PDCurses/Makefile +++ b/PDCurses/Makefile @@ -1,23 +1,23 @@ # Port Metadata -PORTNAME = PDCurses -PORTVERSION = master +PORTNAME = libpdcurses +PORTVERSION = 1.0.0 MAINTAINER = Donald Haase LICENSE = Public Domain -SHORT_DESC = PDCurses +SHORT_DESC = PDCurses is a public domain curses library # Requires SDL1 for now DEPENDENCIES = SDL # What files we need to download, and where from. -GIT_REPOSITORY = https://github.com/wmcbrine/PDCurses.git +GIT_REPOSITORY = https://github.com/wmcbrine/PDCurses.git -TARGET = libPDCurses.a +TARGET = libpdcurses.a INSTALLED_HDRS = curses.h HDR_INSTDIR = PDCurses EXAMPLES_DIR = demos # KOS Distributed extras (to be copied into the build tree) -KOS_DISTFILES = KOSMakefile.mk +KOS_DISTFILES = KOSMakefile.mk include ${KOS_PORTS}/scripts/kos-ports.mk diff --git a/PDCurses/files/KOSMakefile.mk b/PDCurses/files/KOSMakefile.mk index 0a0e0b9..3a2b818 100644 --- a/PDCurses/files/KOSMakefile.mk +++ b/PDCurses/files/KOSMakefile.mk @@ -24,7 +24,7 @@ BUILD = kos-cc $(CFLAGS) -I$(KOS_PORTS)/include/SDL -I$(PDCURSES_SRCDIR) LDFLAGS = $(LIBCURSES) -lSDL RANLIB = ranlib -LIBCURSES = libPDCurses.a +LIBCURSES = libpdcurses.a .PHONY: all clean