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 pkgconfig desktop-file-utils |
15 |
USE_GNOME+= gtk30 libxml2 pango atk cairo gdkpixbuf2 glib20 |
16 |
GNU_CONFIGURE= yes |
17 |
MAKE_ENV+= LIBINTL="-lintl" |
18 |
|
19 |
USE_GITHUB= yes |
20 |
GH_ACCOUNT= Clockwork6400 |
21 |
|
22 |
pre-configure: |
23 |
${CHMOD} +x ${WRKSRC}/configure |
24 |
${REINPLACE_CMD} '/LIBS/s|-lxml|-L${LOCALBASE}/lib &|' \ |
25 |
${WRKSRC}/configure |
26 |
${REINPLACE_CMD} -e 's|-DGTK_DISABLE_DEPRECATED||g' \ |
27 |
${WRKSRC}/src/Makefile.in |
28 |
${REINPLACE_CMD} -e '/^%.mo:/,/^$$/s/test[^;]*/${TRUE}/' \ |
29 |
-e '\|/usr/bin| { s||${LOCALBASE}/bin|; s|=|?=|; }' \ |
30 |
${WRKSRC}/po/Makefile.in |
31 |
${REINPLACE_CMD} -e '/GTK_WIDGET_SET_FLAGS/ { \ |
32 |
s//gtk_widget_set_can_default/; \ |
33 |
s/GTK_CAN_DEFAULT/TRUE/; }' \ |
34 |
-e '/GTK_WIDGET_UNSET_FLAGS/ { \ |
35 |
s//gtk_widget_set_can_focus/; \ |
36 |
s/GTK_CAN_FOCUS/FALSE/; }' \ |
37 |
${WRKSRC}/src/about.c \ |
38 |
${WRKSRC}/src/chart.c \ |
39 |
${WRKSRC}/src/gui.c \ |
40 |
${WRKSRC}/src/options.c \ |
41 |
${WRKSRC}/src/stats.c |
42 |
|
43 |
.include <bsd.port.mk> |