aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/testdisk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-10-07 05:17:22 +0800
committerbapt <bapt@FreeBSD.org>2012-10-07 05:17:22 +0800
commit1dae4740d1b18677127a971bb82f6e0d8f8547a1 (patch)
treea3828aec2eded0266b6fc7480aba4b211cccca2f /sysutils/testdisk
parent60ef6f45497a19400ab7dbfb4bc05e3b44f083cd (diff)
downloadfreebsd-ports-gnome-1dae4740d1b18677127a971bb82f6e0d8f8547a1.tar.gz
freebsd-ports-gnome-1dae4740d1b18677127a971bb82f6e0d8f8547a1.tar.zst
freebsd-ports-gnome-1dae4740d1b18677127a971bb82f6e0d8f8547a1.zip
- Convert to new option framework
- Trim headers Approved by: flz (irc)
Diffstat (limited to 'sysutils/testdisk')
-rw-r--r--sysutils/testdisk/Makefile34
1 files changed, 15 insertions, 19 deletions
diff --git a/sysutils/testdisk/Makefile b/sysutils/testdisk/Makefile
index f608e4dec7ca..f198ad7be7fa 100644
--- a/sysutils/testdisk/Makefile
+++ b/sysutils/testdisk/Makefile
@@ -1,9 +1,4 @@
-# New ports collection makefile for: testdisk
-# Date created: Feb 28 2004
-# Whom: Florent Thoumie <flz@xbsd.org>
-#
# $FreeBSD$
-#
PORTNAME= testdisk
PORTVERSION= 6.13
@@ -27,10 +22,14 @@ MAN8= fidentify.8 testdisk.8 photorec.8
PLIST_FILES= bin/fidentify bin/testdisk bin/photorec
PORTDOCS= *
-OPTIONS= ICONV "Use iconv extensions" on \
- NTFS3G "Use fusefs-ntfs extensions" off \
- NTFSPROGS "Use ntfsprogs extensions" off \
- PROGSREISERFS "Use reiserfs extensions" off
+OPTIONS_DEFINE= ICONV PROGSREISERFS NTFS DOCS
+OPTIONS_DEFAULT= ICONV
+OPTIONS_SINGLE= NTFS
+OPTIONS_SINGLE_NTFS= NTFS3G NTFSPROGS
+NTFS_DESC= Support NTFS
+NTFS3G_DESC= Use fusefs-ntfs extensions
+NTFSPROGS_DESC= Use ntfsprogs extensions
+PROGSREISERFS_DESC= Use reiserfs extensions
# E2FSPROGS "Use ext2fs extensions" off \
.include <bsd.port.pre.mk>
@@ -39,8 +38,8 @@ OPTIONS= ICONV "Use iconv extensions" on \
#DISTFILES+= ${PORTNAME}-doc-${PORTVERSION}${EXTRACT_SUFX}
#.endif
-.if !defined(WITHOUT_ICONV)
-LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
+.if ${PORT_OPTIONS:MICONV}
+LIB_DEPENDS+= iconv:${PORTSDIR}/converters/libiconv
.else
CONFIGURE_ARGS+=--without-iconv
.endif
@@ -53,29 +52,26 @@ CONFIGURE_ARGS+=--without-iconv
#CONFIGURE_ARGS+=--without-ext2fs
#.endif
-.if defined(WITH_NTFS3G)
+.if ${PORT_OPTIONS:MNTFS3G}
LIB_DEPENDS+= ntfs-3g:${PORTSDIR}/sysutils/fusefs-ntfs
.else
CONFIGURE_ARGS+=--without-ntfs3g
.endif
-.if defined(WITH_NTFSPROGS)
-.if defined(WITH_NTFS3G)
-IGNORE= WITH_NTFSPROGS does not work if WITH_NTFS3G is defined
-.endif
-LIB_DEPENDS+= ntfs.10:${PORTSDIR}/sysutils/ntfsprogs
+.if ${PORT_OPTIONS:MNTFSPROGS}
+LIB_DEPENDS+= ntfs:${PORTSDIR}/sysutils/ntfsprogs
.else
CONFIGURE_ARGS+=--without-ntfs
.endif
-.if defined(WITH_PROGSREISERFS)
+.if ${PORT_OPTIONS:MPROGSREISERFS}
LIB_DEPENDS+= reiserfs-0.3.0:${PORTSDIR}/sysutils/progsreiserfs
.else
CONFIGURE_ARGS+=--without-reiserfs
.endif
post-patch:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|/doc/.(PACKAGE)-.(VERSION)|/doc/${PORTNAME}|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/doc\/testdisk\/html/d' ${WRKSRC}/Makefile.in
.else
2e8895db4'>typo clean up police: \s -> \tlioux2001-02-141-1/+1 * Add CONFIGURE_ARGS to install shared library.kevlo2000-11-261-0/+1 * Upgrade to lzo 1.07kris2000-11-192-4/+4 * Rename INSTALLS_SHLIBS to INSTALLS_SHLIB. (There was a typo in theasami2000-06-171-1/+1 * Fourth round of INSTALLS_SHLIBS conversion.sobomax2000-06-162-2/+1 * update with the new PORTNAME/PORTVERSION variablesmharo2000-04-091-2/+2 * PLIST fixes.reg2000-02-131-1/+1 * Update port to 1.06jedgar1999-12-222-57/+3 * Update to version 1.06cpiazza1999-12-053-25/+49 * - Fix MASTER_SITEScpiazza1999-11-21