| @@ -1,68 +1,68 @@ | | | @@ -1,68 +1,68 @@ |
1 | # $NetBSD: Makefile,v 1.14 2013/11/13 19:48:34 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.15 2013/11/18 19:46:14 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= anki-2.0.17 | | 3 | DISTNAME= anki-2.0.18 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:C/anki/anki2/} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:C/anki/anki2/} |
5 | CATEGORIES= misc x11 | | 5 | CATEGORIES= misc x11 |
6 | MASTER_SITES= http://ankisrs.net/download/mirror/ | | 6 | MASTER_SITES= http://ankisrs.net/download/mirror/ |
7 | EXTRACT_SUFX= .tgz | | 7 | EXTRACT_SUFX= .tgz |
8 | | | 8 | |
9 | MAINTAINER= wiz@NetBSD.org | | 9 | MAINTAINER= wiz@NetBSD.org |
10 | HOMEPAGE= http://ankisrs.net/ | | 10 | HOMEPAGE= http://ankisrs.net/ |
11 | COMMENT= Flashcard learning program (v2) | | 11 | COMMENT= Flashcard learning program (v2) |
12 | LICENSE= gnu-gpl-v3 | | 12 | LICENSE= gnu-gpl-v3 |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-qt4>=4.4:../../x11/py-qt4 | | 14 | DEPENDS+= ${PYPKGPREFIX}-qt4>=4.4:../../x11/py-qt4 |
15 | DEPENDS+= lame-[0-9]*:../../audio/lame | | 15 | DEPENDS+= lame-[0-9]*:../../audio/lame |
16 | DEPENDS+= mplayer-[0-9]*:../../multimedia/mplayer | | 16 | DEPENDS+= mplayer-[0-9]*:../../multimedia/mplayer |
17 | DEPENDS+= portaudio-devel-[0-9]*:../../audio/portaudio-devel | | 17 | DEPENDS+= portaudio-devel-[0-9]*:../../audio/portaudio-devel |
18 | # Actually, these hurt more than they help. | | 18 | # Actually, these hurt more than they help. |
19 | # anki comes with its own version of the two, and if the pkgsrc versions | | 19 | # anki comes with its own version of the two, and if the pkgsrc versions |
20 | # are newer, it might break | | 20 | # are newer, it might break |
21 | #DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.2:../../www/py-beautifulsoup | | 21 | #DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.2:../../www/py-beautifulsoup |
22 | #DEPENDS+= ${PYPKGPREFIX}-httplib2-[0-9]*:../../www/py-httplib2 | | 22 | #DEPENDS+= ${PYPKGPREFIX}-httplib2-[0-9]*:../../www/py-httplib2 |
23 | # XXX: python portaudio | | 23 | # XXX: python portaudio |
24 | | | 24 | |
25 | USE_PKGLOCALEDIR= yes | | 25 | USE_PKGLOCALEDIR= yes |
26 | USE_LANGUAGES= # none | | 26 | USE_LANGUAGES= # none |
27 | CONFLICTS+= ${PYPKGPREFIX}-libanki-[0-9]* ${PYPKGPREFIXP}-anki-[0-9]* | | 27 | CONFLICTS+= ${PYPKGPREFIX}-libanki-[0-9]* ${PYPKGPREFIXP}-anki-[0-9]* |
28 | | | 28 | |
29 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/pixmaps share/applications | | 29 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/pixmaps share/applications |
30 | | | 30 | |
31 | REPLACE_PYTHON= anki/anki runanki | | 31 | REPLACE_PYTHON= anki/anki runanki |
32 | | | 32 | |
33 | USE_TOOLS+= bash:run | | 33 | USE_TOOLS+= bash:run |
34 | | | 34 | |
35 | REPLACE_BASH= tools/tests.sh tools/build_ui.sh | | 35 | REPLACE_BASH= tools/tests.sh tools/build_ui.sh |
36 | | | 36 | |
37 | SUBST_CLASSES+= inst | | 37 | SUBST_CLASSES+= inst |
38 | SUBST_SED.inst+= -e 's,/usr/share/anki,${PREFIX}/share/anki,' | | 38 | SUBST_SED.inst+= -e 's,/usr/share/anki,${PREFIX}/share/anki,' |
39 | SUBST_FILES.inst+= anki/anki runanki | | 39 | SUBST_FILES.inst+= anki/anki runanki |
40 | SUBST_STAGE.inst= pre-build | | 40 | SUBST_STAGE.inst= pre-build |
41 | SUBST_MESSAGE.inst= Fixing installation path. | | 41 | SUBST_MESSAGE.inst= Fixing installation path. |
42 | | | 42 | |
43 | SUBST_CLASSES+= lame | | 43 | SUBST_CLASSES+= lame |
44 | SUBST_SED.lame+= -e 's,/usr/local,${PREFIX},' | | 44 | SUBST_SED.lame+= -e 's,/usr/local,${PREFIX},' |
45 | SUBST_FILES.lame+= anki/sound.py | | 45 | SUBST_FILES.lame+= anki/sound.py |
46 | SUBST_STAGE.lame= pre-build | | 46 | SUBST_STAGE.lame= pre-build |
47 | SUBST_MESSAGE.lame= Fixing path to lame. | | 47 | SUBST_MESSAGE.lame= Fixing path to lame. |
48 | | | 48 | |
49 | SUBST_CLASSES+= man | | 49 | SUBST_CLASSES+= man |
50 | SUBST_SED.man+= -e 's,share/man/man1,${PKGMANDIR}/man1,' | | 50 | SUBST_SED.man+= -e 's,share/man/man1,${PKGMANDIR}/man1,' |
51 | SUBST_FILES.man+= Makefile | | 51 | SUBST_FILES.man+= Makefile |
52 | SUBST_STAGE.man= pre-build | | 52 | SUBST_STAGE.man= pre-build |
53 | SUBST_MESSAGE.man= Fixing path to man page directory. | | 53 | SUBST_MESSAGE.man= Fixing path to man page directory. |
54 | | | 54 | |
55 | MAKE_FLAGS+= PREFIX=${PREFIX} DESTDIR=${DESTDIR} | | 55 | MAKE_FLAGS+= PREFIX=${PREFIX} DESTDIR=${DESTDIR} |
56 | | | 56 | |
57 | post-extract: | | 57 | post-extract: |
58 | ${RM} -rf ${WRKSRC}/libanki/thirdparty | | 58 | ${RM} -rf ${WRKSRC}/libanki/thirdparty |
59 | | | 59 | |
60 | # first due to patch-Makefile | | 60 | # first due to patch-Makefile |
61 | # second: linux shared libraries won't help in the general case | | 61 | # second: linux shared libraries won't help in the general case |
62 | post-install: | | 62 | post-install: |
63 | rm ${DESTDIR}${PREFIX}/share/anki/Makefile.orig | | 63 | rm ${DESTDIR}${PREFIX}/share/anki/Makefile.orig |
64 | rm ${DESTDIR}${PREFIX}/share/anki/thirdparty/py*/_portaudio.so | | 64 | rm ${DESTDIR}${PREFIX}/share/anki/thirdparty/py*/_portaudio.so |
65 | | | 65 | |
66 | .include "../../lang/python/application.mk" | | 66 | .include "../../lang/python/application.mk" |
67 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 67 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
68 | .include "../../mk/bsd.pkg.mk" | | 68 | .include "../../mk/bsd.pkg.mk" |