pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wadgadget: Import WadGadget 0.1



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Wed Aug 14 11:19:35 2024 +0200
Changeset:	22d0ceedc6e0186d005e77ffcd299a773906401d

Modified Files:
	Makefile
Added Files:
	wadgadget/COMMIT_MSG
	wadgadget/DESCR
	wadgadget/Makefile
	wadgadget/PLIST
	wadgadget/distinfo
	wadgadget/patches/patch-GNUmakefile

Log Message:
wadgadget: Import WadGadget 0.1

WadGadget is a console-based, interactive WAD file editor for
Doom engine games (and others that reuse the WAD format).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=22d0ceedc6e0186d005e77ffcd299a773906401d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                            |  1 +
 wadgadget/COMMIT_MSG                |  4 ++++
 wadgadget/DESCR                     |  2 ++
 wadgadget/Makefile                  | 37 +++++++++++++++++++++++++++++++++++++
 wadgadget/PLIST                     |  2 ++
 wadgadget/distinfo                  |  6 ++++++
 wadgadget/patches/patch-GNUmakefile | 18 ++++++++++++++++++
 7 files changed, 70 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 2ac6866358..9999cbad51 100644
--- a/Makefile
+++ b/Makefile
@@ -5727,6 +5727,7 @@ SUBDIR+=	vulkan-loader
 SUBDIR+=	vym
 SUBDIR+=	w3c-httpd
 SUBDIR+=	wackamole
+SUBDIR+=	wadgadget
 SUBDIR+=	wadptr
 SUBDIR+=	waffle
 SUBDIR+=	wakeonlan
diff --git a/wadgadget/COMMIT_MSG b/wadgadget/COMMIT_MSG
new file mode 100644
index 0000000000..46fcb4cab2
--- /dev/null
+++ b/wadgadget/COMMIT_MSG
@@ -0,0 +1,4 @@
+games/wadgadget: Import WadGadget 0.1
+
+WadGadget is a console-based, interactive WAD file editor for
+Doom engine games (and others that reuse the WAD format).
diff --git a/wadgadget/DESCR b/wadgadget/DESCR
new file mode 100644
index 0000000000..edf9174ab4
--- /dev/null
+++ b/wadgadget/DESCR
@@ -0,0 +1,2 @@
+WadGadget is a console-based, interactive WAD file editor for
+Doom engine games (and others that reuse the WAD format).
diff --git a/wadgadget/Makefile b/wadgadget/Makefile
new file mode 100644
index 0000000000..fcbefe5ffa
--- /dev/null
+++ b/wadgadget/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME=	wadgadget-0.1
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=fragglet/}
+GITHUB_TAG=	${DISTNAME}
+GITHUB_PROJECT=	WadGadget
+
+MAINTAINER=	micha%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/fragglet/WadGadget/
+COMMENT=	WAD file editor for Doom engine games
+LICENSE=	gnu-gpl-v2
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_CC_FEATURES=	c99
+USE_TOOLS+=		gmake pkg-config
+
+WRKSRC=			${WRKDIR}/WadGadget-wadgadget-0.1/src
+REPLACE_PYTHON=		help/make_help.py
+INSTALLATION_DIRS=	bin
+
+MAKE_FILE=		GNUmakefile
+BUILD_TARGET=		wadgadget
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/wadgadget ${DESTDIR}${PREFIX}/bin/
+
+PYTHON_VERSIONS_ACCEPTED=	312 311 310
+.include "../../lang/python/tool.mk"
+
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../graphics/libsixel/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/wadgadget/PLIST b/wadgadget/PLIST
new file mode 100644
index 0000000000..89da95f9a8
--- /dev/null
+++ b/wadgadget/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/wadgadget
diff --git a/wadgadget/distinfo b/wadgadget/distinfo
new file mode 100644
index 0000000000..10e5e90d4b
--- /dev/null
+++ b/wadgadget/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (wadgadget-0.1.tar.gz) = c5087bf6af3c9a12c9799e9086fda6e0e2a727b6c8fed72bd4a62d51e9844932
+SHA512 (wadgadget-0.1.tar.gz) = 69daa63d471739c99448765c608e416f48fc261dce3aed550c6ba6e0bf4ac1992561b6799b560693205e631bc0add350075394f51a9da647a388c608fb586973
+Size (wadgadget-0.1.tar.gz) = 402256 bytes
+SHA1 (patch-GNUmakefile) = 43e0fe57ffec847120ef0d952fcf6cb4f02a465c
diff --git a/wadgadget/patches/patch-GNUmakefile b/wadgadget/patches/patch-GNUmakefile
new file mode 100644
index 0000000000..3020644809
--- /dev/null
+++ b/wadgadget/patches/patch-GNUmakefile
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Honor CFLAGS and LDFLAGS.
+
+--- GNUmakefile.orig	2024-08-10 15:22:09.000000000 +0000
++++ GNUmakefile
+@@ -14,9 +14,9 @@ NCURSES_LDFLAGS = \
+     $(shell pkg-config --silence-errors --libs ncurses || echo -lncurses)
+ 
+ REQUIRED_PKGS = sndfile libpng
+-CFLAGS := -g -MMD -Wall -I. -O2 $(shell pkg-config --cflags $(REQUIRED_PKGS)) \
++CFLAGS := $(CFLAGS) -MMD -Wall -I. -O2 $(shell pkg-config --cflags $(REQUIRED_PKGS)) \
+           $(LIBSIXEL_CFLAGS) $(NCURSES_CFLAGS)
+-LDFLAGS := $(shell pkg-config --libs $(REQUIRED_PKGS)) \
++LDFLAGS := $(LDFLAGS) $(shell pkg-config --libs $(REQUIRED_PKGS)) \
+            $(LIBSIXEL_LDFLAGS) $(NCURSES_LDFLAGS)
+ 
+ HELP_FILES =                \


Home | Main Index | Thread Index | Old Index