blob: e9da6621373a7235351fd614c329b6d84e696173 (
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
|
# Created by: chinsan <chinsan.tw@gmail.com>
# $FreeBSD$
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 <bsd.port.pre.mk>
.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} ${WRKSRC}/src/getopt.h
@${REINPLACE_CMD} '/AM_GNU_GETTEXT_VERSION/s/0\.14\.1/0.19.1/' \
${WRKSRC}/configure.ac
.include <bsd.port.post.mk>
|