Lines 2-38
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= sdcv |
4 |
PORTNAME= sdcv |
5 |
PORTVERSION= 0.4.2 |
5 |
DISTVERSION= 0.5.0-beta2 |
6 |
PORTREVISION= 4 |
6 |
DISTVERSIONSUFFIX= -Source |
7 |
CATEGORIES= textproc |
7 |
CATEGORIES= textproc |
8 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ |
9 |
|
9 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= citrin@citrin.ru |
11 |
COMMENT= Text-based utility for work with dictionaries in StarDict's format |
11 |
COMMENT= Text-based utility for work with dictionaries in StarDict's format |
12 |
|
12 |
|
13 |
LICENSE= GPLv2+ |
13 |
LICENSE= GPLv2+ |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
15 |
|
16 |
GNU_CONFIGURE= yes |
16 |
USES= cmake:outsource pkgconfig readline tar:bzip2 |
17 |
USES= autoreconf gettext pkgconfig readline tar:bzip2 |
|
|
18 |
USE_GNOME= glib20 |
17 |
USE_GNOME= glib20 |
19 |
|
18 |
|
20 |
SUB_FILES= pkg-message |
19 |
SUB_FILES= pkg-message |
21 |
|
20 |
|
22 |
CPPFLAGS+= -I${LOCALBASE}/include |
21 |
OPTIONS_DEFINE= NLS |
23 |
LIBS+= -L${LOCALBASE}/lib |
22 |
OPTIONS_SUB= yes |
|
|
23 |
|
24 |
NLS_USES= gettext |
25 |
NLS_CMAKE_OFF= -DENABLE_NLS:BOOL=OFF |
24 |
|
26 |
|
25 |
post-patch: |
27 |
post-patch: |
26 |
.for i in doc/sdcv.1 src/sdcv.cpp |
28 |
.for i in doc/sdcv.1 src/sdcv.cpp |
27 |
@${REINPLACE_CMD} -e \ |
29 |
@${REINPLACE_CMD} -e \ |
28 |
's|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i} |
30 |
's|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i} |
29 |
.endfor |
31 |
.endfor |
30 |
@${REINPLACE_CMD} -e \ |
32 |
|
31 |
's|@mandir@/uk|@mandir@|' ${WRKSRC}/doc/uk/Makefile.am |
33 |
post-build-NLS-on: |
32 |
@${REINPLACE_CMD} -e \ |
34 |
cd ${BUILD_WRKSRC} && ${MAKE_CMD} lang |
33 |
's|getopt1.c getopt.h||' ${WRKSRC}/src/Makefile.am |
|
|
34 |
@${RM} ${WRKSRC}/src/getopt.h |
35 |
@${REINPLACE_CMD} '/AM_GNU_GETTEXT_VERSION/s/0\.14\.1/0.19.1/' \ |
36 |
${WRKSRC}/configure.ac |
37 |
|
35 |
|
38 |
.include <bsd.port.mk> |
36 |
.include <bsd.port.mk> |