Added
Link Here
|
1 |
PORTNAME= kanatest |
2 |
PORTVERSION= 0.4.10 |
3 |
PORTREVISION= 3 |
4 |
CATEGORIES= games |
5 |
|
6 |
MAINTAINER= Clockwork6400@protonmail.com |
7 |
COMMENT= Japanese kana (Hiragana and Katakana) simple flashcard tool |
8 |
WWW= https://github.com/Clockwork6400/kanatest |
9 |
|
10 |
LICENSE= GPLv2 |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz |
14 |
USES= gettext gmake gnome pkgconfig |
15 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= Clockwork6400 |
17 |
USE_GNOME+= atk cairo gdkpixbuf2 glib20 gtk30 libxml2 pango |
18 |
GNU_CONFIGURE= yes |
19 |
MAKE_ENV+= LIBINTL="-lintl" |
20 |
|
21 |
OPTIONS_DEFINE= NLS |
22 |
OPTIONS_SUB= yes |
23 |
|
24 |
.include <bsd.port.options.mk> |
25 |
|
26 |
.if ${PORT_OPTIONS:MNLS} |
27 |
USES+= gettext |
28 |
PLIST_SUB+= NLS="" |
29 |
.else |
30 |
CONFIGURE_ARGS+= --disable-nls |
31 |
PLIST_SUB+= NLS="@comment " |
32 |
.endif |
33 |
|
34 |
pre-configure: |
35 |
${CHMOD} +x ${WRKSRC}/configure |
36 |
${REINPLACE_CMD} '/LIBS/s|-lxml|-L${LOCALBASE}/lib &|' \ |
37 |
${WRKSRC}/configure |
38 |
${REINPLACE_CMD} -e 's|-DGTK_DISABLE_DEPRECATED||g' \ |
39 |
${WRKSRC}/src/Makefile.in |
40 |
${REINPLACE_CMD} -e '/^%.mo:/,/^$$/s/test[^;]*/${TRUE}/' \ |
41 |
-e '\|/usr/bin| { s||${LOCALBASE}/bin|; s|=|?=|; }' \ |
42 |
${WRKSRC}/po/Makefile.in |
43 |
${REINPLACE_CMD} -e '/GTK_WIDGET_SET_FLAGS/ { \ |
44 |
s//gtk_widget_set_can_default/; \ |
45 |
s/GTK_CAN_DEFAULT/TRUE/; }' \ |
46 |
-e '/GTK_WIDGET_UNSET_FLAGS/ { \ |
47 |
s//gtk_widget_set_can_focus/; \ |
48 |
s/GTK_CAN_FOCUS/FALSE/; }' \ |
49 |
${WRKSRC}/src/about.c \ |
50 |
${WRKSRC}/src/chart.c \ |
51 |
${WRKSRC}/src/gui.c \ |
52 |
${WRKSRC}/src/options.c \ |
53 |
${WRKSRC}/src/stats.c |
54 |
|
55 |
post-install-NLS-on: |
56 |
|
57 |
.include <bsd.port.mk> |