2004-04-18 21:42:57 +02:00
|
|
|
# New ports collection makefile for: testdisk
|
|
|
|
# Date created: Feb 28 2004
|
|
|
|
# Whom: Florent Thoumie <flz@xbsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= testdisk
|
2004-05-03 01:40:41 +02:00
|
|
|
PORTVERSION= 5.2
|
2004-05-18 11:28:27 +02:00
|
|
|
PORTREVISION= 2
|
2004-04-18 21:42:57 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.cgsecurity.org/
|
|
|
|
|
|
|
|
MAINTAINER= flz@xbsd.org
|
|
|
|
COMMENT= Tool to check and undelete partitions
|
|
|
|
|
2004-05-03 01:40:41 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-04-18 21:42:57 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-05-18 11:28:27 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
|
2004-05-03 01:40:41 +02:00
|
|
|
|
2004-05-18 11:28:27 +02:00
|
|
|
MAN1= testdisk.1
|
2004-04-18 21:42:57 +02:00
|
|
|
|
|
|
|
.if defined(WITH_E2FSPROGS)
|
2004-05-18 11:28:27 +02:00
|
|
|
LIB_DEPENDS+= ext2fs.2:${PORTSDIR}/sysutils/e2fsprogs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NTFSPROGS)
|
|
|
|
LIB_DEPENDS+= ntfs.5:${PORTSDIR}/sysutils/ntfsprogs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PROGSREISERFS)
|
|
|
|
LIB_DEPENDS+= reiserfs-0.3.0:${PORTSDIR}/sysutils/progsreiserfs
|
2004-04-18 21:42:57 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500040
|
|
|
|
IGNORE= "Requires FreeBSD 5.x, some defines are missing in sys/disk.h before __FreeBSD_version 500040"
|
|
|
|
.endif
|
|
|
|
|
2004-05-18 11:28:27 +02:00
|
|
|
.if !defined(WITH_E2FSPROGS) || !defined(WITH_NTFSPROGS) || !defined(WITH_PROGSREISERFS)
|
2004-04-18 21:42:57 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You can define the following for additional features:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if !defined(WITH_E2FSPROGS)
|
2004-05-18 11:28:27 +02:00
|
|
|
@${ECHO_MSG} "WITH_E2FSPROGS - Use ext2fs extensions.
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_NTFSPROGS)
|
|
|
|
@${ECHO_MSG} "WITH_NTFSPROGS - Use ntfs extensions.
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_PROGSREISERFS)
|
|
|
|
@${ECHO_MSG} "WITH_PROGSREISERFS - Use reiserfs extensions.
|
2004-04-18 21:42:57 +02:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-05-03 01:40:41 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/doc/.(PACKAGE)-.(VERSION)|/doc/${PORTNAME}|' ${WRKSRC}/Makefile.in
|
2004-04-18 21:42:57 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|