aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2010-02-16 11:23:05 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2010-02-16 11:23:05 +0000
commit4a038a55aff8c99288295cb87c99c88cf491e4d3 (patch)
tree4bce4fbfbf12163040b9cddd687f332d74c79788
parent3e8ea8a07f00f745d4c3bee74d4ddee67c90ec1d (diff)
downloadports-4a038a55aff8c99288295cb87c99c88cf491e4d3.tar.gz
ports-4a038a55aff8c99288295cb87c99c88cf491e4d3.zip
Notes
-rw-r--r--sysutils/samesame/Makefile30
-rw-r--r--sysutils/samesame/distinfo6
2 files changed, 25 insertions, 11 deletions
diff --git a/sysutils/samesame/Makefile b/sysutils/samesame/Makefile
index aa5256648b78..3d0f112bdcdb 100644
--- a/sysutils/samesame/Makefile
+++ b/sysutils/samesame/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= samesame
-PORTVERSION= 1.8
+PORTVERSION= 1.9
CATEGORIES= sysutils
MASTER_SITES= http://samesame.kruijff.org/ \
${MASTER_SITE_LOCAL}
@@ -17,16 +17,18 @@ COMMENT= Find duplicate files and optionally link them together
CONFLICTS= samefile-[0-9]*
MAN1= samesame.1 samearchive.1 samearchive-lite.1 samefile.1 sameln.1 \
- samecp.1 samemv.1 samerm.1 samechflags.1 samechmod.1 samechown.1
+ samecp.1 samemv.1 samerm.1 samechflags.1 samechmod.1 samechown.1 \
+ samedelay.1
MANCOMPRESSED= no
PLIST_FILES= bin/samearchive bin/samefile bin/samecp \
bin/samearchive-lite bin/sameln bin/samemv \
- etc/rc.d/samesame.sh bin/samerm bin/samechflags \
- bin/samechmod bin/samechown
+ bin/samechflags bin/samerm bin/samechmod \
+ bin/samechown bin/samedelay
HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --mandir="${MANPREFIX}/man" --prefix="${PREFIX}" \
+CONFIGURE_ARGS= --enable-samechflags --enable-samechmod \
+ --mandir="${MANPREFIX}/man" --prefix="${PREFIX}" \
--includedir="${LOCALBASE}/include" --libdir="${LOCALBASE}/lib"
USE_BZIP2= yes
@@ -34,6 +36,7 @@ OPTIONS= DEBUG "Enables debugging support" Off \
DISK_STORAGE "Allows temporarily storage on disk" Off \
LOW_MEMORY_PROFILE "Low memory profile reduces functionality" Off \
EXPERIMENTAL "Enables experimental functionality" Off \
+ PROFILER "Enables gprof support" Off \
TEST "Run quality assurance test" Off
.include <bsd.port.pre.mk>
@@ -44,16 +47,23 @@ CONFIGURE_ARGS+= --enable-debug
.if defined(WITH_DISK_STORAGE)
CONFIGURE_ARGS+= --enable-disk-storage
+PLIST_FILES+= etc/rc.d/samesame.sh
.endif
.if defined(WITH_EXPERIMENTAL)
-CONFIGURE_ARGS+= --enable-experimental
+CONFIGURE_ARGS+= --enable-experimental --enable-fsort
+#CONFIGURE_ARGS+= --enable-checksums --enable-preread
+PLIST_FILES+= bin/fsort
.endif
.if defined(WITH_LOW_MEMORY_PROFILE)
CONFIGURE_ARGS+= --enable-low-memory-profile --disable-read-onces
.endif
+.if defined(WITH_PROFILER)
+CONFIGURE_ARGS+= --enable-profiler
+.endif
+
regression-test: build
@cd ${WRKSRC}; ${MAKE} check
@@ -63,7 +73,7 @@ post-build:
.endif
post-install:
-.if defined(WITHOUT_DEBUG)
+.if defined(WITHOUT_DEBUG) && defined(WITHOUT_PROFILER)
${STRIP_CMD} ${PREFIX}/bin/samefile
${STRIP_CMD} ${PREFIX}/bin/samearchive
${STRIP_CMD} ${PREFIX}/bin/samearchive-lite
@@ -74,9 +84,13 @@ post-install:
${STRIP_CMD} ${PREFIX}/bin/sameln
${STRIP_CMD} ${PREFIX}/bin/samemv
${STRIP_CMD} ${PREFIX}/bin/samerm
+.if defined(WITH_EXPERIMENTAL)
+ ${STRIP_CMD} ${PREFIX}/bin/fsort
.endif
-
+.endif
+.if defined(WITH_DISK_STORAGE)
${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh ${PREFIX}/etc/rc.d/
+.endif
@${ECHO}
@${CAT} pkg-message
@${ECHO}
diff --git a/sysutils/samesame/distinfo b/sysutils/samesame/distinfo
index aafe56519202..7f5b835d1021 100644
--- a/sysutils/samesame/distinfo
+++ b/sysutils/samesame/distinfo
@@ -1,3 +1,3 @@
-MD5 (samesame-1.8.tar.bz2) = a38ea450ef1e752b99032db8c046e420
-SHA256 (samesame-1.8.tar.bz2) = 23cd53ff8c6cebbf14d69247cc8cb717f11d56f71eea0b452987a953d91c723d
-SIZE (samesame-1.8.tar.bz2) = 114984
+MD5 (samesame-1.9.tar.bz2) = cf2aeedb8b0557dda0d88f330611edaa
+SHA256 (samesame-1.9.tar.bz2) = d6281bbdfa9a30380fd706b8bf349f77999e627e64a652e38db415700295f464
+SIZE (samesame-1.9.tar.bz2) = 121167