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> |