aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-libs/Makefile
blob: 51c98e5a7ec48cbad8655b23f27a85f5779807c8 (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
# New ports collection makefile for:    fusefs-libs
# Date created:         01 October 2005
# Whom:                 Anish Mistry
# $FreeBSD$
#

PORTNAME=   fusefs
PORTVERSION=    2.7.4
CATEGORIES= sysutils
MASTER_SITES=   SF/fuse/fuse-2.X/${PORTVERSION}
PKGNAMESUFFIX=  -libs
DISTNAME=   fuse-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    FUSE allows filesystem implementation in userspace

BUILD_DEPENDS=  pkg-config>0:${PORTSDIR}/devel/pkg-config

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  MOUNT_FUSE_PATH=${PREFIX}/sbin
CFLAGS+=    ${PTHREAD_CFLAGS}
USE_LDCONFIG=   yes
USE_ICONV=  yes
CONFIGURE_ARGS= --disable-kernel-module --prefix=${PREFIX} \
        --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
TXT_DOCS=   how-fuse-works \
        kernel.txt

post-patch:
    ${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' \
        -e 's,-D_FILE_OFFSET_BITS=64,-D_FILE_OFFSET_BITS=64 ${PTHREAD_CFLAGS},' \
        ${WRKSRC}/fuse.pc.in
    ${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' \
        ${WRKSRC}/lib/Makefile.in \
        ${WRKSRC}/example/Makefile.in

post-install:
    ${INSTALL_DATA} ${WRKSRC}/include/fuse_kernel.h ${PREFIX}/include/fuse

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/libs
.for i in ${TXT_DOCS}
    @${INSTALL_DATA} ${WRKSRC}/doc/$i ${DOCSDIR}/libs
.endfor
.endif

.include <bsd.port.mk>