Initial import of p5-Clipboard-0.09:
[pkgsrc.git] / x11 / driconf / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=       driconf-0.9.1
5 CATEGORIES=     x11
6 MASTER_SITES=   ${MASTER_SITE_LOCAL}
7
8 MAINTAINER=     bjs@NetBSD.org
9 HOMEPAGE=       http://dri.freedesktop.org/wiki/DriConf
10 COMMENT=        Configuration applet for DRI drivers
11
12 PKG_DESTDIR_SUPPORT=    user-destdir
13
14 DEPENDS+=       xdriinfo>=1.0.2:../../x11/xdriinfo
15
16 USE_DIRS+=      xdg-1.4
17 USE_TOOLS+=     msgfmt msgmerge xgettext
18
19 CONFIGURE_ARGS+=        --prefix=${PREFIX:Q}
20 PYDISTUTILSPKG=         yes
21 REPLACE_PYTHON=         *.py
22 PYTHON_VERSIONS_INCOMPATIBLE=   15 21
23
24 SUBST_CLASSES+=         fix-paths
25 SUBST_FILES.fix-paths=  driconf driconf.desktop
26 SUBST_FILES.fix-paths+= driconf.py driconf_com*ui.py
27 SUBST_FILES.fix-paths+= setup.cfg setup.py
28 SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames.
29 SUBST_STAGE.fix-paths=  pre-configure
30 SUBST_VARS.fix-paths=   PKGBASE PKGLOCALEDIR PKG_SYSCONFDIR PREFIX PYSITELIB
31
32 pre-build:
33         ${RUN} cd ${WRKSRC} && \
34         ${BUILD_MAKE_CMD} all
35
36 #post-install:
37         ${RUN} cd ${WRKSRC} && \
38         ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/applications && \
39         ${INSTALL_DATA} ${WRKSRC}/driconf.desktop \
40                 ${DESTDIR}${PREFIX}/share/applications/
41
42 .include "../../lang/python/extension.mk"
43 #.include "../../textproc/py-xml/buildlink3.mk"
44 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
45 .include "../../x11/py-gtk2/buildlink3.mk"
46
47 .include "../../mk/bsd.pkg.mk"