summaryrefslogtreecommitdiff
path: root/devel/meld/Makefile
blob: c1a8a7a022303d3ebc94ecb0ad2da79ec7eb74a4 (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
# $NetBSD: Makefile,v 1.14 2009/01/04 18:00:59 wiz Exp $
#

DISTNAME=		meld-1.2.1
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_GNOME:=sources/meld/1.2/}
EXTRACT_SUFX=		.tar.bz2

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=		${PYPKGPREFIX}-gtk2>=2.8.0:../../x11/py-gtk2
DEPENDS+=		${PYPKGPREFIX}-gnome2>=2.6.0:../../x11/py-gnome2

MAINTAINER=		dieter.NetBSD@pandora.be
HOMEPAGE=		http://meld.sourceforge.net/
COMMENT=		Visual diff and merge tool

USE_DIRS+=			xdg-1.3
USE_DIRS+=			gnome2-1.6
USE_PKGLOCALEDIR=		YES
USE_TOOLS+=			gmake msgfmt intltool
MAKE_FLAGS+=			prefix=${PREFIX}
MAKE_FLAGS+=			localedir=${PREFIX}/${PKGLOCALEDIR}/locale
MAKE_FLAGS+=			PYTHON=${PYTHONBIN}
MAKE_FILE=			GNUmakefile
PYTHON_PATCH_SCRIPTS=		meld
# filediff.py: self.textview[1 if len(files) >= 2 else 0].grab_focus()
PYTHON_VERSIONS_ACCEPTED=	25

post-extract:
	# msgfmt complains about this in 1.2.1
	${RM} ${WRKSRC}/po/sq.po

# remove unnecessarily created empty dir
post-install:
	${RMDIR} ${DESTDIR}${PREFIX}/share/doc/meld

.include "../../lang/python/application.mk"
.include "../../textproc/rarian/omf.mk"
.include "../../mk/bsd.pkg.mk"