summaryrefslogtreecommitdiff
path: root/sysutils/fusefs-fusexmp_fh/Makefile
blob: efc528fd06686c174fa815d3601999f22fe5a4d4 (plain)
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
# New ports collection makefile for:    fusefs-fusexmp_fh
# Date created:         22 August 2010
# Whom:                 buganini@gmail.com
# $FreeBSD$
#

PORTNAME=	fusexmp_fh
PORTVERSION=	2.7.4
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	SF/fuse/fuse-2.X/${PORTVERSION}
PKGNAMEPREFIX=	fusefs-
DISTNAME=	fuse-${PORTVERSION}

MAINTAINER=	buganini@gmail.com
COMMENT=	Dummy driver from fusefs-libs example

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

USE_AUTOTOOLS=	libtool:22
USE_GNOME=	pkgconfig
USE_LDCONFIG=	yes
USE_ICONV=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-kernel-module --prefix=${PREFIX} \
		--enable-example

PLIST_FILES=	bin/${PORTNAME}

post-patch:
	${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' \
		${WRKSRC}/lib/Makefile.in \
		${WRKSRC}/example/Makefile.in

do-build:
	cd ${WRKSRC}/lib \
	&& ${MAKE}
	cd ${WRKSRC}/example \
	&& ${MAKE} ${PORTNAME}

do-install:
	cd ${WRKSRC}/example/.libs \
	&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>