View | Details | Raw Unified | Return to bug 182928
Collapse All | Expand All

(-)tint/Makefile (-37 / +22 lines)
Lines 20-51 Link Here
20
20
21
CMAKE_ARGS=	-DENABLE_BATTERY:BOOL=ON -DMANDIR:PATH=man
21
CMAKE_ARGS=	-DENABLE_BATTERY:BOOL=ON -DMANDIR:PATH=man
22
22
23
PLIST_FILES=	bin/tint2 \
24
		share/tint2/default_icon.png
25
PLIST_DIRS=	share/tint2
26
27
OPTIONS_DEFINE=	PYCONF DOCS EXAMPLES
23
OPTIONS_DEFINE=	PYCONF DOCS EXAMPLES
28
OPTIONS_DEFAULT=	PYCONF
24
OPTIONS_DEFAULT=	PYCONF
29
PYCONF_DESC=	Configuration editing tool (req. python)
25
PYCONF_DESC=	Configuration editing tool (req. python)
30
26
31
MAN1=		tint2.1
27
MAN1=		tint2.1
32
28
33
PORTDOCS=	AUTHORS ChangeLog README
34
35
NO_STAGE=	yes
36
.include <bsd.port.options.mk>
29
.include <bsd.port.options.mk>
37
30
38
.if ${PORT_OPTIONS:MPYCONF}
31
.if ${PORT_OPTIONS:MPYCONF}
39
USE_PYTHON=	yes
32
USE_PYTHON=	yes
40
USE_GNOME=	gtk20 pygtk2
33
USE_GNOME=	gtk20 pygtk2
41
CMAKE_ARGS+=	-DENABLE_TINT2CONF:BOOL=ON
34
CMAKE_ARGS+=	-DENABLE_TINT2CONF:BOOL=ON
42
PLIST_FILES+=	bin/tint2conf bin/tintwizard.py \
43
		share/applications/tint2conf.desktop \
44
		share/pixmaps/tint2conf.png share/pixmaps/tint2conf.svg
45
PLIST_DIRSTRY=	share/applications
46
PYCONF_SRC=	${WRKSRC}/src/tint2conf
35
PYCONF_SRC=	${WRKSRC}/src/tint2conf
36
PLIST_SUB+=	PYCONF=""
47
.else
37
.else
48
CMAKE_ARGS+=	-DENABLE_TINT2CONF:BOOL=OFF
38
CMAKE_ARGS+=	-DENABLE_TINT2CONF:BOOL=OFF
39
PLIST_SUB+=	PYCONF="@comment "
49
.endif
40
.endif
50
41
51
.if ${PORT_OPTIONS:MPYCONF}
42
.if ${PORT_OPTIONS:MPYCONF}
Lines 55-89 Link Here
55
		> ${PYCONF_SRC}/tintwizard.py
46
		> ${PYCONF_SRC}/tintwizard.py
56
.endif
47
.endif
57
48
49
EXAMPLES = icon_and_text_1.tint2rc icon_and_text_2.tint2rc icon_and_text_3.tint2rc icon_and_text_4.tint2rc icon_only_1.tint2rc icon_only_2.tint2rc icon_only_3.tint2rc icon_only_4.tint2rc icon_only_6.tint2rc icon_only_7.tint2rc text_only_1.tint2rc text_only_2.tint2rc text_only_3.tint2rc text_only_4.tint2rc text_only_5.tint2rc text_only_6.tint2rc tint2rc
50
DOCS = AUTHORS ChangeLog README
51
58
do-install:
52
do-install:
59
	@${INSTALL_PROGRAM} ${WRKSRC}/tint2 ${PREFIX}/bin
53
	@${INSTALL_PROGRAM} ${WRKSRC}/tint2 ${STAGEDIR}${PREFIX}/bin
60
	@${MKDIR} ${PREFIX}/share/tint2
54
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/tint2
61
	@${INSTALL_DATA} ${WRKSRC}/default_icon.png ${PREFIX}/share/tint2
55
	@${INSTALL_DATA} ${WRKSRC}/default_icon.png ${STAGEDIR}${PREFIX}/share/tint2
62
	@${INSTALL_MAN} ${WRKSRC}/doc/tint2.1 ${MANPREFIX}/man/man1
56
	@${INSTALL_MAN} ${WRKSRC}/doc/tint2.1 ${MANPREFIX}/man/man1
