aboutsummaryrefslogtreecommitdiff
path: root/sysutils/samesame/Makefile
blob: 05b4856ad02bcb9230c516e7062b6aef8ee08509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PORTNAME=	samesame
PORTVERSION=	1.10
PORTREVISION=	3
CATEGORIES=	sysutils
MASTER_SITES=	http://samesame.kruijff.org/ \
		LOCAL/dhn

MAINTAINER=	samesame@akruijff.dds.nl
COMMENT=	Find duplicate files and optionally link them together
WWW=		https://samesame.kruijff.org/

LICENSE=	BSD2CLAUSE

CONFLICTS=	samefile

HAS_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
CONFIGURE_ARGS=	--enable-samechflags --enable-samechmod \
		--mandir="${PREFIX}/share/man" --prefix="${PREFIX}" \
		--includedir="${LOCALBASE}/include" --libdir="${LOCALBASE}/lib"
USES=		tar:bzip2
TEST_TARGET=	check

CXXFLAGS+=	-std=c++11

OPTIONS_DEFINE=			DEBUG DISK_STORAGE LOW_MEMORY_PROFILE \
				EXPERIMENTAL PROFILER
OPTIONS_SUB=			yes
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

DISK_STORAGE_CONFIGURE_ENABLE=	disk-storage
LOW_MEMORY_PROFILE_CONFIGURE_ON=	--enable-low-memory-profile --disable-read-onces
EXPERIMENTAL_CONFIGURE_ENABLE=	experimental fsort #checksums preread
PROFILER_CONFIGURE_ENABLE=	profiler
DEBUG_CONFIGURE_ENABLE=		debug

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG} || ${PORT_OPTIONS:MPROFILER}
INSTALL_TARGET=		install
.endif

post-install-DISK_STORAGE-on:
	${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh \
		${STAGEDIR}${PREFIX}/etc/rc.d/

.include <bsd.port.mk>