aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ftwin
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-12-19 00:00:00 +0800
committermiwi <miwi@FreeBSD.org>2007-12-19 00:00:00 +0800
commit8e8ee0ebfdda22f143e99b96730bc731c165c1f5 (patch)
treed14bd6a920f77b39bd52b922cd25464f2520720e /sysutils/ftwin
parent9296f4dca13c5658dbdd7627aa164e98fe9477e4 (diff)
downloadfreebsd-ports-gnome-8e8ee0ebfdda22f143e99b96730bc731c165c1f5.tar.gz
freebsd-ports-gnome-8e8ee0ebfdda22f143e99b96730bc731c165c1f5.tar.zst
freebsd-ports-gnome-8e8ee0ebfdda22f143e99b96730bc731c165c1f5.zip
ftwin is a tool useful to find duplicate files according to their content
on your file system WWW: http://jok.is-a-geek.net/ftwin.php PR: ports/118581 Submitted by: Bapt <baptiste.daroussin at gmail.com>
Diffstat (limited to 'sysutils/ftwin')
-rw-r--r--sysutils/ftwin/Makefile44
-rw-r--r--sysutils/ftwin/distinfo3
-rw-r--r--sysutils/ftwin/files/patch-acinclude-check-cflags-ldflags37
-rw-r--r--sysutils/ftwin/pkg-descr4
4 files changed, 88 insertions, 0 deletions
diff --git a/sysutils/ftwin/Makefile b/sysutils/ftwin/Makefile
new file mode 100644
index 000000000000..61a83b42a079
--- /dev/null
+++ b/sysutils/ftwin/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: ftwin
+# Date created: 2007-12-05
+# Whom: Bapt <baptiste.daroussin@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ftwin
+PORTVERSION= 0.8.0
+CATEGORIES= sysutils
+MASTER_SITES= http://meroware.com/~joke/sources/ftwin/
+
+MAINTAINER= baptiste.daroussin@gmail.com
+COMMENT= A useful tool to find duplicate files
+
+LIB_DEPENDS= puzzle.1:${PORTSDIR}/graphics/libpuzzle \
+ apr-1.2:${PORTSDIR}/devel/apr \
+ pcre.0:${PORTSDIR}/devel/pcre
+
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_AUTOTOOLS= autoconf:261 aclocal:110 automake:110 autoheader:261
+CONFIGURE_ARGS+= --with-check=${LOCALBASE} --with-puzzle=${LOCALBASE}
+PLIST_FILES= bin/ftwin
+
+PORTDOCS= AUTHORS EXAMPLES TODO CHANGES KNOWN_BUGS VERSION LICENSE README
+
+MAN8= ftwin.8
+
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 600000
+LIB_DEPENDS+= archive.5:${PORTSDIR}/archivers/libarchive
+CONFIGURE_ARGS+= --with-archive=${LOCALBASE}
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/ftwin/distinfo b/sysutils/ftwin/distinfo
new file mode 100644
index 000000000000..df10ca97c5e7
--- /dev/null
+++ b/sysutils/ftwin/distinfo
@@ -0,0 +1,3 @@
+MD5 (ftwin-0.8.0.tar.bz2) = 1e4b845dc52faedd716d10db2fb77b37
+SHA256 (ftwin-0.8.0.tar.bz2) = 41941b15515393f04a2023fa64f8db1869c80713fdda659f5abcaafa7b3d79bc
+SIZE (ftwin-0.8.0.tar.bz2) = 511230
diff --git a/sysutils/ftwin/files/patch-acinclude-check-cflags-ldflags b/sysutils/ftwin/files/patch-acinclude-check-cflags-ldflags
new file mode 100644
index 000000000000..00fe7e6b3c73
--- /dev/null
+++ b/sysutils/ftwin/files/patch-acinclude-check-cflags-ldflags
@@ -0,0 +1,37 @@
+--- acinclude.m4.orig 2007-12-07 23:19:51.000000000 +0100
++++ acinclude.m4 2007-12-18 14:29:44.000000000 +0100
+@@ -141,8 +141,8 @@
+ ])
+
+ AC_DEFUN([PATH_CHECK], [
+- m4_ifdef([AM_PATH_CHECK],[
+- AM_PATH_CHECK(0.9.2,
++ m4_ifdef([PKG_CHECK_MODULES],[
++ PKG_CHECK_MODULES(CHECK,[check >= 0.9.2],
+ [
+ HAVE_CHECK=yes
+ ],
+@@ -173,9 +173,11 @@
+ # Make sure we have "puzzle.h". If we don't, it means we probably
+ # don't have libpuzzle, so don't use it.
+ #
++ CPPFLAGS="$CPPFLAGS -I$puzzle/include"
+ AC_CHECK_HEADER(puzzle.h,
+ [
+ # Check if the lib is OK
++ LDFLAGS="$LDFLAGS -L$puzzle/lib"
+ AC_CHECK_LIB(puzzle, puzzle_init_context,
+ [
+ AC_DEFINE([HAVE_PUZZLE], 1, [for image comparison mode])
+@@ -216,9 +218,11 @@
+ # Make sure we have "archive.h". If we don't, it means we probably
+ # don't have libarchive, so don't use it.
+ #
++ CPPFLAGS="$CPPFLAGS -I$archive/include"
+ AC_CHECK_HEADER(archive.h,
+ [
+ # Check if the lib is OK
++ LDFLAGS="$LDFLAGS -L$archive/lib"
+ AC_CHECK_LIB(archive, archive_version,
+ [
+ AC_DEFINE([HAVE_ARCHIVE], 1, [for inside archive comparison mode])
diff --git a/sysutils/ftwin/pkg-descr b/sysutils/ftwin/pkg-descr
new file mode 100644
index 000000000000..81b789e3beee
--- /dev/null
+++ b/sysutils/ftwin/pkg-descr
@@ -0,0 +1,4 @@
+ftwin is a tool useful to find duplicate files according to their content
+on your file system
+
+WWW: http://jok.is-a-geek.net/ftwin.php