Changeset View
Changeset View
Standalone View
Standalone View
sysutils/fusefs-ntfs/Makefile
# Created by: Max Khon | # Created by: Max Khon | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= ntfs | PORTNAME= ntfs | ||||
PORTVERSION= 2017.3.23 | PORTVERSION= 2017.3.23 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MASTER_SITES= http://tuxera.com/opensource/ | MASTER_SITES= http://tuxera.com/opensource/ | ||||
PKGNAMEPREFIX= fusefs- | PKGNAMEPREFIX= fusefs- | ||||
DISTNAME= ${PORTNAME}-3g_ntfsprogs-${PORTVERSION} | DISTNAME= ${PORTNAME}-3g_ntfsprogs-${PORTVERSION} | ||||
MAINTAINER= freebsd@dussan.org | MAINTAINER= freebsd@dussan.org | ||||
COMMENT= Mount NTFS partitions (read/write) and disk images | COMMENT= Mount NTFS partitions (read/write) and disk images | ||||
LICENSE= GPLv2+ | LICENSE= GPLv2+ | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid | USES= autoreconf fuse pkgconfig iconv libtool tar:tgz | ||||
USE_LDCONFIG= yes | |||||
GNU_CONFIGURE= yes | |||||
CONFIGURE_ARGS= --exec-prefix=${PREFIX} \ | |||||
--disable-mount-helper \ | |||||
--disable-mtab \ | |||||
--disable-ldconfig \ | |||||
--with-fuse=external \ | |||||
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ | |||||
CONFLICTS_BUILD= bonobo-1.* | CONFLICTS_BUILD= bonobo-1.* | ||||
CONFLICTS_INSTALL= ntfsprogs-* | CONFLICTS_INSTALL= ntfsprogs-* | ||||
USES= fuse pkgconfig iconv libtool localbase:ldflags tar:tgz | OPTIONS_DEFINE= CRYPTO DEBUG DOCS EXTRAS LOCK UUID | ||||
arrowd: Just a suggestion - how about adding `# UBLIO` to make it clear there is a hidden option? | |||||
USE_LDCONFIG= yes | OPTIONS_DEFAULT= CRYPTO EXTRAS LOCK UUID | ||||
GNU_CONFIGURE= yes | OPTIONS_SUB= 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 | CRYPTO_DESC= Enable crypto related code and utilities | ||||
OPTIONS_DEFAULT=LOCK UBLIO | EXTRAS_DESC= Install ntfsdecrypt, ntfsrecover, ntfssecaudit, ntfstruncate, ntfsusermap, ntfswipe | ||||
arrowdUnsubmitted Not Done Inline ActionsExtra tab relative to CRYPTO_DESC. arrowd: Extra tab relative to `CRYPTO_DESC`. | |||||
LOCK_DESC= Lock the device when mounting (avoids access) | LOCK_DESC= Lock the device when mounting (avoids access) | ||||
LOCK_CFLAGS= -DUSE_LOCK | |||||
UBLIO_DESC= Enable user space cache for improved speed | UBLIO_DESC= Enable user space cache for improved speed | ||||
UUID_DESC= Generate DCE compliant UUIDs | |||||
SUB_FILES= pkg-message | |||||
DOCSDIR= ${PREFIX}/share/doc/ntfs-3g | |||||
CRYPTO_CONFIGURE_ENABLE= crypto | |||||
CRYPTO_LIB_DEPENDS= libgnutls.so:security/gnutls \ | |||||
libgcrypt.so:security/libgcrypt | |||||
DEBUG_CONFIGURE_ENABLE= debug | |||||
EXTRAS_CONFIGURE_ENABLE= extras | |||||
EXTRAS_IMPLIES= crypto | |||||
EXTRAS_LIB_DEPENDS+= libgpg-error.so:security/libgpg-error # ntsfsdecrypt | |||||
LOCK_CFLAGS= -DUSE_LOCK | |||||
UBLIO_EXTRA_PATCHES= ${FILESDIR}/extra-patch-ublio | UBLIO_EXTRA_PATCHES= ${FILESDIR}/extra-patch-ublio | ||||
UBLIO_LIB_DEPENDS= libublio.so:devel/libublio | UBLIO_LIB_DEPENDS= libublio.so:devel/libublio | ||||
UBLIO_CFLAGS= -DUSE_UBLIO | UBLIO_CFLAGS= -DUSE_UBLIO | ||||
SUB_FILES= pkg-message | UUID_CONFIGURE_ON= --with-uuid=${LOCALBASE} | ||||
DOCSDIR= ${PREFIX}/share/doc/ntfs-3g | UUID_CONFIGURE_OFF= --without-uuid | ||||
UUID_LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid | |||||
INSTALL_TARGET= install-strip | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|ENODATA|ENOATTR|' \ | @${REINPLACE_CMD} -e 's|ENODATA|ENOATTR|' \ | ||||
${WRKSRC}/libntfs-3g/object_id.c \ | ${WRKSRC}/libntfs-3g/object_id.c \ | ||||
${WRKSRC}/libntfs-3g/reparse.c \ | ${WRKSRC}/libntfs-3g/reparse.c \ | ||||
${WRKSRC}/libntfs-3g/security.c | ${WRKSRC}/libntfs-3g/security.c | ||||
@${REINPLACE_CMD} -e 's|\($$(AM_CFLAGS)\) \(-I$$(top_srcdir)/include/ntfs-3g\)|\2 \1|; \ | @${REINPLACE_CMD} -e 's|\($$(AM_CFLAGS)\) \(-I$$(top_srcdir)/include/ntfs-3g\)|\2 \1|; \ | ||||
/install-exec-hook:/,/^$$/ s|^@.*||' ${WRKSRC}/libntfs-3g/Makefile.in | /install-exec-hook:/,/^$$/ s|^@.*||' ${WRKSRC}/libntfs-3g/Makefile.in | ||||
post-install: | |||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libntfs-3g.so | |||||
post-install-DOCS-on: | post-install-DOCS-on: | ||||
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${STAGEDIR}${DOCSDIR}/ | ${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${STAGEDIR}${DOCSDIR}/ | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Just a suggestion - how about adding # UBLIO to make it clear there is a hidden option?