aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/duff/Makefile
blob: 562e17d775c7c859d103570fd6b85be220334c01 (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
# $FreeBSD$

PORTNAME=   duff
PORTVERSION=    0.5.2
CATEGORIES= sysutils
MASTER_SITES=   SF

MAINTAINER= jhale@FreeBSD.org
COMMENT=    Duplicate file finder

LICENSE=    ZLIB
LICENSE_GROUPS= FSF GPL OSI
LICENSE_NAME=   ZLIB license
LICENSE_FILE=   ${WRKSRC}/COPYING
LICENSE_PERMS=  auto-accept

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       duff.1

PORTDOCS=   README.SHA

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB=  NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB=  NLS="@comment "
.endif

post-patch:
.if !${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} '/^install-data-am:/s/install-dist_docDATA//' \
        ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>