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

(-)editors/mp/Makefile (-29 / +59 lines)
Lines 6-69 Link Here
6
#
6
#
7
7
8
PORTNAME=	mp
8
PORTNAME=	mp
9
PORTVERSION=	3.3.18b
9
PORTVERSION=	5.1.4
10
PORTREVISION=	2
11
CATEGORIES=	editors
10
CATEGORIES=	editors
12
MASTER_SITES=	http://triptico.com/download/
11
MASTER_SITES=	http://triptico.com/download/
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	A programming text editor
14
COMMENT=	A programming text editor
16
15
16
OPTIONS=	NLS	"Native language support"	on \
17
		GTK2	"Build with GTK2 support"	off \
18
		QT4	"Build with QT4 support"	off \
19
		PCRE	"Build with PCRE support"	on
20
21
LICENSE=	GPLv2 GPLv3
22
LICENSE_COMB=	dual
23
24
WANT_GNOME=	yes
25
USE_ICONV=	yes
17
HAS_CONFIGURE=	yes
26
HAS_CONFIGURE=	yes
18
CONFIGURE_SCRIPT=	config.sh
27
CONFIGURE_SCRIPT=	config.sh
19
CONFIGURE_ARGS=	--prefix=${PREFIX} --without-win32
28
CONFIGURE_ARGS=	--prefix=${PREFIX} --without-win32 --without-kde4
20
29
21
OPTIONS=	CURSES	"Build with ncurses support"	on \
30
MAN1=		mp-5.1
22
		NLS	"Native language support"	on \
23
		GTK1	"Build with GTK1 support"	off \
24
		GTK2	"Build with GTK2 support"	off \
25
		PCRE	"Build with PCRE support"	on
