2004-05-09 18:06:23 +02:00
# New ports collection makefile for: ntfsprogs
# Date created: May 8 2004
# Whom: Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD$
#
PORTNAME = ntfsprogs
2008-08-13 05:00:56 +02:00
PORTVERSION = 2.0.0
2011-03-17 17:21:09 +01:00
PORTREVISION = 2
2004-05-09 18:06:23 +02:00
CATEGORIES = sysutils
2009-08-22 02:35:32 +02:00
MASTER_SITES = SF/linux-ntfs/NTFS%20Tools%20and%20Library/${ PORTVERSION }
2004-05-09 18:06:23 +02:00
2011-03-17 17:21:09 +01:00
MAINTAINER = faust64@gmail.com
2004-05-09 18:06:23 +02:00
COMMENT = Utilities and library to manipulate NTFS partitions
2008-08-13 05:00:56 +02:00
BUILD_DEPENDS = fusefs-libs>2.5:${ PORTSDIR } /sysutils/fusefs-libs
USE_GNOME = pkgconfig
USE_BZIP2 = yes
2006-08-15 03:04:55 +02:00
USE_LDCONFIG = yes
2007-10-30 04:22:04 +01:00
GNU_CONFIGURE = yes
2011-09-24 00:26:39 +02:00
CPPFLAGS += -I${ LOCALBASE } /include
LDFLAGS += -L${ LOCALBASE } /lib
2004-05-09 18:06:23 +02:00
2008-08-13 05:00:56 +02:00
OPTIONS = GNOMEVFS2 "Install GnomeVFS 2.0 libntfs interface" off \
LOCK "Lock the device when mounting (avoids access)" on \
UBLIO "Enable user space cache for improved speed" on \
UUID "Generate DCE compliant UUIDs" off
2005-02-20 18:26:52 +01:00
2008-08-13 05:00:56 +02:00
MAN8 = libntfs.8 libntfs-gnomevfs.8 mkntfs.8 \
ntfscat.8 ntfsclone.8 ntfscluster.8 ntfscmp.8 \
ntfscp.8 ntfsfix.8 ntfsinfo.8 ntfslabel.8 ntfsls.8 ntfsmount.8 \
ntfsprogs.8 ntfsresize.8 ntfsundelete.8
MLINKS = ntfsmount.8 mount_ntfs-fuse.8
2004-05-09 18:06:23 +02:00
2008-08-13 05:00:56 +02:00
SUB_FILES = pkg-message
2005-10-11 17:49:57 +02:00
2005-02-20 18:26:52 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2010-05-19 22:16:02 +02:00
. i f ${ARCH} = = "i386"
CFLAGS := ${ CFLAGS : C /-O.?/-O0/g }
. e n d i f
2007-10-30 04:22:04 +01:00
. i f d e f i n e d ( W I T H _ G N O M E V F S 2 )
CONFIGURE_ARGS += --enable-gnome-vfs
USE_GNOME = gnomevfs2
PLIST_SUB += GNOMEVFS2 = ""
. e l s e
CONFIGURE_ARGS += --disable-gnome-vfs
PLIST_SUB += GNOMEVFS2 = "@comment "
. e n d i f
. i f d e f i n e d ( W I T H _ L O C K )
CFLAGS += -DUSE_LOCK
. e n d i f
2008-08-13 05:00:56 +02:00
. i f d e f i n e d ( W I T H _ U U I D )
LIB_DEPENDS += uuid.1:${ PORTSDIR } /misc/e2fsprogs-libuuid
CONFIGURE_ARGS += --enable-uuid
. e l s e
CONFIGURE_ARGS += --disable-uuid
. e n d i f
2007-10-30 04:22:04 +01:00
. i f d e f i n e d ( W I T H _ U B L I O )
LIB_DEPENDS += ublio.1:${ PORTSDIR } /devel/libublio
CFLAGS += -DUSE_UBLIO
. e l s e
pre-everything ::
@${ ECHO_MSG }
@${ ECHO_MSG } "WARNING: FreeBSD does not have cache support for block devices. This will considerably reduce the performance of this application, please consider enabling the UBLIO option and following the indications in the post-installation message." | ${ FMT }
@${ ECHO_MSG }
. e n d i f
. i f d e f i n e d ( W I T H _ U B L I O )
2008-08-13 05:00:56 +02:00
post-patch :
2007-10-30 04:22:04 +01:00
@${ REINPLACE_CMD } -e 's|^libntfs_la_LIBADD =|& -lublio|' \
${ WRKSRC } /libntfs/Makefile.in
. e n d i f
2004-05-09 18:06:23 +02:00
2008-08-13 05:00:56 +02:00
post-install :
. i f ! d e f i n e d ( N O P O R T D O C S )
${ MKDIR } ${ DOCSDIR }
${ INSTALL_DATA } ${ WRKSRC } /README ${ DOCSDIR }
${ INSTALL_DATA } ${ FILESDIR } /README.FreeBSD ${ DOCSDIR }
. e n d i f
@${ ECHO_CMD } ; ${ CAT } ${ PKGMESSAGE } ; ${ ECHO_CMD }
2005-02-20 18:26:52 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >