diff --git a/PDCurses/Makefile b/PDCurses/Makefile new file mode 100644 index 0000000..791656d --- /dev/null +++ b/PDCurses/Makefile @@ -0,0 +1,23 @@ +# Port Metadata +PORTNAME = libpdcurses +PORTVERSION = 1.0.0 + +MAINTAINER = Donald Haase +LICENSE = Public Domain +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 + +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..3a2b818 --- /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/