summaryrefslogtreecommitdiff
path: root/devel/fhist/Makefile
blob: 60d825a578a89269cff532af115a033374894664 (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
51
52
53
54
# New ports collection makefile for: 	fhist
# Date created:				Jan 05 2000
# Whom: 				<jkoshy@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	fhist
PORTVERSION=	1.17
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utilities to maintain file history, do file comparisions and merges

GNU_CONFIGURE=	yes
ALL_TARGET=	binaries po
MAKE_JOBS_UNSAFE=	yes

MAN1=		fcomp.1 fhist.1 fmerge.1
PLIST_FILES=	bin/fcomp bin/fhist bin/fmerge

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

.include <bsd.port.pre.mk>

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=	ac_cv_lib_intl_main=no
.else
USE_GETTEXT=	yes
PLIST_FILES+=	share/locale/en/LC_MESSAGES/fcomp.mo \
		share/locale/en/LC_MESSAGES/fhist.mo \
		share/locale/en/LC_MESSAGES/fmerge.mo
.endif

post-extract:
	cd ${WRKSRC}/lib/en/man1 && ${LN} -s ${WRKSRC}/etc/*.so .

do-install:
.for file in fhist fcomp fmerge
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${PREFIX}/bin/${file}
	(cd ${WRKSRC}/lib/en/man1; soelim ${file}.1 > tmp; \
	${INSTALL_MAN} tmp ${PREFIX}/man/man1/${file}.1)
.if !defined(WITHOUT_NLS)
	@${MKDIR} ${PREFIX}/share/locale/en/LC_MESSAGES
	${INSTALL_DATA} ${WRKSRC}/lib/en/LC_MESSAGES/${file}.mo \
		 ${PREFIX}/share/locale/en/LC_MESSAGES/${file}.mo
.endif
.endfor

.include <bsd.port.post.mk>