View | Details | Raw Unified | Return to bug 184870
Collapse All | Expand All

(-)textproc/ssddiff/Makefile (-9 / +14 lines)
Lines 8-30 Link Here
8
MASTER_SITES=	http://alioth.debian.org/frs/download.php/1469/
8
MASTER_SITES=	http://alioth.debian.org/frs/download.php/1469/
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	A diff application for semistructured data such as XML files
11
COMMENT=	Diff application for semistructured data such as XML files
12
13
LICENSE=	GPLv2 # (or later)
12
14
13
USE_AUTOTOOLS=	automake14
14
USE_BZIP2=	yes
15
USE_BZIP2=	yes
15
USES=		pkgconfig
16
USES=		pkgconfig
16
USE_GNOME=	libxml2
17
USE_GNOME=	libxml2 
17
MAKE_ARGS=	CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
18
USE_GCC=	any
18
		CPPFLAGS="-I${LOCALBASE}/include \
19
USE_AUTOTOOLS=	automake14
19
		-I${LOCALBASE}/include/libxml2"
20
20
PLIST_FILES=	bin/xmldiff
21
PLIST_FILES=	bin/xmldiff
21
22
22
NO_STAGE=	yes
23
post-extract:
23
post-extract:
24
	@${FIND} ${WRKSRC} -type l -delete
25
26
post-patch:
24
.for f in config.guess config.sub install-sh missing mkinstalldirs
27
.for f in config.guess config.sub install-sh missing mkinstalldirs
25
	@${LN} -sf ${AUTOMAKE_DIR}/${f} ${WRKSRC}/${f}
28
	@${LN} -sf ${AUTOMAKE_DIR}/${f} ${WRKSRC}/${f}
26
.endfor
29
.endfor
27
	@${REINPLACE_CMD} -e 's,"getopt\.h",<unistd.h>,' \
30
	@${REINPLACE_CMD} -e \
28
		${WRKSRC}/src/main.cc
31
		's|^CXXFLAGS|AM_CPPFLAGS|' ${WRKSRC}/src/Makefile.am
32
	@${REINPLACE_CMD} -e \
33
		's|"getopt\.h"|<unistd.h>|' ${WRKSRC}/src/main.cc
29
34
30
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)textproc/ssddiff/files/patch-src__rel_count.h (+10 lines)
Line 0 Link Here
1
--- src/rel_count.h.orig
2
+++ src/rel_count.h
3
@@ -13,6 +13,7 @@
4
 #define  SSD_REL_COUNT_H
5
 #include "config.h"
6
 #include "rel_eqclass.h"
7
+#include <climits>
8
 #include <vector>
9
 #include <ext/hash_map>
10
 
(-)textproc/ssddiff/files/patch-src__ustring.h (+10 lines)
Line 0 Link Here
1
--- src/ustring.h.orig
2
+++ src/ustring.h
3
@@ -14,6 +14,7 @@
4
 
5
 #include "config.h"
6
 
7
+#include <cstring>
8
 #include <iostream>
9
 #include <map>
10
 #include <ext/hash_map>

Return to bug 184870