1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/editors/mp/Makefile
Ade Lovett fe279f0df8 Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.
Discussed with:	kris
Approved by:	portmgr (implicit)
2006-03-07 08:28:06 +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.17
PORTREVISION= 1
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)
.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>