# Created by: chinsan # $FreeBSD: head/textproc/sdcv/Makefile 405891 2016-01-12 16:20:31Z amdmi3 $ PORTNAME= sdcv PORTVERSION= 0.4.2 PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Text-based utility for work with dictionaries in StarDict's format LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING GNU_CONFIGURE= yes USES= autoreconf gettext pkgconfig readline tar:bzip2 USE_GNOME= glib20 SUB_FILES= pkg-message CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib .include .if ${OSVERSION} < 1000000 BROKEN= does not build on < 10.x: error expanding embedded variable .endif post-patch: .for i in doc/sdcv.1 src/sdcv.cpp @${REINPLACE_CMD} -e \ 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i} .endfor @${REINPLACE_CMD} -e \ 's|@mandir@/uk|@mandir@|' ${WRKSRC}/doc/uk/Makefile.am @${REINPLACE_CMD} -e \ 's|getopt1.c getopt.h||' ${WRKSRC}/src/Makefile.am @${RM} -f ${WRKSRC}/src/getopt.h @${REINPLACE_CMD} '/AM_GNU_GETTEXT_VERSION/s/0\.14\.1/0.19.1/' \ ${WRKSRC}/configure.ac .include