741aa71483
Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
84 lines
2.2 KiB
Makefile
84 lines
2.2 KiB
Makefile
# New ports collection makefile for: ntfsprogs
|
|
# Date created: May 8 2004
|
|
# Whom: Florent Thoumie <flz@xbsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ntfsprogs
|
|
PORTVERSION= 2.0.0
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= SF
|
|
MASTER_SITE_SUBDIR= linux-ntfs
|
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
|
COMMENT= Utilities and library to manipulate NTFS partitions
|
|
|
|
BUILD_DEPENDS= fusefs-libs>2.5:${PORTSDIR}/sysutils/fusefs-libs
|
|
|
|
USE_GNOME= pkgconfig
|
|
USE_BZIP2= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
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
|
|
|
|
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
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_GNOMEVFS2)
|
|
CONFIGURE_ARGS+=--enable-gnome-vfs
|
|
USE_GNOME= gnomevfs2
|
|
PLIST_SUB+= GNOMEVFS2=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-gnome-vfs
|
|
PLIST_SUB+= GNOMEVFS2="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_LOCK)
|
|
CFLAGS+= -DUSE_LOCK
|
|
.endif
|
|
|
|
.if defined(WITH_UUID)
|
|
LIB_DEPENDS+= uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid
|
|
CONFIGURE_ARGS+=--enable-uuid
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-uuid
|
|
.endif
|
|
|
|
.if defined(WITH_UBLIO)
|
|
LIB_DEPENDS+= ublio.1:${PORTSDIR}/devel/libublio
|
|
CFLAGS+= -DUSE_UBLIO
|
|
.else
|
|
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}
|
|
.endif
|
|
|
|
.if defined(WITH_UBLIO)
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^libntfs_la_LIBADD =|& -lublio|' \
|
|
${WRKSRC}/libntfs/Makefile.in
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR}
|
|
.endif
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
.include <bsd.port.post.mk>
|