aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-unionfs/Makefile
blob: 2d8e6a7bec0c06974292dcc1d9fc85ab68a4a0f7 (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
# New ports collection makefile for:    fusefs-unionfs
# Date created:     2006-07-16
# Whom:         Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#

PORTNAME=   unionfs
PORTVERSION=    0.17
CATEGORIES= sysutils
MASTER_SITES=   http://podgorny.cz/unionfs-fuse/releases/
PKGNAMEPREFIX=  fusefs-
DISTNAME=   unionfs-fuse-${PORTVERSION}

MAINTAINER= clsung@FreeBSD.org
COMMENT=    FUSE based implementation of the well-known unionfs

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

PLIST_FILES=    bin/unionfs

USE_BZIP2=  yes

do-build:
    (cd ${WRKSRC} && \
     ${CC} ${CFLAGS} -I${LOCALBASE}/include/fuse \
     -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -U_POSIX_SYNCHRONIZED_IO \
     -o unionfs *.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lfuse)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/unionfs ${TARGETDIR}/bin

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000   # Inherited from fusefs-kmod
IGNORE=     requires FreeBSD 6.x or above
.endif

.include <bsd.port.post.mk>