freebsd-ports/textproc/sdcv/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

39 lines
748 B
Makefile

# Created by: chinsan <chinsan.tw@gmail.com>
# $FreeBSD$
PORTNAME= sdcv
PORTVERSION= 0.5.2
PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= textproc
MAINTAINER= citrin@citrin.ru
COMMENT= Text-based utility for work with dictionaries in StarDict's format #'
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang pkgconfig readline
USE_GNOME= glib20
SUB_FILES= pkg-message
USE_GITHUB= yes
GH_ACCOUNT= Dushistov
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CMAKE_OFF= -DENABLE_NLS:BOOL=OFF
post-patch:
.for i in doc/sdcv.1 src/sdcv.cpp
@${REINPLACE_CMD} -e \
's|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i}
.endfor
post-build-NLS-on:
cd ${BUILD_WRKSRC} && ${MAKE_CMD} lang
.include <bsd.port.mk>