aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2009-08-24 00:07:48 +0800
committermakc <makc@FreeBSD.org>2009-08-24 00:07:48 +0800
commitf63a62c4e2a58e489033c3149bc8644498e6cb07 (patch)
tree578a02aed372ac574940c917ba34a4df6fc84c55 /archivers
parenteb90cbffa673a50863b20b21ba8d70349fc12177 (diff)
downloadfreebsd-ports-gnome-f63a62c4e2a58e489033c3149bc8644498e6cb07.tar.gz
freebsd-ports-gnome-f63a62c4e2a58e489033c3149bc8644498e6cb07.tar.zst
freebsd-ports-gnome-f63a62c4e2a58e489033c3149bc8644498e6cb07.zip
Add new port archivers/packddir:
PackdDir creates and unpacks PackdDir archives, which are used in Quake (I and II) and others. WWW: http://www.nongnu.org/packddir/ PR: ports/138078 Submitted by: Ayumi M <ayu at commun.jp>
Diffstat (limited to 'archivers')
-rw-r--r--archivers/packddir/Makefile31
-rw-r--r--archivers/packddir/distinfo3
-rw-r--r--archivers/packddir/files/patch-upackddir.c20
-rw-r--r--archivers/packddir/pkg-descr4
4 files changed, 58 insertions, 0 deletions
diff --git a/archivers/packddir/Makefile b/archivers/packddir/Makefile
new file mode 100644
index 000000000000..70d13cef6a7b
--- /dev/null
+++ b/archivers/packddir/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: packddir
+# Date created: 2009-08-22
+# Whom: Ayumi M <ayu@commun.jp>
+#
+# $FreeBSD$
+#
+
+PORTNAME= packddir
+PORTVERSION= 0.0.6
+CATEGORIES= archivers
+MASTER_SITES= ${MASTER_SITE_SAVANNAH}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= upackddir_${PORTVERSION}-1
+
+MAINTAINER= ayu@commun.jp
+COMMENT= These trivial utilities can unpack and create PackdDir archives
+
+WRKSRC= ${WRKDIR}/src
+
+PLIST_FILES= bin/upackddir
+MAN1= upackddir.1
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|$$(DESTDIR)/usr|${PREFIX}|' ${WRKSRC}/Makefile
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/upackddir.1 ${MANPREFIX}/man/man1
+
+.include <bsd.port.post.mk>
diff --git a/archivers/packddir/distinfo b/archivers/packddir/distinfo
new file mode 100644
index 000000000000..607a5770ca0b
--- /dev/null
+++ b/archivers/packddir/distinfo
@@ -0,0 +1,3 @@
+MD5 (upackddir_0.0.6-1.tar.gz) = b66373639b3ee46c495bacb25031f5c7
+SHA256 (upackddir_0.0.6-1.tar.gz) = 81b12e3be40d9e55c948ad3315ca7d28edbb74ff3f06730cc83f0d779bc7d6bf
+SIZE (upackddir_0.0.6-1.tar.gz) = 16496
diff --git a/archivers/packddir/files/patch-upackddir.c b/archivers/packddir/files/patch-upackddir.c
new file mode 100644
index 000000000000..64a51e301916
--- /dev/null
+++ b/archivers/packddir/files/patch-upackddir.c
@@ -0,0 +1,20 @@
+--- upackddir.c.orig 2009-08-22 04:48:16.000000000 +0900
++++ upackddir.c 2009-08-22 04:48:39.000000000 +0900
+@@ -253,7 +253,7 @@
+ }
+
+ /* Let's jump to the beginning of our sweet data */
+- (char *) mapped += n;
++ mapped += n;
+
+ for (i = 0; i < pack->numfiles; i++) {
+ fprintf(stderr, "%s\n", mapped->name);
+@@ -297,7 +297,7 @@
+ }
+
+ /* Let's jump to the beginning of our sweet data */
+- (char *) mapped += n;
++ mapped += n;
+
+ for (i = 0; i < pack->numfiles; i++) {
+ if (strcmp(name, mapped->name) == 0) {
diff --git a/archivers/packddir/pkg-descr b/archivers/packddir/pkg-descr
new file mode 100644
index 000000000000..cd59ce03bc94
--- /dev/null
+++ b/archivers/packddir/pkg-descr
@@ -0,0 +1,4 @@
+PackdDir creates and unpacks PackdDir archives,
+which are used in Quake (I and II) and others.
+
+WWW: http://www.nongnu.org/packddir/