freebsd-ports/textproc/ssddiff/Makefile
Alexey Dokuchaev 1f53707790 Resurrect `textproc/ssddiff' and unbreak by providing a bunch of working
mirrors.  Original upstream (alioth.debian.org) exists and seems alive,
but for some reason no longer allows unauthenticated downloads.  Keep it
for the reference though, it might get fixed one day.
2017-06-19 03:46:46 +00:00

39 lines
1.2 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= ssddiff
PORTVERSION= 0.2
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://freebsd.nsu.ru/distfiles/ \
http://ftp.is.co.za/FreeBSD/ports/distfiles/ \
ftp://ftp.rediris.es/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
http://ftp.nchc.org.tw/BSD/FreeBSD/ports/distfiles/ \
ftp://ftp.eunet.cz/FreeBSD/ports/distfiles/ \
https://alioth.debian.org/frs/download.php/file/1469/
MAINTAINER= ports@FreeBSD.org
COMMENT= Diff application for semistructured data such as XML files
LICENSE= GPLv2+
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>