aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/meld/Makefile
blob: c715a1a67ea860b9647d66b23a9a60c3692b4bfe (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
# New ports collection makefile for:    meld
# Date created:             2003-04-13
# Whom:                 Pav Lucistnik <pav@oook.cz>
#
# $FreeBSD$
#

PORTNAME=   meld
PORTVERSION=    0.9.4.1
PORTREVISION=   1
CATEGORIES= textproc devel python
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.9

MAINTAINER= rui@ruilopes.com
COMMENT=    GNOME 2 visual diff and merge tool

BROKEN=     Incomplete pkg-plist

USE_BZIP2=  yes
USE_GNOME=  pygnome2
USE_PYTHON= yes
USE_X_PREFIX=   yes
NO_BUILD=   yes
USE_REINPLACE=  yes
USE_GMAKE=  yes

MAKEFILE=   GNUmakefile

post-patch:
    @${REINPLACE_CMD} -E 's,(prefix := )(.*),\1${PREFIX},; \
        s,(libdir := )(.*),\1${PREFIX}/share,' ${WRKSRC}/GNUmakefile

post-install:
    ${INSTALL_DATA} ${WRKSRC}/meld.desktop ${PREFIX}/share/gnome/applications
    ${INSTALL_DATA} ${WRKSRC}/manual/stylesheet.css ${DOCSDIR}

# This target is only meant to be used by the port maintainer.
x-generate-plist:
    (${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX}|${SED} -E 's,.*share/nls/.+$$,,g;s,share/doc/meld,%%DOCSDIR%%,;s,^@dirrm share/(gnome|pixmaps|application|locale).*,,'|${TR} -s '\n') > temp-pkg-plist

.include <bsd.port.mk>