diff options
author | bapt <bapt@FreeBSD.org> | 2012-10-07 05:17:22 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-10-07 05:17:22 +0800 |
commit | 1dae4740d1b18677127a971bb82f6e0d8f8547a1 (patch) | |
tree | a3828aec2eded0266b6fc7480aba4b211cccca2f /sysutils/testdisk | |
parent | 60ef6f45497a19400ab7dbfb4bc05e3b44f083cd (diff) | |
download | freebsd-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/Makefile | 34 |
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 |