summaryrefslogtreecommitdiff
path: root/sysutils/udfclient/Makefile
blob: 7f47f2f4f9045e3f5fd080b62370115adffc0e54 (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
47
48
49
50
51
52
PORTNAME=	udfclient
PORTVERSION=	0.8.11
CATEGORIES=	sysutils
MASTER_SITES=	http://www.13thmonkey.org/udfclient/releases/
DISTFILES=	UDFclient.${PORTVERSION}.tgz

MAINTAINER=	avg@FreeBSD.org
COMMENT=	Tools for UDF filesystem

LICENSE=	ClArtistic

WRKSRC=		${WRKDIR}/UDFclient.${PORTVERSION}

GNU_CONFIGURE=	yes

OPTIONS_DEFINE=	FUSE DEBUG
FUSE_DESC=	udfclientfs via FUSE

PLIST_FILES=	bin/udfdump \
		bin/udfclient \
		bin/newfs_udf \
		bin/cd_sessions \
		bin/cd_disect \
		bin/mmc_format

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFUSE}
UDFCLIENTFS_NAME=	udfclientfs
UDFCLIENTFS_VERSION=	0.6
UDFCLIENTFS_DIR=	${WRKDIR}/udfclientfs

MASTER_SITES+=	LOCAL/avg:fuse
DISTFILES+=	${UDFCLIENTFS_NAME}-${UDFCLIENTFS_VERSION}.tgz:fuse
EXTRA_PATCHES+=	${UDFCLIENTFS_DIR}/${UDFCLIENTFS_NAME}.patch
PATCH_ARGS+=	--ignore-whitespace

USES+=		fuse

PLIST_FILES+=	bin/${UDFCLIENTFS_NAME}
.endif

.if ${PORT_OPTIONS:MDEBUG}
CFLAGS+=	-O0 -ggdb3
.endif

post-patch:
.if ${PORT_OPTIONS:MFUSE}
	${CP} ${UDFCLIENTFS_DIR}/${UDFCLIENTFS_NAME}.c ${WRKSRC}
.endif

.include <bsd.port.mk>