summaryrefslogtreecommitdiff
path: root/sysutils/ftwin/Makefile
blob: 77efb7e2be9fe85cc3c9da6d79f8e8453b25699c (plain)
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

PORTNAME=	ftwin
PORTVERSION=	0.8.10
CATEGORIES=	sysutils

MAINTAINER=	shoesoft@gmx.net
COMMENT=	Useful tool to find duplicate files

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libapr-1.so:devel/apr1 \
		libexpat.so:textproc/expat2 \
		libgdbm.so:databases/gdbm \
		libgd.so:graphics/gd \
		libpcre.so:devel/pcre \
		libpuzzle.so:graphics/libpuzzle

USES=		autoreconf bdb libarchive pkgconfig tar:bzip2

USE_GITHUB=	yes
GH_ACCOUNT=	fpesce
GH_PROJECT=	ftwin
GH_TAGNAME=	3355fd9

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-archive=${LOCALBASE}
MAKE_ARGS=	CFLAGS="${CFLAGS}"

PORTDOCS=	AUTHORS EXAMPLES TODO CHANGES KNOWN_BUGS VERSION README
PLIST_FILES=	bin/ftwin man/man8/ftwin.8.gz

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e \
		's|-Werror -g -ggdb|| ; \
		 s|-O0||' ${WRKSRC}/Makefile.am

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>