2004-04-18 21:42:57 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= testdisk
|
2015-06-17 02:22:59 +02:00
|
|
|
PORTVERSION= 7.0
|
2004-04-18 21:42:57 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.cgsecurity.org/
|
2015-05-11 20:34:57 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2004-04-18 21:42:57 +02:00
|
|
|
|
2005-03-01 13:28:00 +01:00
|
|
|
MAINTAINER= flz@FreeBSD.org
|
2004-04-18 21:42:57 +02:00
|
|
|
COMMENT= Tool to check and undelete partitions
|
|
|
|
|
2015-06-22 20:33:20 +02:00
|
|
|
USES= jpeg tar:bzip2
|
2004-05-03 01:40:41 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${PREFIX}/include
|
|
|
|
LDFLAGS+= -L${PREFIX}/lib
|
2015-06-18 08:27:23 +02:00
|
|
|
CONFIGURE_ARGS= --disable-qt --without-ewf
|
2004-05-03 01:40:41 +02:00
|
|
|
|
2015-06-17 02:22:59 +02:00
|
|
|
PLIST_FILES= bin/fidentify bin/photorec bin/testdisk \
|
2014-04-28 14:46:39 +02:00
|
|
|
man/man8/fidentify.8.gz man/man8/photorec.8.gz \
|
2015-06-17 02:22:59 +02:00
|
|
|
man/man8/qphotorec.8.gz man/man8/testdisk.8.gz \
|
|
|
|
man/zh_CN/man8/fidentify.8.gz man/zh_CN/man8/photorec.8.gz \
|
|
|
|
man/zh_CN/man8/qphotorec.8.gz man/zh_CN/man8/testdisk.8.gz \
|
|
|
|
share/icons/hicolor/48x48/apps/qphotorec.png \
|
|
|
|
share/icons/hicolor/scalable/apps/qphotorec.svg
|
2014-04-28 14:46:39 +02:00
|
|
|
|
2004-05-30 16:04:15 +02:00
|
|
|
PORTDOCS= *
|
2004-04-18 21:42:57 +02:00
|
|
|
|
2012-10-06 23:17:22 +02:00
|
|
|
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
|
2008-07-18 11:12:49 +02:00
|
|
|
# E2FSPROGS "Use ext2fs extensions" off \
|
2005-02-20 18:32:27 +01:00
|
|
|
|
2014-04-28 14:46:39 +02:00
|
|
|
ICONV_USES= iconv
|
|
|
|
ICONV_CONFIGURE_OFF= --without-iconv
|
2008-07-18 11:12:49 +02:00
|
|
|
|
|
|
|
# e2fsprogs does not provide ext2fs.so any more
|
|
|
|
# since it does not do 'make install-libs'
|
|
|
|
#.if defined(WITH_E2FSPROGS)
|
|
|
|
#LIB_DEPENDS+= ext2fs.2:${PORTSDIR}/sysutils/e2fsprogs
|
|
|
|
#.else
|
|
|
|
#CONFIGURE_ARGS+=--without-ext2fs
|
|
|
|
#.endif
|
|
|
|
|
2014-04-28 14:46:39 +02:00
|
|
|
NTFS3G_LIB_DEPENDS= libntfs-3g.so:${PORTSDIR}/sysutils/fusefs-ntfs
|
|
|
|
NTFS3G_CONFIGURE_OFF= --without-ntfs3g
|
2011-07-18 16:18:26 +02:00
|
|
|
|
2014-04-28 14:46:39 +02:00
|
|
|
NTFSPROGS_LIB_DEPENDS= libntfs.so:${PORTSDIR}/sysutils/ntfsprogs
|
|
|
|
NTFS_PROGS_CONFIGURE_ARGS= --without-ntfs
|
2004-05-18 11:28:27 +02:00
|
|
|
|
2014-04-28 14:46:39 +02:00
|
|
|
PROGSREISERFS_LIB_DEPENDS= libreiserfs-0.3.so:${PORTSDIR}/sysutils/progsreiserfs
|
|
|
|
PROGSREISERFS_CONFIGURE_OFF= --without-reiserfs
|
2004-04-18 21:42:57 +02:00
|
|
|
|
|
|
|
post-patch:
|
2007-01-29 17:49:04 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/doc/.(PACKAGE)-.(VERSION)|/doc/${PORTNAME}|' ${WRKSRC}/Makefile.in
|
2011-07-18 16:18:26 +02:00
|
|
|
@${REINPLACE_CMD} -e '/doc\/testdisk\/html/d' ${WRKSRC}/Makefile.in
|
2004-04-18 21:42:57 +02:00
|
|
|
|
2014-04-28 14:46:39 +02:00
|
|
|
.include <bsd.port.mk>
|