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

PORTNAME=   httpfs
PORTVERSION=    2.06.07.10
CATEGORIES= sysutils www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX=  fusefs-
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= gslin@gslin.org
COMMENT=    Fuse-based http filesystem

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

PLIST_FILES=    bin/httpfs
USE_BZIP2=  yes
WRKSRC=     ${WRKDIR}

do-build:
    (cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include/fuse \
     -DUSE_AUTH -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
     -DFUSE_USE_VERSION=25 -D_POSIX_C_SOURCE=200112L -D_POSIX_SOURCE \
     -D_SVID_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=500 \
     -o httpfs httpfs.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lfuse)

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

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000   # Inherited from sysutils/fusefs-kmod
IGNORE=     depends on kernel module that requires FreeBSD 6 or later
.endif

.include <bsd.port.post.mk>