63
.if ${PORT_OPTIONS:MPYCONF}
57
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
64
	@${INSTALL_PROGRAM} ${PYCONF_SRC}/tint2conf ${PREFIX}/bin
58
	@${MKDIR}  ${STAGEDIR}${EXAMPLESDIR}
65
	@${INSTALL_SCRIPT} ${PYCONF_SRC}/tintwizard.py ${PREFIX}/bin
59
	@for f in ${DOCS}; do \
66
	@${MKDIR} ${PREFIX}/share/applications
60
	${INSTALL_DATA} ${WRKSRC}/$${f} ${STAGEDIR}${DOCSDIR}; \
67
	@${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.desktop ${PREFIX}/share/applications
68
	@${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.png ${PREFIX}/share/pixmaps
69
	@${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.svg ${PREFIX}/share/pixmaps
70
.endif
71
.if ${PORT_OPTIONS:MDOCS}
72
	@${MKDIR} ${DOCSDIR}
73
.for f in ${PORTDOCS}
74
	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
75
.endfor
76
.endif
77
.if ${PORT_OPTIONS:MEXAMPLES}
78
	@${MKDIR} ${EXAMPLESDIR}
79
	@for f in ${RCS}; do \
80
	${INSTALL_DATA} ${WRKSRC}/sample/$${f} ${EXAMPLESDIR}; \
81
	done
61
	done
82
RCS=	icon_and_text_1.tint2rc icon_and_text_2.tint2rc icon_and_text_3.tint2rc icon_and_text_4.tint2rc icon_only_1.tint2rc icon_only_2.tint2rc icon_only_3.tint2rc icon_only_4.tint2rc icon_only_6.tint2rc icon_only_7.tint2rc text_only_1.tint2rc text_only_2.tint2rc text_only_3.tint2rc text_only_4.tint2rc text_only_5.tint2rc text_only_6.tint2rc tint2rc
62
	@for f in ${EXAMPLES}; do \
83
.for f in ${RCS}
63
	${INSTALL_DATA} ${WRKSRC}/sample/$${f} ${STAGEDIR}${EXAMPLESDIR}; \
84
PLIST_FILES+=	${EXAMPLESDIR_REL}/${f}
64
	done
85
.endfor
65
.if ${PORT_OPTIONS:MPYCONF}
86
PLIST_DIRS+=	${EXAMPLESDIR_REL}
66
	@${INSTALL_PROGRAM} ${PYCONF_SRC}/tint2conf ${STAGEDIR}${PREFIX}/bin
67
	@${INSTALL_SCRIPT} ${PYCONF_SRC}/tintwizard.py ${STAGEDIR}${PREFIX}/bin
68
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
69
	@${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.desktop ${STAGEDIR}${PREFIX}/share/applications
70
	@${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.png ${STAGEDIR}${PREFIX}/share/pixmaps
71
	@${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.svg ${STAGEDIR}${PREFIX}/share/pixmaps
87
.endif
72
.endif
88
73
89
.include <bsd.port.mk>
74
.include <bsd.port.mk>
(-)tint/pkg-plist (+31 lines)
Line 0 Link Here
1
bin/tint2
2
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
3
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_and_text_1.tint2rc
6
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_and_text_2.tint2rc
7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_and_text_3.tint2rc
8
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_and_text_4.tint2rc
9
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_only_1.tint2rc
10
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_only_2.tint2rc
11
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_only_3.tint2rc
12
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_only_4.tint2rc
13
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_only_6.tint2rc
14
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icon_only_7.tint2rc
15
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_only_1.tint2rc
16
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_only_2.tint2rc
17
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_only_3.tint2rc
18
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_only_4.tint2rc
19
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_only_5.tint2rc
20
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_only_6.tint2rc
21
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tint2rc
22
%%DATADIR%%/default_icon.png
23
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
24
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
25
@dirrmtry %%DATADIR%%
26
%%PYCONF%%bin/tint2conf
27
%%PYCONF%%bin/tintwizard.py
28
%%PYCONF%%share/applications/tint2conf.desktop
29
%%PYCONF%%share/pixmaps/tint2conf.png
30
%%PYCONF%%share/pixmaps/tint2conf.svg 
31
%%PYCONF%%@dirrmtry share/applications

Return to bug 182928