47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2019/04/03 00:32:42 ryoon Exp $
|
|
|
|
GITHUB_PROJECT= ltfs
|
|
DISTNAME= v2.4.2.0-pre0
|
|
PKGNAME= ${GITHUB_PROJECT}-${DISTNAME:S/v//:S/-pre0/.0/}
|
|
PKGREVISION= 1
|
|
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
|
|
|
|
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"
|