Files
2026-10-04 04:07:15 +00:00

57 lines
1.5 KiB
Makefile

PORTNAME= ltfs
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.9.0
DISTVERSIONSUFFIX= -10523
CATEGORIES= filesystems sysutils
MAINTAINER= kbowling@FreeBSD.org
COMMENT= Reference implementation of LTFS for stand-alone tape drive
WWW= https://github.com/LinearTapeFileSystem/ltfs
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libicudata.so:devel/icu \
libuuid.so:misc/libuuid
USES= autoreconf compiler:c11 fuse gnome libtool:build pkgconfig \
python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= LinearTapeFileSystem
GH_TUPLE= troydhanson:uthash:2031adf:uthash/src/libltfs/uthash_submodule
USE_GNOME= libxml2
USE_LDCONFIG= yes
SHEBANG_FILES= src/utils/ltfs_ordered_copy
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
CONFIGURE_ARGS+= --enable-icu-6x
# GitHub tags are vX.Y.Z.W-NNNNN; portscout normalizes that to X.Y.Z.W.NNNNN
# and treats it as newer than DISTVERSION. Skip the current tag in both forms.
PORTSCOUT= skipv:${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX},${DISTVERSION}${DISTVERSIONSUFFIX:S|-|.|}
#INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DEBUG SNMP
OPTIONS_SUB= yes
DEBUG_DESC= Build without optimization and extended debug flags
SNMP_DESC= SNMP trap support
DEBUG_CONFIGURE_ON= --enable-debug
DEBUG_CONFIGURE_OFF= --enable-fast
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
SNMP_USES= perl5
SNMP_CONFIGURE_ENABLE= snmp
post-install:
@${RM} ${STAGEDIR}${DATADIR}/ltfs
@${RMDIR} ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>