1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/editors/mp/Makefile
Andrej Zverev d51a0b9c5b - Update to 3.3.16
- Grab maintainership (maintainer timeout > 1 month)
- Implement OPTIONS

PR:		ports/83910
Submitted by:	Andrej Zverev
2005-11-17 08:05:28 +00:00

74 lines
1.5 KiB
Makefile

# New ports collection makefile for: mp
# Date created: Apr 12, 2001
# Whom: Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#
PORTNAME= mp
PORTVERSION= 3.3.16
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
USE_REINPLACE= yes
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)
.if ${OSVERSION} < 400010
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.endif
.else
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>