aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ssddiff/Makefile
blob: e7fad108290296b4f891b4633f4ccf534be418fd (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ssddiff
PORTVERSION=    0.2
PORTREVISION=   2
CATEGORIES= textproc
MASTER_SITES=   http://alioth.debian.org/frs/download.php/1469/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Diff application for semistructured data such as XML files

BROKEN=     unfetchable

LICENSE=    GPLv2 # (or later)

GNU_CONFIGURE=  yes
USES=       autoreconf pkgconfig tar:bzip2
USE_GNOME=  libxml2

PLIST_FILES=    bin/xmldiff

post-patch:
    @${FIND} ${WRKSRC} -type l -delete
    @${REINPLACE_CMD} -e \
        's|^CXXFLAGS|AM_CPPFLAGS|' ${WRKSRC}/src/Makefile.am
    @${REINPLACE_CMD} -e \
        's|"getopt\.h"|<unistd.h>|' ${WRKSRC}/src/main.cc
    @${REINPLACE_CMD} \
        -e 's/hash</__gnu_cxx::&/' -e 's/hash<char/& const/' \
        ${WRKSRC}/src/doc.h ${WRKSRC}/src/out_common.cc \
        ${WRKSRC}/src/out_merged.cc ${WRKSRC}/src/out_xupdate.cc \
        ${WRKSRC}/src/out_xupdate.h ${WRKSRC}/src/ustring.cc \
        ${WRKSRC}/src/ustring.h

.include <bsd.port.mk>