pkgsrc-WIP-changes archive

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

wadptr: Import wadptr.



Module Name:	pkgsrc-wip
Committed By:	Simon Howard <fraggle%soulsphere.org@localhost>
Pushed By:	fraggle
Date:		Mon Apr 29 18:34:26 2024 -0400
Changeset:	02c58f9c592caba941abb64993bac1969bc43e22

Added Files:
	wadptr/COMMIT_MSG
	wadptr/DESCR
	wadptr/Makefile
	wadptr/PLIST
	wadptr/distinfo
	wadptr/patches/patch-Makefile

Log Message:
wadptr: Import wadptr.

wadptr is a command-line tool for compressing Doom WAD files.

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

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

diffstat:
 wadptr/COMMIT_MSG             |  3 +++
 wadptr/DESCR                  |  1 +
 wadptr/Makefile               | 29 +++++++++++++++++++++++++++++
 wadptr/PLIST                  |  3 +++
 wadptr/distinfo               |  6 ++++++
 wadptr/patches/patch-Makefile | 19 +++++++++++++++++++
 6 files changed, 61 insertions(+)

diffs:
diff --git a/wadptr/COMMIT_MSG b/wadptr/COMMIT_MSG
new file mode 100644
index 0000000000..55423c0bf5
--- /dev/null
+++ b/wadptr/COMMIT_MSG
@@ -0,0 +1,3 @@
+games/wadptr: Import wadptr.
+
+wadptr is a command-line tool for compressing Doom WAD files.
diff --git a/wadptr/DESCR b/wadptr/DESCR
new file mode 100644
index 0000000000..4c1eb2dcca
--- /dev/null
+++ b/wadptr/DESCR
@@ -0,0 +1 @@
+wadptr is a command-line tool for compressing Doom WAD files.
diff --git a/wadptr/Makefile b/wadptr/Makefile
new file mode 100644
index 0000000000..1a269d23ba
--- /dev/null
+++ b/wadptr/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME=	wadptr-3.6
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=fragglet/}
+GITHUB_TAG=	${DISTNAME}
+GITHUB_PROJECT=	wadptr
+EXTRACT_USING=	bsdtar
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://soulsphere.org/projects/wadptr/
+COMMENT=	Command-line tool for compressing Doom WAD files
+LICENSE=	gnu-gpl-v2
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_LANGUAGES=	c99
+MAKE_FLAGS+=	PREFIX=${PREFIX}
+USE_TOOLS+=	gmake
+
+SUBST_CLASSES+=		man
+SUBST_STAGE.man=	pre-configure
+SUBST_MESSAGE.man=	Fixing man path
+SUBST_FILES.man=	Makefile
+SUBST_SED.man+=	-e 's,share/man,${PKGMANDIR},g'
+
+PLIST.bsd=		yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/wadptr/PLIST b/wadptr/PLIST
new file mode 100644
index 0000000000..6931b55e7c
--- /dev/null
+++ b/wadptr/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/wadptr
+man/man1/wadptr.1
diff --git a/wadptr/distinfo b/wadptr/distinfo
new file mode 100644
index 0000000000..5bff32b9e5
--- /dev/null
+++ b/wadptr/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (wadptr-3.6.tar.gz) = efc45674be6d8d51420d18df20e034b0070b16f9d5d7794fd72c3ff958fa25b5
+SHA512 (wadptr-3.6.tar.gz) = 05261daf9cdaecc6367f4c6751b21fe0b8d5c35b4756ec5f147f3740320615c8fc24fa0ad8cb8f83f8a0f3c42004b4c1a243f7ba47622d6129c26f21c37b37ea
+Size (wadptr-3.6.tar.gz) = 17032146 bytes
+SHA1 (patch-Makefile) = 96fab720173f0c9b4f4f21bc3d7939b5dc266483
diff --git a/wadptr/patches/patch-Makefile b/wadptr/patches/patch-Makefile
new file mode 100644
index 0000000000..fb9ef18d7d
--- /dev/null
+++ b/wadptr/patches/patch-Makefile
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Patches Makefile to not use -D argument to install.
+
+--- Makefile.orig	2024-04-29 11:26:30.346342899 -0400
++++ Makefile	2024-04-29 11:26:49.024153733 -0400
+@@ -34,8 +34,10 @@
+ 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS)
+ 
+ install:
+-	install -D wadptr $(DESTDIR)$(PREFIX)/bin/wadptr
+-	install -D wadptr.1 $(DESTDIR)$(PREFIX)/share/man/man1/wadptr.1
++	mkdir -p $(DESTDIR)$(PREFIX)/bin
++	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
++	install wadptr $(DESTDIR)$(PREFIX)/bin/wadptr
++	install wadptr.1 $(DESTDIR)$(PREFIX)/share/man/man1/wadptr.1
+ 
+ clean:
+ 	$(DELETE) $(EXECUTABLE)


Home | Main Index | Thread Index | Old Index