blob: a809e0a5726bf144054ab66392cad33164e09d82 (
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
43
44
45
46
47
|
# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$
PORTNAME= xxdiff
PORTVERSION= 4.0
CATEGORIES= textproc
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphical file and directories comparator and merge tool
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= bison gmake tar:bz2
USE_QT4= gui moc_build qmake_build uic_build
BUILD_WRKSRC= ${WRKSRC}/src
PLIST_FILES= bin/xxdiff
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
# base flex(1) v2.5.4 is not sufficient
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
post-patch:
@${REINPLACE_CMD} -e 's!flex!${LOCALBASE}/bin/&!' \
${BUILD_WRKSRC}/xxdiff.pro
.endif
pre-build:
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} QMAKE=${QMAKE} \
${MAKE_CMD} -f Makefile.bootstrap ${MAKE_ARGS} Makefile)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/xxdiff ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "${PORTDOCS} ! -name Makefile" \
${STAGEDIR}/${DOCSDIR}
.include <bsd.port.post.mk>
|