summaryrefslogtreecommitdiff
path: root/filesystems/rar2fs/Makefile
blob: 352ce28f482721d49a6d13e4703afc17eac074c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	rar2fs
DISTVERSIONPREFIX=	v
DISTVERSION=	1.29.7
PORTREVISION=	4
CATEGORIES=	filesystems
PKGNAMEPREFIX=	fusefs-

MAINTAINER=	n_carlsson@outlook.com
COMMENT=	Mount RAR archives as file system
WWW=		https://hasse69.github.io/rar2fs/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${NONEXISTENT}:${LIBUNRAR_PORT}:patch
LIB_DEPENDS=	libunrar.so:${LIBUNRAR_PORT}

USES=		autoreconf compiler:c11 fuse gmake
USE_GITHUB=	yes
GH_ACCOUNT=	hasse69

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-static-unrar \
		--with-fuse=${LOCALBASE}/include/fuse \
		--with-fuse-lib=${LOCALBASE}/lib \
		--with-unrar=`${MAKE} -C ${PORTSDIR}/${LIBUNRAR_PORT} -VWRKSRC` \
		--with-unrar-lib=${LOCALBASE}/lib
CONFIGURE_ENV=	LIBUNRAR_PKG=${LIBUNRAR_PKG}

PLIST_FILES=	bin/${PORTNAME} \
		bin/mkr2i \
		share/man/man1/rar2fs.1.gz

LIBUNRAR_PORT=	archivers/libunrar
LIBUNRAR_PKG=	${LIBUNRAR_PORT:S|archivers/||}

.include <bsd.port.mk>