| @@ -1,50 +1,51 @@ | | | @@ -1,50 +1,51 @@ |
1 | # $NetBSD: Makefile,v 1.15 2011/04/22 13:45:02 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.16 2011/10/14 12:30:53 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= driconf-0.9.1 | | 4 | DISTNAME= driconf-0.9.1 |
5 | PKGREVISION= 7 | | 5 | PKGREVISION= 8 |
6 | CATEGORIES= x11 | | 6 | CATEGORIES= x11 |
7 | MASTER_SITES= ${MASTER_SITE_LOCAL} | | 7 | MASTER_SITES= ${MASTER_SITE_LOCAL} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://dri.freedesktop.org/wiki/DriConf | | 10 | HOMEPAGE= http://dri.freedesktop.org/wiki/DriConf |
11 | COMMENT= Configuration applet for DRI drivers | | 11 | COMMENT= Configuration applet for DRI drivers |
| | | 12 | LICENSE= gnu-gpl-v2 # or later |
12 | | | 13 | |
13 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 14 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
| | | 15 | DEPENDS+= ${PYPKGPREFIX}-gtk2>=2.4:../../x11/py-gtk2 |
14 | DEPENDS+= xdriinfo>=1.0.2:../../x11/xdriinfo | | 16 | DEPENDS+= xdriinfo>=1.0.2:../../x11/xdriinfo |
15 | | | 17 | |
16 | PKG_DESTDIR_SUPPORT= user-destdir | | 18 | PKG_DESTDIR_SUPPORT= user-destdir |
17 | | | 19 | |
18 | USE_PKGLOCALEDIR= yes | | 20 | USE_PKGLOCALEDIR= yes |
19 | USE_TOOLS+= msgfmt msgmerge xgettext | | 21 | USE_TOOLS+= msgfmt msgmerge xgettext |
20 | | | 22 | |
21 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} | | 23 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} |
22 | PYDISTUTILSPKG= yes | | 24 | PYDISTUTILSPKG= yes |
23 | REPLACE_PYTHON= *.py | | 25 | REPLACE_PYTHON= *.py |
24 | PYTHON_VERSIONS_ACCEPTED= 25 24 | | 26 | PYTHON_VERSIONS_ACCEPTED= 27 26 25 |
25 | | | 27 | |
26 | SUBST_CLASSES+= fix-paths | | 28 | SUBST_CLASSES+= fix-paths |
27 | SUBST_FILES.fix-paths= driconf driconf.desktop | | 29 | SUBST_FILES.fix-paths= driconf driconf.desktop |
28 | SUBST_FILES.fix-paths+= driconf.py driconf_com*ui.py | | 30 | SUBST_FILES.fix-paths+= driconf.py driconf_com*ui.py |
29 | SUBST_FILES.fix-paths+= setup.cfg setup.py | | 31 | SUBST_FILES.fix-paths+= setup.cfg setup.py |
30 | SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames. | | 32 | SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames. |
31 | SUBST_STAGE.fix-paths= pre-configure | | 33 | SUBST_STAGE.fix-paths= pre-configure |
32 | SUBST_VARS.fix-paths= PKGBASE PKGLOCALEDIR PKG_SYSCONFDIR PREFIX PYSITELIB | | 34 | SUBST_VARS.fix-paths= PKGBASE PKGLOCALEDIR PKG_SYSCONFDIR PREFIX PYSITELIB |
33 | ### | | 35 | ### |
34 | ### NOTE: this is only to build the .mo files. | | 36 | ### NOTE: this is only to build the .mo files. |
35 | ### | | 37 | ### |
36 | pre-build: | | 38 | pre-build: |
37 | ${RUN} cd ${WRKSRC} && \ | | 39 | ${RUN} cd ${WRKSRC} && \ |
38 | ${BUILD_MAKE_CMD} all | | 40 | ${BUILD_MAKE_CMD} all |
39 | | | 41 | |
40 | post-install: | | 42 | post-install: |
41 | ${RUN} cd ${WRKSRC} && \ | | 43 | ${RUN} cd ${WRKSRC} && \ |
42 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/applications && \ | | 44 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/applications && \ |
43 | ${INSTALL_DATA} ${WRKSRC}/driconf.desktop \ | | 45 | ${INSTALL_DATA} ${WRKSRC}/driconf.desktop \ |
44 | ${DESTDIR}${PREFIX}/share/applications/ | | 46 | ${DESTDIR}${PREFIX}/share/applications/ |
45 | | | 47 | |
46 | .include "../../lang/python/extension.mk" | | 48 | .include "../../lang/python/extension.mk" |
47 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 49 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
48 | .include "../../x11/py-gtk2/buildlink3.mk" | | | |
49 | | | 50 | |
50 | .include "../../mk/bsd.pkg.mk" | | 51 | .include "../../mk/bsd.pkg.mk" |