aboutsummaryrefslogtreecommitdiffstats
path: root/games/anki/Makefile.inc
blob: b6b441cc3e751a0d2774e43ac8d181b25c0f411b (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
# $FreeBSD$

PORTNAME=   anki
PORTVERSION=    1.2.11
PORTREVISION?=  0
CATEGORIES= games
MASTER_SITES=   GOOGLE_CODE \
        http://ankisrs.net/download/mirror/
EXTRACT_SUFX=   .tgz

USE_PYTHON= yes
USE_GETTEXT=    yes
USE_PYDISTUTILS=    easy_install

.if !defined(PKGNAMEPREFIX)
BUILD_DEPENDS=  ${PYNUMPY} \
        py*-qt4-core>=4.4:${PORTSDIR}/devel/py-qt4-core \
        py*-sip>=4.6:${PORTSDIR}/devel/py-sip \
        py*-matplotlib>=0.90.0:${PORTSDIR}/math/py-matplotlib \
        py*-qt4-gui>=4.4:${PORTSDIR}/x11-toolkits/py-qt4-gui
RUN_DEPENDS:=   ${BUILD_DEPENDS} \
        py*-anki>=1.2.11:${PORTSDIR}/games/py-anki \
        py*-svg>=4.4:${PORTSDIR}/graphics/py-qt4-svg \
        py*-network>=4.4:${PORTSDIR}/net/py-qt4-network \
        py*-webkit>=4.4:${PORTSDIR}/www/py-qt4-webkit

USE_QT_VER= 4
QT_COMPONENTS=  corelib gui
PYDISTUTILS_PKGNAME=    ankiqt

PORT_VERBS= ankiqt
DESKTOP_ENTRIES=    "${PORTNAME}" \
        "${COMMENT}" \
        "" \
        "anki" \
        "Education;Languages;Qt;" \
        false
.else
BUILD_DEPENDS=  ${PYNUMPY} \
        ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
        py*-sqlalchemy06>=0:${PORTSDIR}/databases/py-sqlalchemy06 \
        py*-game>=0:${PORTSDIR}/devel/py-game \
        py*-simplejson>=0:${PORTSDIR}/devel/py-simplejson \
        py*-matplotlib>=0.90.0:${PORTSDIR}/math/py-matplotlib
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PLIST=      ${PKGDIR}/pkg-plist.py-anki
WRKSRC=     ${WRKDIR}/${DISTNAME}/lib${PORTNAME}
.endif

post-patch:
.if !defined(PKGNAMEPREFIX)
    @${REINPLACE_CMD} -e '/req/d' ${WRKSRC}/setup.py
.endif

.include <bsd.port.mk>