blob: 886c2f5fb9223bdb44eccebbac047110075a89bc (
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
|
# Created by: S H A N <shanali@yahoo.com>
# $FreeBSD$
PORTNAME= kanatest
PORTVERSION= 0.4.8
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://clayo.org/kanatest/
MAINTAINER= ports@FreeBSD.org
COMMENT= Japanese kana (Hiragana and Katakana) simple flashcard tool
BROKEN= runtime segfault (PR 196452)
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2015-12-30
USES= gettext gmake pkgconfig desktop-file-utils
USE_GNOME= gtk20 libxml2
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
MAKE_ENV+= LIBINTL="-lintl"
post-patch: .SILENT
${REINPLACE_CMD} '/LIBS/s|-lxml|-L${LOCALBASE}/lib &|' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|-DGTK_DISABLE_DEPRECATED||g' \
${WRKSRC}/src/Makefile.in
${REINPLACE_CMD} -e '/^%.mo:/,/^$$/s/test[^;]*/${TRUE}/' \
-e '\|/usr/bin| { s||${LOCALBASE}/bin|; s|=|?=|; }' \
${WRKSRC}/po/Makefile.in
${REINPLACE_CMD} -e '/GTK_WIDGET_SET_FLAGS/ { \
s//gtk_widget_set_can_default/; \
s/GTK_CAN_DEFAULT/TRUE/; }' \
-e '/GTK_WIDGET_UNSET_FLAGS/ { \
s//gtk_widget_set_can_focus/; \
s/GTK_CAN_FOCUS/FALSE/; }' \
${WRKSRC}/src/about.c \
${WRKSRC}/src/chart.c \
${WRKSRC}/src/gui.c \
${WRKSRC}/src/options.c \
${WRKSRC}/src/stats.c
.include <bsd.port.mk>
|