summaryrefslogtreecommitdiff
path: root/editors/mp/Makefile
blob: 68392de7c198e7570e77056bcb618a12c5d814a5 (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
# New ports collection makefile for:	mp
# Date created:			Apr 12, 2001
# Whom:				Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#

PORTNAME=	mp
PORTVERSION=	3.3.18b
CATEGORIES=	editors
MASTER_SITES=	http://www.triptico.com/download/

MAINTAINER=	az@FreeBSD.org
COMMENT=	A programming text editor

HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	config.sh
CONFIGURE_ARGS=	--prefix=${PREFIX} --without-win32

OPTIONS=	CURSES	"Build with ncurses support"	on \
		NLS	"Native language support"	on \
		GTK1	"Build with GTK1 support"	off \
		GTK2	"Build with GTK2 support"	off \
		PCRE	"Build with PCRE support"	on

MAN1=	mp.1

.include <bsd.port.pre.mk>

.if !defined(WITH_CURSES)
CONFIGURE_ARGS+=	--without-curses
.endif

.if defined(WITH_GTK1) || defined(WITH_GTK2)
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
.if defined(WITH_GTK1) && !defined(WITH_GTK2)
USE_GNOME+=	gtk12
.else
CONFIGURE_ARGS+=	--without-gtk1
.endif

.if defined(WITH_GTK2)
USE_GNOME+=	gtk20
.else
CONFIGURE_ARGS+=	--without-gtk2
.endif
.else
CONFIGURE_ARGS+=	--without-gtk
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--without-gettext
PLIST_SUB+=	NLS="@comment "
.endif

.if defined(WITH_PCRE)
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
.else
CONFIGURE_ARGS+=	--without-pcre
.endif

pre-configure:
	@${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/makefile.in

.include <bsd.port.post.mk>