aboutsummaryrefslogblamecommitdiff
path: root/sysutils/fusefs-ntfs/Makefile
blob: b41e40ab5970fa729af058f05bdb3a74824ab107 (plain) (tree)
1
2
3
4
5
6
7
8
9
                      
           

                    
                         
                        
                                             
                       
                                                       
 
                                  
                                                                  
 
                      
                                 
 

                                                 
                                  
                                   

                                                                      
                   
                   
                                                                
                                                                      
                                            
 
                               

                                                             
                          
                                                          


                                                     
 


                                           
           



                                                   

                                                                                                
 
             
                                                           
 



                                                                         
# Created by: Max Khon
# $FreeBSD$

PORTNAME=	ntfs
PORTVERSION=	2017.3.23
CATEGORIES=	sysutils
MASTER_SITES=	http://tuxera.com/opensource/
PKGNAMEPREFIX=	fusefs-
DISTNAME=	${PORTNAME}-3g_ntfsprogs-${PORTVERSION}

MAINTAINER=	freebsd@dussan.org
COMMENT=	Mount NTFS partitions (read/write) and disk images

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libuuid.so:misc/e2fsprogs-libuuid

CONFLICTS_BUILD=	bonobo-1.*
CONFLICTS_INSTALL=	ntfsprogs-*

USES=		fuse pkgconfig iconv libtool localbase:ldflags tar:tgz
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--exec-prefix=${PREFIX} --disable-mount-helper \
		--disable-mtab --with-fuse=external --disable-ldconfig
CPPFLAGS+=	-I${WRKSRC}/include/ntfs-3g/

OPTIONS_DEFINE=	LOCK UBLIO DOCS
OPTIONS_DEFAULT=LOCK UBLIO
LOCK_DESC=	Lock the device when mounting (avoids access)
LOCK_CFLAGS=	-DUSE_LOCK
UBLIO_DESC=	Enable user space cache for improved speed
UBLIO_EXTRA_PATCHES=	${FILESDIR}/extra-patch-ublio
UBLIO_LIB_DEPENDS=	libublio.so:devel/libublio
UBLIO_CFLAGS=	-DUSE_UBLIO

SUB_FILES=	pkg-message
DOCSDIR=	${PREFIX}/share/doc/ntfs-3g

post-patch:
	@${REINPLACE_CMD} -e 's|ENODATA|ENOATTR|' \
		${WRKSRC}/libntfs-3g/object_id.c \
		${WRKSRC}/libntfs-3g/reparse.c \
		${WRKSRC}/libntfs-3g/security.c
	@${REINPLACE_CMD} -e 's|\($$(AM_CFLAGS)\) \(-I$$(top_srcdir)/include/ntfs-3g\)|\2 \1|; \
		/install-exec-hook:/,/^$$/ s|^@.*||' ${WRKSRC}/libntfs-3g/Makefile.in

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libntfs-3g.so

post-install-DOCS-on:
	${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>