aboutsummaryrefslogtreecommitdiff
path: root/archivers/packddir
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2009-08-23 16:07:48 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2009-08-23 16:07:48 +0000
commit58eb7cf1838c6e479e46aace03b07c51b21d0a09 (patch)
tree3895f90bc5058eff81384b3a053fe439324d58ef /archivers/packddir
parent1d3a7c903638fe21d640e65381015fb30e2a4688 (diff)
downloadports-58eb7cf1838c6e479e46aace03b07c51b21d0a09.tar.gz
ports-58eb7cf1838c6e479e46aace03b07c51b21d0a09.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>
Notes
Notes: svn path=/head/; revision=240196
Diffstat (limited to 'archivers/packddir')
-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/