Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/editors/mp/Makefile 396249 2015-09-07 07:00:08Z danfe $ |
2 |
# $FreeBSD: head/editors/mp/Makefile 396249 2015-09-07 07:00:08Z danfe $ |
3 |
|
3 |
|
4 |
PORTNAME= mp |
4 |
PORTNAME= mp |
5 |
PORTVERSION= 5.2.9 |
5 |
PORTVERSION= 5.2.10 |
6 |
CATEGORIES= editors |
6 |
CATEGORIES= editors |
7 |
MASTER_SITES= http://triptico.com/download/mp/ |
7 |
MASTER_SITES= http://triptico.com/download/mp/ |
8 |
|
8 |
|
Lines 10-15
Link Here
|
10 |
COMMENT= Programming text editor |
10 |
COMMENT= Programming text editor |
11 |
|
11 |
|
12 |
LICENSE= GPLv2 # (or later) |
12 |
LICENSE= GPLv2 # (or later) |
|
|
13 |
#LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
14 |
|
14 |
USES= iconv ncurses |
15 |
USES= iconv ncurses |
15 |
HAS_CONFIGURE= yes |
16 |
HAS_CONFIGURE= yes |
Lines 18-57
Link Here
|
18 |
|
19 |
|
19 |
DATADIR= ${PREFIX}/share/mp-5 |
20 |
DATADIR= ${PREFIX}/share/mp-5 |
20 |
|
21 |
|
21 |
OPTIONS_DEFINE= NLS PCRE DOCS |
22 |
OPTIONS_DEFINE= DOCS NLS PCRE |
22 |
OPTIONS_RADIO= GUI |
23 |
OPTIONS_RADIO= GUI |
23 |
OPTIONS_RADIO_GUI= GTK3 GTK2 QT4 |
24 |
OPTIONS_RADIO_GUI= GTK2 GTK3 QT4 |
24 |
OPTIONS_DEFAULT= PCRE |
25 |
OPTIONS_DEFAULT= PCRE |
25 |
OPTIONS_SUB= yes |
26 |
OPTIONS_SUB= yes |
26 |
|
27 |
|
27 |
NLS_USES= gettext |
28 |
NLS_USES= gettext |
28 |
NLS_CONFIGURE_WITH= gettext |
29 |
NLS_CONFIGURE_WITH= gettext |
29 |
|
30 |
GTK2_USE= gnome=gtk20 |
|
|
31 |
GTK3_USE= gnome=gtk30 |
30 |
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre |
32 |
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre |
31 |
PCRE_CONFIGURE_WITH= pcre |
33 |
PCRE_CONFIGURE_WITH= pcre |
32 |
|
34 |
QT4_USE= qt4=corelib,gui,moc_build |
33 |
QT4_USE= QT4=corelib,gui,moc_build |
|
|
34 |
QT4_CONFIGURE_ENV= CPP="${CXX}" CCLINK="${CXX}" |
35 |
QT4_CONFIGURE_ENV= CPP="${CXX}" CCLINK="${CXX}" |
35 |
QT4_CONFIGURE_WITH= qt4 |
36 |
QT4_CONFIGURE_WITH= qt4 |
36 |
|
37 |
|
37 |
.include <bsd.port.options.mk> |
38 |
.include <bsd.port.options.mk> |
38 |
|
39 |
|
39 |
.if ${PORT_OPTIONS:MGTK3} |
40 |
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MQT4} |
40 |
USE_GNOME+= gtk30 |
41 |
USES+= pkgconfig |
41 |
CONFOPT_GTK= 3 |
42 |
PLIST_SUB+= GUI="" |
|
|
43 |
.else |
44 |
PLIST_SUB+= GUI="@comment " |
45 |
.endif |
46 |
|
47 |
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} |
48 |
DESKTOP_ENTRIES="Minimum Profit" "" "mp-5" "mp" "Develpment;TextEditor;GTK;" "" |
49 |
.else |
50 |
CONFIGURE_ARGS+= --without-gtk |
51 |
CONFOPT_GTK= 0 |
42 |
.endif |
52 |
.endif |
43 |
|
53 |
|
44 |
.if ${PORT_OPTIONS:MGTK2} |
54 |
.if ${PORT_OPTIONS:MGTK2} |
45 |
USE_GNOME+= gtk20 |
|
|
46 |
CONFOPT_GTK= 2 |
55 |
CONFOPT_GTK= 2 |
47 |
.endif |
56 |
.endif |
48 |
|
57 |
|
49 |
.if empty(PORT_OPTIONS:MGTK3) && empty(PORT_OPTIONS:MGTK2) |
58 |
.if ${PORT_OPTIONS:MGTK3} |
50 |
CONFIGURE_ARGS+= --without-gtk |
59 |
CONFOPT_GTK= 3 |
51 |
CONFOPT_GTK= 0 |
|
|
52 |
.endif |
60 |
.endif |
53 |
|
61 |
|
54 |
.if ${PORT_OPTIONS:MQT4} |
62 |
.if ${PORT_OPTIONS:MQT4} |
|
|
63 |
DESKTOP_ENTRIES="Minimum Profit" "" "mp-5" "mp" "Development;TextEditor;Qt;" "" |
55 |
QT_NONSTANDARD= yes |
64 |
QT_NONSTANDARD= yes |
56 |
.endif |
65 |
.endif |
57 |
|
66 |
|
Lines 60-66
Link Here
|
60 |
's|<ncursesw/|<| ; \ |
69 |
's|<ncursesw/|<| ; \ |
61 |
s|-I/usr/local/include|| ; \ |
70 |
s|-I/usr/local/include|| ; \ |
62 |
s|-L/usr/local/lib|| ; \ |
71 |
s|-L/usr/local/lib|| ; \ |
63 |
s|-lX11|| ; \ |
|
|
64 |
/gtk+/s|3.0|${CONFOPT_GTK}.0| ; \ |
72 |
/gtk+/s|3.0|${CONFOPT_GTK}.0| ; \ |
65 |
/OK/s|3.0|${CONFOPT_GTK}.0| ; \ |
73 |
/OK/s|3.0|${CONFOPT_GTK}.0| ; \ |
66 |
/CONFOPT_GTK/s|3|${CONFOPT_GTK}|' ${WRKSRC}/config.sh |
74 |
/CONFOPT_GTK/s|3|${CONFOPT_GTK}|' ${WRKSRC}/config.sh |
Lines 83-88
Link Here
|
83 |
(cd ${WRKSRC} && ${INSTALL_DATA} mp_*.mpsl ${STAGEDIR}${DATADIR}) |
91 |
(cd ${WRKSRC} && ${INSTALL_DATA} mp_*.mpsl ${STAGEDIR}${DATADIR}) |
84 |
@${MKDIR} ${STAGEDIR}${DATADIR}/lang |
92 |
@${MKDIR} ${STAGEDIR}${DATADIR}/lang |
85 |
(cd ${WRKSRC}/lang && ${INSTALL_DATA} *.mpsl ${STAGEDIR}${DATADIR}/lang) |
93 |
(cd ${WRKSRC}/lang && ${INSTALL_DATA} *.mpsl ${STAGEDIR}${DATADIR}/lang) |
|
|
94 |
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MQT4} |
95 |
(cd ${WRKSRC} && ${INSTALL_DATA} mp.png ${STAGEDIR}${PREFIX}/share/pixmaps) |
96 |
.endif |
86 |
.if ${PORT_OPTIONS:MNLS} |
97 |
.if ${PORT_OPTIONS:MNLS} |
87 |
.for lang in de es it nl ru sv |
98 |
.for lang in de es it nl ru sv |
88 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES |
99 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES |