summaryrefslogtreecommitdiff
path: root/filesystems/nbt
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/nbt')
-rw-r--r--filesystems/nbt/Makefile44
-rw-r--r--filesystems/nbt/distinfo3
-rw-r--r--filesystems/nbt/pkg-descr11
-rw-r--r--filesystems/nbt/pkg-plist15
4 files changed, 73 insertions, 0 deletions
diff --git a/filesystems/nbt/Makefile b/filesystems/nbt/Makefile
new file mode 100644
index 000000000000..b7f9c57a61dc
--- /dev/null
+++ b/filesystems/nbt/Makefile
@@ -0,0 +1,44 @@
+PORTNAME= nbt
+PORTVERSION= ${REVISION_DATE}
+PORTREVISION= 1
+CATEGORIES= filesystems
+MASTER_SITES= SF/nbtfsutils
+PKGNAMEPREFIX= fusefs-
+DISTNAME= nbtfsutils-${REVISION_DATE}-${REVISION_HASH}-src
+
+MAINTAINER= msl0000023508@gmail.com
+COMMENT= Editing Named Binary Tag (NBT) as using a file system
+WWW= https://sourceforge.net/projects/nbtfsutils/
+
+LICENSE= BEERWARE MIT MPL20
+LICENSE_COMB= multi
+LICENSE_NAME_BEERWARE= "THE BEER-WARE LICENSE" (Revision 42)
+LICENSE_TEXT_BEERWARE= Lukas Niederbremer <webmaster@flippeh.de> and Clark Gaebel <cg.wowus.cg@gmail.com> \
+ wrote this file. As long as you retain this notice you can do whatever you \
+ want with this stuff. If we meet some day, and you think this stuff is worth \
+ it, you can buy us a beer in return.
+LICENSE_FILE_MPL20= ${WRKSRC}/MPL-2.0
+LICENSE_PERMS_BEERWARE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+USES= fuse tar:bz2
+USE_LDCONFIG= yes
+
+REVISION_DATE= 20231114
+REVISION_HASH= 7683255
+
+MAKE_ENV= MANDIR=\${PREFIX}/share/man
+INSTALL_TARGET= install-commands install-dev
+CFLAGS+= ${CPPFLAGS}
+CPPFLAGS+= -I ${LOCALBASE}/include
+LDFLAGS+= -L ${LOCALBASE}/lib
+NO_WRKSUBDIR= yes
+
+do-build:
+ @cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} libnbt.so && ${DO_MAKE_BUILD} all
+
+post-install:
+.for l in lib/libnbt.so.1 bin/nbtdump bin/regiondump sbin/mkfs.nbt sbin/mount.nbt
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${l}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/filesystems/nbt/distinfo b/filesystems/nbt/distinfo
new file mode 100644
index 000000000000..ea368f58e177
--- /dev/null
+++ b/filesystems/nbt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699967468
+SHA256 (nbtfsutils-20231114-7683255-src.tar.bz2) = 5d2db44859b39269c8b59188c99a04a9fc0932ef83634c06f37907aa09becd78
+SIZE (nbtfsutils-20231114-7683255-src.tar.bz2) = 44255
diff --git a/filesystems/nbt/pkg-descr b/filesystems/nbt/pkg-descr
new file mode 100644
index 000000000000..1060a6bd8392
--- /dev/null
+++ b/filesystems/nbt/pkg-descr
@@ -0,0 +1,11 @@
+Named Binary Tag (NBT) is a binary format designed for and used by the game
+Minecraft to store various data including worlds, player data and many other
+things. This project provides a way to access those data by simply mounting
+the corresponding data file as a file system, then reading and writing any
+value as usual file system nodes.
+
+NBT parser and writer are originally written by Lukas Niederbremer as cNBT
+project which this project is based on.
+
+This package provides the FUSE-based file system implementation, as well as
+NBT maintenance command-line tools and library (cNBT).
diff --git a/filesystems/nbt/pkg-plist b/filesystems/nbt/pkg-plist
new file mode 100644
index 000000000000..c94aa0406782
--- /dev/null
+++ b/filesystems/nbt/pkg-plist
@@ -0,0 +1,15 @@
+bin/nbtdump
+bin/regiondump
+sbin/mkfs.nbt
+sbin/mount.nbt
+share/man/man1/nbtdump.1.gz
+share/man/man1/regiondump.1.gz
+share/man/man8/mkfs.nbt.8.gz
+share/man/man8/mount.nbt.8.gz
+include/nbt/buffer.h
+include/nbt/list.h
+include/nbt/nbt.h
+include/nbt/version.h
+lib/libnbt.a
+lib/libnbt.so
+lib/libnbt.so.1