Tweak x11/tint version 0.11_2
[dports.git] / x11 / tint / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       tint2
4 PORTVERSION=    0.11
5 PORTREVISION=   2
6 CATEGORIES=     x11
7 MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
8
9 MAINTAINER=     yamagi@yamagi.org
10 COMMENT=        Lightweight freedesktop-compliant panel/taskbar/systray/clock
11
12 LIB_DEPENDS=    libcairo.so:${PORTSDIR}/graphics/cairo
13
14 PROJECTHOST=    tint2
15 USES=           cmake pkgconfig tar:bzip2
16 USE_GNOME=      pango glib20
17 USE_XORG=       xinerama xrandr xdamage xcomposite
18 USE_EFL=        imlib2
19
20 CMAKE_ARGS=     -DENABLE_BATTERY:BOOL=ON -DMANDIR:PATH=man
21
22 OPTIONS_DEFINE= PYCONF DOCS EXAMPLES
23 OPTIONS_DEFAULT=        PYCONF
24 OPTIONS_SUB=    yes
25 PYCONF_DESC=    Configuration editing tool (req. python)
26
27 EXAMPLES=       icon_and_text_1.tint2rc icon_and_text_2.tint2rc \
28                 icon_and_text_3.tint2rc icon_and_text_4.tint2rc \
29                 icon_only_1.tint2rc icon_only_2.tint2rc icon_only_3.tint2rc \
30                 icon_only_4.tint2rc icon_only_6.tint2rc icon_only_7.tint2rc \
31                 text_only_1.tint2rc text_only_2.tint2rc text_only_3.tint2rc \
32                 text_only_4.tint2rc text_only_5.tint2rc text_only_6.tint2rc tint2rc
33 DOCS=           AUTHORS ChangeLog README
34
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MPYCONF}
38 USES+=          python
39 USE_GNOME=      gtk20 pygtk2
40 CMAKE_ARGS+=    -DENABLE_TINT2CONF:BOOL=ON
41 PYCONF_SRC=     ${WRKSRC}/src/tint2conf
42 .else
43 CMAKE_ARGS+=    -DENABLE_TINT2CONF:BOOL=OFF
44 .endif
45
46 .if ${PORT_OPTIONS:MPYCONF}
47 post-patch:
48         @${MV} ${PYCONF_SRC}/tintwizard.py ${PYCONF_SRC}/tintwizard.py.Dist
49         @${SED} -e 's#pidof#pgrep#g' ${PYCONF_SRC}/tintwizard.py.Dist \
50                 > ${PYCONF_SRC}/tintwizard.py
51 .endif
52
53 do-install:
54         ${INSTALL_PROGRAM} ${WRKSRC}/tint2 ${STAGEDIR}${PREFIX}/bin
55         ${MKDIR} ${STAGEDIR}${PREFIX}/share/tint2
56         ${INSTALL_DATA} ${WRKSRC}/default_icon.png ${STAGEDIR}${PREFIX}/share/tint2
57         ${INSTALL_MAN} ${WRKSRC}/doc/tint2.1 ${STAGEDIR}${MANPREFIX}/man/man1
58         ${MKDIR} ${STAGEDIR}${DOCSDIR}
59         ${MKDIR}  ${STAGEDIR}${EXAMPLESDIR}
60         cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
61         cd ${WRKSRC}/sample; ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
62 .if ${PORT_OPTIONS:MPYCONF}
63         ${INSTALL_PROGRAM} ${PYCONF_SRC}/tint2conf ${STAGEDIR}${PREFIX}/bin
64         ${INSTALL_SCRIPT} ${PYCONF_SRC}/tintwizard.py ${STAGEDIR}${PREFIX}/bin
65         ${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.desktop ${STAGEDIR}${PREFIX}/share/applications
66         ${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.png ${STAGEDIR}${PREFIX}/share/pixmaps
67         ${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.svg ${STAGEDIR}${PREFIX}/share/pixmaps
68 .endif
69
70 .include <bsd.port.mk>