aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-sqlfs/Makefile
blob: 42b602798c1d8663463d869a877512b002f3ecbd (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
# New ports collection makefile for:    fusefs-sqlfs
# Date created:     2006-08-19
# Whom:         Stanislav Sedov <ssedov@mbsd.msk.ru>
#
# $MBSDlabs$
# $FreeBSD$
#

PORTNAME=   sqlfs
PORTVERSION=    1.1
PORTEPOCH=  1
CATEGORIES= sysutils
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= libsqlfs
PKGNAMEPREFIX=  fusefs-
DISTNAME=   lib${PORTNAME}-${PORTVERSION}

MAINTAINER= stas@FreeBSD.org
COMMENT=    SQLite backed FUSE file system

LIB_DEPENDS=    fuse.2:${PORTSDIR}/sysutils/fusefs-libs
RUN_DEPENDS=    ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod

USE_SQLITE= 3

.if !defined(NOPORTDOCS)
PORTDOCS=   README
.endif

PLIST_FILES=    bin/sqlfs

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
IGNORE=     depends on kernel module that requires FreeBSD 6 or later
.endif

do-build:
    (cd ${WRKSRC} && ${CC} -DFUSE -DFUSE_USE_VERSION=25     \
        -D_FILE_OFFSET_BITS=64 -D_REENTRANT ${CFLAGS}       \
        -I${LOCALBASE}/include -I. -L${LOCALBASE}/lib       \
        -lfuse -lsqlite${SQLITE_VER} ${PTHREAD_CFLAGS}      \
        ${PTHREAD_LIBS} sqlfs.c fuse_main.c -o sqlfs)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/sqlfs ${PREFIX}/bin/

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>