aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dircomp/Makefile
blob: 19048d6a6aceff4ab2da28e53b36ed3e459315e9 (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
# New ports collection makefile for:	DirComp
# Date created:		20 August 2006
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	DirComp
PORTVERSION=	1.3.03
PORTREVISION=	4
CATEGORIES=	sysutils
MASTER_SITES=	SF/${PORTNAME:L}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	beat@FreeBSD.org
COMMENT=	Compare two directories

.ifndef WITHOUT_X11
LIB_DEPENDS=	XGP.0:${PORTSDIR}/devel/libXGP
PLIST_FILES+=	bin/XDirComp
.else
MK_PATCH+=	s/@MYSUBDIRS@/Common/g;
.endif
LIB_DEPENDS+=	YGP.0:${PORTSDIR}/devel/libYGP

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GETTEXT=	yes
CONFIGURE_ENV+=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE} --disable-rpath
PLIST_FILES+=	bin/DirComp \
		share/locale/de/LC_MESSAGES/DirComp.mo \
		share/locale/en/LC_MESSAGES/DirComp.mo \
		share/locale/es/LC_MESSAGES/DirComp.mo

post-patch:
	@${REINPLACE_CMD} -Ee 's/^(SUBDIRS.*)doc/\1/;${MK_PATCH}' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>