Skip to content

Commit

Permalink
sysutils/fusefs-nbt: Update to 20230720-4d49ab2
Browse files Browse the repository at this point in the history
- This change also fixes an issue where the built utilities may not always
  be using shared library libnbt.so.1 due to parallel building.

  Originally this port has 'ALL_TARGET=libnbt.so all', so make(1) will be
  launched with these 2 targets together; if parallel building is enabled
  (by default in ports tree), it is not guaranteed to have 'libnbt.so' ready
  before building 'all'. As a result some programs built by 'all' may have
  linked with libnbt.a instead. Fixing this unpredictable behavior by using
  2 make(1) passes for those 2 targets.
- Define USE_LDCONFIG
- Strip binaries

PR:		272636
  • Loading branch information
Low-power authored and nunotexbsd committed Jul 22, 2023
1 parent 0da13d7 commit 8c62ba2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions sysutils/fusefs-nbt/Makefile
Expand Up @@ -20,16 +20,24 @@ 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= 20220412
REVISION_HASH= 09b007a
REVISION_DATE= 20230720
REVISION_HASH= 4d49ab2

MAKE_ENV= MANDIR=\${PREFIX}/man
ALL_TARGET= libnbt.so all
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>
6 changes: 3 additions & 3 deletions sysutils/fusefs-nbt/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1650298920
SHA256 (nbtfsutils-20220412-09b007a-src.tar.bz2) = f1c0155ba741357e90e83bd68f87ad4f501181b3a8cd02b461f9b60b361eb29c
SIZE (nbtfsutils-20220412-09b007a-src.tar.bz2) = 1459524
TIMESTAMP = 1689916083
SHA256 (nbtfsutils-20230720-4d49ab2-src.tar.bz2) = b707c9cddc22249cac02fd9605f2ea19b8d919ab7eb4386375dbbc0296041ad6
SIZE (nbtfsutils-20230720-4d49ab2-src.tar.bz2) = 1459769

0 comments on commit 8c62ba2

Please sign in to comment.