[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / filesystems / ltfs

File: [cvs.NetBSD.org] / pkgsrc / filesystems / ltfs / Makefile (download)

Revision 1.10, Thu Nov 5 09:08:05 2020 UTC (3 years, 3 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.9: +2 -2 lines

*: Recursive revbump from textproc/icu-68.1

# $NetBSD: Makefile,v 1.10 2020/11/05 09:08:05 ryoon Exp $

GITHUB_PROJECT=	ltfs
DISTNAME=	v2.4.2.0-pre0
PKGNAME=	${GITHUB_PROJECT}-${DISTNAME:S/v//:S/-pre0/.0/}
PKGREVISION=	7
CATEGORIES=	filesystems
MASTER_SITES=	${MASTER_SITE_GITHUB:=LinearTapeFileSystem/}/${GITHUB_PROJECT}/archive/
DIST_SUBDIR=	${GITHUB_PROJECT}
WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME:S/v//}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/LinearTapeFileSystem/ltfs/
COMMENT=	Linear FileSystem for LTO and DAT tapes
LICENSE=	modified-bsd

# messages handling is inherently racy and a huge mess
MAKE_JOBS_SAFE=	no

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=	autoheader automake autoreconf gmake pkg-config
USE_LANGUAGES=	c

REPLACE_SH+=	init.d/ltfs

EGDIR=		${PREFIX}/share/examples/ltfs/
CONF_FILES+=	${EGDIR}/ltfs.conf ${PKG_SYSCONFDIR}/ltfs.conf
CONF_FILES+=	${EGDIR}/ltfs.conf.local ${PKG_SYSCONFDIR}/ltfs.conf.local

pre-configure:
	cd ${WRKSRC} && ./autogen.sh

pre-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/ltfs.conf ${DESTDIR}${EGDIR}/
	${INSTALL_DATA} ${WRKSRC}/conf/ltfs.conf.local ${DESTDIR}${EGDIR}/

# net/net-snmp brings -lperl but fails to buildinlink it
# or set approriate -L flag, hence we must help here, despite
# we do not need -lperl.
.include "../../lang/perl5/buildlink3.mk"
LDFLAGS+=               -L${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE

.include "../../devel/libuuid/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../net/net-snmp/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../filesystems/fuse/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"