2013-04-28 22:01:07 +02:00
|
|
|
# Created by: Alex de Kruijff
|
2009-04-30 17:31:00 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= samesame
|
2012-06-18 01:59:58 +02:00
|
|
|
PORTVERSION= 1.10
|
2009-04-30 17:31:00 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-05-27 22:43:39 +02:00
|
|
|
MASTER_SITES= http://samesame.kruijff.org/ \
|
2015-05-14 12:15:04 +02:00
|
|
|
LOCAL/dhn
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2009-05-19 16:25:13 +02:00
|
|
|
MAINTAINER= samesame@akruijff.dds.nl
|
2009-12-25 00:21:07 +01:00
|
|
|
COMMENT= Find duplicate files and optionally link them together
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2014-06-07 00:22:47 +02:00
|
|
|
LICENSE= BSD2CLAUSE
|
2009-07-08 00:08:29 +02:00
|
|
|
|
2014-06-07 00:22:47 +02:00
|
|
|
CONFLICTS= samefile-[0-9]*
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2009-07-08 00:08:29 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2014-06-07 00:22:47 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2010-02-16 12:23:05 +01:00
|
|
|
CONFIGURE_ARGS= --enable-samechflags --enable-samechmod \
|
|
|
|
--mandir="${MANPREFIX}/man" --prefix="${PREFIX}" \
|
2009-07-08 00:08:29 +02:00
|
|
|
--includedir="${LOCALBASE}/include" --libdir="${LOCALBASE}/lib"
|
2014-06-07 00:22:47 +02:00
|
|
|
USES= tar:bzip2
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2014-06-07 00:22:47 +02:00
|
|
|
OPTIONS_DEFINE= DEBUG DISK_STORAGE LOW_MEMORY_PROFILE \
|
|
|
|
EXPERIMENTAL PROFILER TEST
|
|
|
|
OPTIONS_SUB= yes
|
2013-04-28 22:01:07 +02:00
|
|
|
DISK_STORAGE_DESC= Allows temporarily storage on disk
|
|
|
|
LOW_MEMORY_PROFILE_DESC= Low memory profile reduces functionality
|
|
|
|
EXPERIMENTAL_DESC= Enables experimental functionality
|
|
|
|
PROFILER_DESC= Enables gprof support
|
|
|
|
TEST_DESC= Run quality assurance test
|
2009-05-25 21:56:45 +02:00
|
|
|
|
2014-06-07 00:22:47 +02:00
|
|
|
DISK_STORAGE_CONFIGURE_ENABLE= disk-storage
|
|
|
|
EXPERIMENTAL_CONFIGURE_ENABLE= experimental fsort #checksums preread
|
|
|
|
PROFILE_CONFIGURE_ENABLE= profiler
|
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
2009-05-25 21:56:45 +02:00
|
|
|
|
2014-06-07 00:22:47 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2014-06-07 00:22:47 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG} || ${PORT_OPTIONS:MPROFILER}
|
|
|
|
INSTALL_TARGET= install
|
2009-12-25 00:21:07 +01:00
|
|
|
.endif
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MLOW_MEMORY_PROFILE}
|
2009-12-25 00:21:07 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-low-memory-profile --disable-read-onces
|
2009-04-30 17:31:00 +02:00
|
|
|
.endif
|
|
|
|
|
2009-09-09 02:09:05 +02:00
|
|
|
regression-test: build
|
2009-07-08 00:08:29 +02:00
|
|
|
@cd ${WRKSRC}; ${MAKE} check
|
2009-05-25 21:56:45 +02:00
|
|
|
|
2009-09-09 02:09:05 +02:00
|
|
|
post-build:
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
2009-07-08 00:08:29 +02:00
|
|
|
@cd ${WRKSRC}; ${MAKE} check
|
2009-05-25 21:56:45 +02:00
|
|
|
.endif
|
2009-05-01 20:25:31 +02:00
|
|
|
|
2009-04-30 17:31:00 +02:00
|
|
|
post-install:
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MDISK_STORAGE}
|
2014-06-07 00:22:47 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/rc.d/
|
2010-02-16 12:23:05 +01:00
|
|
|
.endif
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.include <bsd.port.mk>
|