summaryrefslogtreecommitdiffstats
path: root/net/afpfs-ng/Makefile
blob: fffee60ec6d4e5f4d6a073913cdeebfc9ae9cee0 (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
53
54
55
56
57
58
# Created by: Manuel Creach <manuel.creach@icloud.com>
# $FreeBSD$

PORTNAME=	afpfs-ng
PORTVERSION=	0.8.1
CATEGORIES=	net
MASTER_SITES=	SF

MAINTAINER=	manuel.creach@icloud.com
COMMENT=	The afpfs-ng is an Apple Filing Protocol client library

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

OPTIONS_DEFINE=	FUSE GCRYPT

USE_BZIP2=	yes
USE_GCC=	any
USE_GMAKE=	yes
USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtoolize
ACLOCAL_ARGS=	-I.
AUTOMAKE_ARGS=	--add-missing
USE_LDCONFIG=	yes

CFLAGS+=	-D_FILE_OFFSET_BITS=64 -I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.options.mk>

CONFIGURE_ARGS+=--prefix="${PREFIX}"

MAN1=		afpcmd.1 afpgetstatus.1

.if ${PORT_OPTIONS:MFUSE}
LIB_DEPENDS+=	 fuse:${PORTSDIR}/sysutils/fusefs-libs
CONFIGURE_ARGS+=--enable-fuse
.else
CONFIGURE_ARGS+=--disable-fuse
.endif

.if ${PORT_OPTIONS:MGCRYPT}
LIB_DEPENDS+=	gcrypt:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+=--enable-gcrypt
.else
CONFIGURE_ARGS+=--disable-gcrypt
.endif

.include <bsd.port.pre.mk>

post-patch:	.SILENT
	${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
		${WRKSRC}/Makefile.am

post-configure: .SILENT
	${REINPLACE_CMD} 's|LIBS = |LIBS = -liconv |' \
		${WRKSRC}/cmdline/Makefile

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud