openbsd-ports/sysutils/dwdiff/Makefile
2020-12-14 07:28:47 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.28 2020/12/14 07:28:47 benoit Exp $
COMMENT = word-based diff program
DISTNAME = dwdiff-2.1.4
CATEGORIES = sysutils textproc
FIX_EXTRACT_PERMISSIONS=Yes
HOMEPAGE = http://os.ghalkes.nl/dwdiff.html
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += c icudata icuuc intl
MASTER_SITES = http://os.ghalkes.nl/dist/
EXTRACT_SUFX = .tar.bz2
BUILD_DEPENDS = devel/gettext,-tools
LIB_DEPENDS = devel/gettext,-runtime \
textproc/icu4c
CONFIGURE_STYLE = simple
CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -lintl" \
LINGUAS="nl de fr es"
NO_TEST = Yes
LANGS = de nl fr es
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dwdiff ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/dwdiff.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dwdiff
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dwdiff
.for l in ${LANGS}
${INSTALL_DATA_DIR} ${PREFIX}/share/locale/${l}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${l}.mo \
${PREFIX}/share/locale/${l}/LC_MESSAGES
.endfor
.include <bsd.port.mk>