aboutsummaryrefslogtreecommitdiffstats
path: root/games/ninix-aya/Makefile
blob: 5facb26405632bf22660a63ba473a77aa04f9c3c (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    ninix-aya
# Date created:             6 Dec 2003
# Whom:                 UMENO Takashi
#
# $FreeBSD$
#

PORTNAME=   ninix-aya
PORTVERSION=    4.0.6
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_JP}
MASTER_SITE_SUBDIR= ninix-aya/47495
DISTNAME=   ninix-aya-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= umeno@rr.iij4u.or.jp
COMMENT=    Ninix-aya is a compatible with desktop mascot program "Ukagaka"

LIB_DEPENDS=    png:${PORTSDIR}/graphics/png
RUN_DEPENDS=    unzip:${PORTSDIR}/archivers/unzip \
        lha:${PORTSDIR}/archivers/lha \
        ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
        ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet \
        ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
        ${PYTHON_SITELIBDIR}/pygst.py:${PORTSDIR}/multimedia/py-gstreamer

PYVERSION=  ${PYTHON_VERSION:S/^python//}
.if defined(PYTHON_VERSION) && ${PYVERSION:S/.//} < 24
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/japanese.pth:${PORTSDIR}/japanese/pycodec
.endif # defined(PYVERSION) && ${PYVERSION:S/.//} < 24

USE_PYTHON= yes
USE_GMAKE=  yes

.include <bsd.port.pre.mk>

.if !defined(NOPORTDOCS)
DOCSDIR=    ${PREFIX}/share/doc/ninix
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -E -e 's,\$$\(DESTDIR\)(.*),\1,' \
        -e 's,/opt/ninix-aya,$$(PREFIX),' \
        -e 's,lib/ninix,libexec/ninix,' \
        -e 's,/doc,/share/doc/ninix,' \
        ${WRKSRC}/Makefile
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e '/docdir)$$/d' \
        ${WRKSRC}/Makefile
.endif
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -e '/localedir/d' \
        ${WRKSRC}/Makefile
.endif

.include <bsd.port.post.mk>