aboutsummaryrefslogtreecommitdiff
path: root/sysutils/avfs/Makefile
blob: b617215f4e8e5cd6b22aad03add0deb8066b8818 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:	avfs
# Date created:				2008-06-14
# Whom:					Evgeny Zhirnov <jirnov@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	avfs
PORTVERSION=	0.9.8
CATEGORIES=	sysutils
MASTER_SITES=	SF/avf/${PORTNAME}/${PORTVERSION}

MAINTAINER=	jirnov@gmail.com
COMMENT=	A Virtual File System

BUILD_DEPENDS=	${LOCALBASE}/include/fuse.h:${PORTSDIR}/sysutils/fusefs-libs \
		${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=	${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod

NO_INSTALL_MANPAGES=	yes

CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib -liconv"

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_BZIP2=	yes
USE_LDCONFIG=	yes

OPTIONS=	DEBUG "Enable debug" off \
		LIBRARY "Enable library" off \
		FUSE "Enable fuse" on

.include <bsd.port.pre.mk>

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
.else
CONFIGURE_ARGS+=	--disable-debug
.endif

.if defined(WITH_LIBRARY)
CONFIGURE_ARGS+=	--enable-library
PLIST_SUB+=	LIBRARY=""
.else
CONFIGURE_ARGS+=	--disable-library
PLIST_SUB+=	LIBRARY="@comment "
.endif

.if defined(WITH_FUSE)
CONFIGURE_ARGS+=	--enable-fuse
PLIST_SUB+=	FUSE=""
.else
CONFIGURE_ARGS+=	--disable-fuse
PLIST_SUB+=	FUSE="@comment "
.endif

.include <bsd.port.post.mk>