7 MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
9 MAINTAINER= yamagi@yamagi.org
10 COMMENT= Lightweight freedesktop-compliant panel/taskbar/systray/clock
12 LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo
15 USES= cmake pkgconfig tar:bzip2
16 USE_GNOME= pango glib20
17 USE_XORG= xinerama xrandr xdamage xcomposite
20 CMAKE_ARGS= -DENABLE_BATTERY:BOOL=ON -DMANDIR:PATH=man
22 OPTIONS_DEFINE= PYCONF DOCS EXAMPLES
23 OPTIONS_DEFAULT= PYCONF
25 PYCONF_DESC= Configuration editing tool (req. python)
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
35 .include <bsd.port.options.mk>
37 .if ${PORT_OPTIONS:MPYCONF}
39 USE_GNOME= gtk20 pygtk2
40 CMAKE_ARGS+= -DENABLE_TINT2CONF:BOOL=ON
41 PYCONF_SRC= ${WRKSRC}/src/tint2conf
43 CMAKE_ARGS+= -DENABLE_TINT2CONF:BOOL=OFF
46 .if ${PORT_OPTIONS:MPYCONF}
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
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
70 .include <bsd.port.mk>