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> |