blob: ae7eb55e21e8fefa03aeb281980503941d5e2629 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# New ports collection makefile for: mp
# Date created: Apr 12, 2001
# Whom: Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#
PORTNAME= mp
PORTVERSION= 5.2.0
CATEGORIES= editors
MASTER_SITES= http://triptico.com/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= A programming text editor
OPTIONS= NLS "Native language support" on \
GTK2 "Build with GTK2 support" off \
QT4 "Build with QT4 support" off \
PCRE "Build with PCRE support" on
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
WANT_GNOME= yes
USE_ICONV= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= config.sh
CONFIGURE_ARGS= --prefix=${PREFIX} --without-win32 --without-kde4
MAN1= mp-5.1
DATADIR= ${PREFIX}/share/mp-5
.include <bsd.port.pre.mk>
.if defined(WITH_GTK2) && defined(WITH_QT4)
IGNORE= GTK2 and QT4 GUIs are mutually exclusive. Please rerun 'make config' and disable one of these
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --without-gettext
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if defined(WITH_GTK2)
USE_GNOME+= gtk20
.else
CONFIGURE_ARGS+= --without-gtk
.endif
.if defined(WITH_QT4)
USE_QT_VER+= 4
QT_COMPONENTS= corelib gui moc_build
QT_NONSTANDARD= yes
CONFIGURE_ENV+= CPP="${CXX}" CCLINK="${CXX}"
.include "${PORTSDIR}/Mk/bsd.qt.mk"
.else
CONFIGURE_ARGS+= --without-qt4
.endif
.if !defined(WITHOUT_PCRE)
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+= --with-pcre
.endif
post-patch:
@${REINPLACE_CMD} -e 's|<ncursesw/|<|g ; \
s|-I/usr/local/include||g ; \
s|-L/usr/local/lib||g ; \
s|-lX11||g' ${WRKSRC}/config.sh
@${REINPLACE_CMD} -e 's|<ncursesw/|<|g' ${WRKSRC}/mpv_curses.c
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/mpdm/config.sh
@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/mpsl/mpsl_d.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mp-5 ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/mpsl/mpsl ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mp-5.1 ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mp_*.mpsl ${DATADIR}
@${MKDIR} ${DATADIR}/lang
${INSTALL_DATA} ${WRKSRC}/lang/*.mpsl ${DATADIR}/lang
.if !defined(WITHOUT_NLS)
.for lang in de es it nl ru sv
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/minimum-profit.mo
.endfor
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS README RELEASE_NOTES mp_templates.sample doc/*.*
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|