26
31
27
MAN1=	mp.1
32
DATADIR=	${PREFIX}/share/mp-5
28
33
29
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
30
35
31
.if !defined(WITH_CURSES)
36
.if defined(WITH_GTK2) && defined(WITH_QT4)
32
CONFIGURE_ARGS+=	--without-curses
37
IGNORE=		GTK2 and QT4 GUIs are mutually exclusive. Please rerun 'make config' and disable one of these
33
.endif
38
.endif
34
39
35
.if defined(WITH_GTK1) || defined(WITH_GTK2)
40
.if defined(WITHOUT_NLS)
36
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
41
CONFIGURE_ARGS+=        --without-gettext
37
.if defined(WITH_GTK1) && !defined(WITH_GTK2)
42
PLIST_SUB+=     NLS="@comment "
38
USE_GNOME+=	gtk12
39
.else
43
.else
40
CONFIGURE_ARGS+=	--without-gtk1
44
USE_GETTEXT=    yes
45
PLIST_SUB+=     NLS=""
41
.endif
46
.endif
42
47
43
.if defined(WITH_GTK2)
48
.if defined(WITH_GTK2)
44
USE_GNOME+=	gtk20
49
USE_GNOME+=	gtk20
45
.else
50
.else
46
CONFIGURE_ARGS+=	--without-gtk2
47
.endif
48
.else
49
CONFIGURE_ARGS+=	--without-gtk
51
CONFIGURE_ARGS+=	--without-gtk
50
.endif
52
.endif
51
53
52
.if !defined(WITHOUT_NLS)
54
.if defined(WITH_QT4)
53
USE_GETTEXT=	yes
55
USE_QT_VER+=	4
54
PLIST_SUB+=	NLS=""
56
QT_COMPONENTS=	corelib gui moc_build
57
QT_NONSTANDARD=	yes
58
CONFIGURE_ENV+=	CPP="${CXX}" CCLINK="${CXX}"
59
.include "${PORTSDIR}/Mk/bsd.qt.mk"
55
.else
60
.else
56
CONFIGURE_ARGS+=	--without-gettext
61
CONFIGURE_ARGS+=	--without-qt4
57
PLIST_SUB+=	NLS="@comment "
58
.endif
62
.endif
59
63
60
.if defined(WITH_PCRE)
64
.if !defined(WITHOUT_PCRE)
61
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
65
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
62
.else
66
CONFIGURE_ARGS+=	--with-pcre
63
CONFIGURE_ARGS+=	--without-pcre
64
.endif
67
.endif
65
68
66
pre-configure:
69
post-patch:
67
	@${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/makefile.in
70
	@${REINPLACE_CMD} -e 's|<ncursesw/|<|g ; \
71
		 s|-I/usr/local/include||g ; \
72
		 s|-L/usr/local/lib||g' ${WRKSRC}/config.sh 
73
	@${REINPLACE_CMD} -e 's|<ncursesw/|<|g' ${WRKSRC}/mpv_curses.c
74
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/mpdm/config.sh
75
	@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/mpsl/mpsl_d.c
76
77
do-install:
78
	${INSTALL_PROGRAM} ${WRKSRC}/mp-5 ${PREFIX}/bin
79
	${INSTALL_PROGRAM} ${WRKSRC}/mpsl/mpsl ${PREFIX}/bin
80
	${INSTALL_MAN} ${WRKSRC}/mp-5.1 ${MANPREFIX}/man/man1
81
	@${MKDIR} ${DATADIR}
82
	${INSTALL_DATA} ${WRKSRC}/mp_*.mpsl ${DATADIR}
83
	@${MKDIR} ${DATADIR}/lang
84
	${INSTALL_DATA} ${WRKSRC}/lang/*.mpsl ${DATADIR}/lang
85
.if !defined(WITHOUT_NLS)
86
.for lang in de es it nl ru sv
87
	@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
88
	${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
89
		${PREFIX}/share/locale/${lang}/LC_MESSAGES/minimum-profit.mo
90
.endfor
91
.endif
92
.if !defined(NOPORTDOCS)
93
	@${MKDIR} ${DOCSDIR}
94
.for file in AUTHORS README RELEASE_NOTES mp_templates.sample doc/*.*
95
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
96
.endfor
97
.endif
68
98
69
.include <bsd.port.post.mk>
99
.include <bsd.port.post.mk>
(-)editors/mp/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mp-3.3.18b.tar.gz) = dabe00cbe8f0cb18a42c46242659265507b73c6862030dd63a22ed26738f9649
1
SHA256 (mp-5.1.4.tar.gz) = 7744ba8ead9e284aa548420e9a1bbfa6fc5cd7248d2fdfb309ded83f3f641d07
2
SIZE (mp-3.3.18b.tar.gz) = 295661
2
SIZE (mp-5.1.4.tar.gz) = 485831
(-)editors/mp/files/patch-config.sh (-21 lines)
Lines 1-21 Link Here
1
--- config.sh.orig	Wed Feb 23 21:23:18 2005
2
+++ config.sh	Thu Jul 21 18:18:59 2005
3
@@ -320,14 +320,16 @@
4
 		echo "#define CONFOPT_GETTEXT 1" >> config.h
5
 	else
6
 		# try now with -lintl
7
-		TMP_LDFLAGS="-lintl"
8
+		TMP_LDFLAGS="-L/usr/local/lib -lintl"
9
+		TMP_CFLAGS="-I/usr/local/include"
10
 
11
-		$CC .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
12
+		$CC $TMP_CFLAGS .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
13
 
14
 		if [ $? = 0 ] ; then
15
 			echo "OK (libintl needed)"
16
 			echo "#define CONFOPT_GETTEXT 1" >> config.h
17
 			echo "$TMP_LDFLAGS" >> config.ldflags
18
+			echo "$TMP_CFLAGS" >> config.cflags
19
 		else
20
 			echo "No"
21
 			WITHOUT_GETTEXT=1
(-)editors/mp/files/patch-mpdn__config.sh (+38 lines)
Line 0 Link Here
1
--- mpdm/config.sh.orig	2009-11-05 17:18:27.000000000 +0900
2
+++ mpdm/config.sh	2011-03-19 08:40:21.000000000 +0900
3
@@ -309,13 +309,15 @@
4
 		echo "#define CONFOPT_GETTEXT 1" >> config.h
5
 	else
6
 		# try now with -lintl
7
-		TMP_LDFLAGS="-lintl"
8
+		TMP_CFLAGS="-I%%LOCALBASE%%/include"
9
+		TMP_LDFLAGS="-L%%LOCALBASE%%/lib -lintl"
10
 
11
-		$CC .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
12
+		$CC $TMP_CFLAGS .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
13
 
14
 		if [ $? = 0 ] ; then
15
 			echo "OK (libintl needed)"
16
 			echo "#define CONFOPT_GETTEXT 1" >> config.h
17
+			echo "$TMP_CFLAGS" >> config.cflags
18
 			echo "$TMP_LDFLAGS" >> config.ldflags
19
 		else
20
 			echo "No"
21
@@ -342,13 +344,15 @@
22
 		echo "#define CONFOPT_ICONV 1" >> config.h
23
 	else
24
 		# try now with -liconv
25
-		TMP_LDFLAGS="-liconv"
26
+		TMP_CFLAGS="-I%%LOCALBASE%%/include -liconv"
27
+		TMP_LDFLAGS="-L%%LOCALBASE%%/lib -liconv"
28
 
29
-		$CC .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
30
+		$CC $TMP_CFLAGS .tmp.c $TMP_LDFLAGS -o .tmp.o 2>> .config.log
31
 
32
 		if [ $? = 0 ] ; then
33
 			echo "OK (libiconv needed)"
34
 			echo "#define CONFOPT_ICONV 1" >> config.h
35
+			echo "$TMP_CFLAGS" >> config.cflags
36
 			echo "$TMP_LDFLAGS" >> config.ldflags
37
 		else
38
 			echo "No"
(-)editors/mp/pkg-plist (-14 / +60 lines)
Lines 1-19 Link Here
1
bin/mp
1
bin/mp-5
2
%%DOCSDIR%%/AUTHORS
2
bin/mpsl
3
%%DOCSDIR%%/COPYING
3
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
4
%%DOCSDIR%%/Changelog
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%DOCSDIR%%/README
5
%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
6
%%DOCSDIR%%/README.IRIX
6
%%PORTDOCS%%%%DOCSDIR%%/mp_actions.html
7
%%DOCSDIR%%/README.mingw32
7
%%PORTDOCS%%%%DOCSDIR%%/mp_actions.txt
8
%%DOCSDIR%%/README.solaris
8
%%PORTDOCS%%%%DOCSDIR%%/mp_api.html
9
%%DOCSDIR%%/README.zaurus
9
%%PORTDOCS%%%%DOCSDIR%%/mp_api.txt
10
%%DOCSDIR%%/RELEASE_NOTES
10
%%PORTDOCS%%%%DOCSDIR%%/mp_configuration.html
11
%%DOCSDIR%%/mprc-win32.sample
11
%%PORTDOCS%%%%DOCSDIR%%/mp_configuration.txt
12
%%DOCSDIR%%/mprc.sample
12
%%PORTDOCS%%%%DOCSDIR%%/mp_cookbook.html
13
%%PORTDOCS%%%%DOCSDIR%%/mp_cookbook.txt
14
%%PORTDOCS%%%%DOCSDIR%%/mp_data_model.html
15
%%PORTDOCS%%%%DOCSDIR%%/mp_data_model.txt
16
%%PORTDOCS%%%%DOCSDIR%%/mp_encoding.html
17
%%PORTDOCS%%%%DOCSDIR%%/mp_encoding.txt
18
%%PORTDOCS%%%%DOCSDIR%%/mp_function_reference.html
19
%%PORTDOCS%%%%DOCSDIR%%/mp_function_reference.rhtml
20
%%PORTDOCS%%%%DOCSDIR%%/mp_index.html
21
%%PORTDOCS%%%%DOCSDIR%%/mp_index.txt
22
%%PORTDOCS%%%%DOCSDIR%%/mp_interactive_dialog_boxes.html
23
%%PORTDOCS%%%%DOCSDIR%%/mp_interactive_dialog_boxes.txt
24
%%PORTDOCS%%%%DOCSDIR%%/mp_internals.html
25
%%PORTDOCS%%%%DOCSDIR%%/mp_internals.txt
26
%%PORTDOCS%%%%DOCSDIR%%/mp_keycodes.html
27
%%PORTDOCS%%%%DOCSDIR%%/mp_keycodes.txt
28
%%PORTDOCS%%%%DOCSDIR%%/mp_man.html
29
%%PORTDOCS%%%%DOCSDIR%%/mp_man.txt
30
%%PORTDOCS%%%%DOCSDIR%%/mp_templates.sample
13
%%NLS%%share/locale/de/LC_MESSAGES/minimum-profit.mo
31
%%NLS%%share/locale/de/LC_MESSAGES/minimum-profit.mo
14
%%NLS%%share/locale/es/LC_MESSAGES/minimum-profit.mo
32
%%NLS%%share/locale/es/LC_MESSAGES/minimum-profit.mo
15
%%NLS%%share/locale/it/LC_MESSAGES/minimum-profit.mo
33
%%NLS%%share/locale/it/LC_MESSAGES/minimum-profit.mo
16
%%NLS%%share/locale/nl/LC_MESSAGES/minimum-profit.mo
34
%%NLS%%share/locale/nl/LC_MESSAGES/minimum-profit.mo
17
%%NLS%%share/locale/sv/LC_MESSAGES/minimum-profit.mo
18
%%NLS%%share/locale/ru/LC_MESSAGES/minimum-profit.mo
35
%%NLS%%share/locale/ru/LC_MESSAGES/minimum-profit.mo
19
@dirrm %%DOCSDIR%%
36
%%NLS%%share/locale/sv/LC_MESSAGES/minimum-profit.mo
37
%%DATADIR%%/lang/de.mpsl
38
%%DATADIR%%/lang/es.mpsl
39
%%DATADIR%%/lang/it.mpsl
40
%%DATADIR%%/lang/nl.mpsl
41
%%DATADIR%%/lang/ru.mpsl
42
%%DATADIR%%/lang/sv.mpsl
43
%%DATADIR%%/mp_build.mpsl
44
%%DATADIR%%/mp_clipboard.mpsl
45
%%DATADIR%%/mp_core.mpsl
46
%%DATADIR%%/mp_crypt.mpsl
47
%%DATADIR%%/mp_drv.mpsl
48
%%DATADIR%%/mp_edit.mpsl
49
%%DATADIR%%/mp_file.mpsl
50
%%DATADIR%%/mp_keyseq.mpsl
51
%%DATADIR%%/mp_macro.mpsl
52
%%DATADIR%%/mp_misc.mpsl
53
%%DATADIR%%/mp_move.mpsl
54
%%DATADIR%%/mp_search.mpsl
55
%%DATADIR%%/mp_session.mpsl
56
%%DATADIR%%/mp_spell.mpsl
57
%%DATADIR%%/mp_syntax.mpsl
58
%%DATADIR%%/mp_tags.mpsl
59
%%DATADIR%%/mp_templates.mpsl
60
%%DATADIR%%/mp_toys.mpsl
61
%%DATADIR%%/mp_tui.mpsl
62
%%DATADIR%%/mp_writing.mpsl
63
@dirrm %%DATADIR%%/lang
64
@dirrm %%DATADIR%%
65
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 155809