1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/textproc/xxdiff/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

56 lines
1.7 KiB
Makefile

# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$
PORTNAME= xxdiff
PORTVERSION= 3.2
PORTREVISION= 7
CATEGORIES= textproc
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= QT interface to view/merge differences between 2 or 3 files
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake \
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
DEPRECATED= Depends on QT3; unmaintained
EXPIRATION_DATE= 2013-07-01
QMAKE= ${LOCALBASE}/bin/qmake
SPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
USE_BZIP2= yes
USES= bison
USE_GMAKE= yes
USE_QT_VER= 3
MAKE_ENV+= QTDIR=${QT_PREFIX}
BUILD_WRKSRC= ${WRKSRC}/src
DOCFILES= xxdiff-doc.html xxdiff-integration.html xxdiff-scripts.html xxdiff-secrets.html \
equals.png horiz.png perhunk.png rma.png screenshot-sql-schema-compare.png select.png
SSDIR= ${DOCSDIR}/screenshots
SSFILES= allindex.cidx allindex.html dirindex.html sortindex.html \
${SSNAPS_EXT:S/^/xxdiff-snap-/}
SSNAPS= about dirs2 doc files2 files3 merged opt1 opt2 opt3 opt4 opt5
SSNAPS_EXT= ${SSNAPS:S/$/--thumb.jpg/} ${SSNAPS:S/$/.desc/} \
${SSNAPS:S/$/.html/} ${SSNAPS:S/$/.jpg/}
PLIST_FILES= bin/xxdiff
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's!flex!${LOCALBASE}/bin/flex!' ${BUILD_WRKSRC}/xxdiff.pro
@${REINPLACE_CMD} -e 's!?= /usr/qt/3!= ${LOCALBASE}!' ${BUILD_WRKSRC}/Makefile.bootstrap
pre-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} QMAKESPEC=${SPEC} ${MAKE} -f Makefile.bootstrap ${MAKE_ARGS} Makefile)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/xxdiff ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR} ${SSDIR}
${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
${INSTALL_DATA} ${SSFILES:S,^,${WRKSRC}/doc/screenshots/,} ${SSDIR}/
.endif
.include <bsd.port.mk>