1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/editors/medit/Makefile
Mark Linimon efc62e6bcd Adjust USES to fix builds on gcc-based architectures.
While here, pet portlint.

Tested for no regression on amd64.

Approved by:	portmgr (tier-2 blanket)
2018-06-18 19:03:03 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= medit
PORTVERSION= 1.2.92
CATEGORIES= editors
MASTER_SITES= SF/mooedit/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX= -editor
DISTNAME= ${PORTNAME}-${PORTVERSION}-devel
MAINTAINER= danfe@FreeBSD.org
COMMENT= Programming and around-programming text editor
LICENSE= LGPL21
USES= compiler:c++11-lang gmake localbase pkgconfig tar:bzip2
GNU_CONFIGURE= yes
USE_GNOME= gtk20
INSTALLS_ICONS= yes
DATADIR= ${PREFIX}/share/${PORTNAME}-1
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-1
PORTDOCS= *
OPTIONS_DEFINE= DOCS NLS PYTHON
OPTIONS_SUB= yes
NLS_USES= gettext-tools
NLS_USE= GNOME=intltool
NLS_CONFIGURE_OFF= --disable-nls
PYTHON_USE= GNOME=pygtk2
PYTHON_CONFIGURE_OFF= --without-python
post-patch:
@${REINPLACE_CMD} -e '/append_12 = -ldl/d' ${WRKSRC}/moo/Makefile.in
@${REINPLACE_CMD} -e '/std::nullptr_t/ { x ; \
s/.*/#include <cstddef>/ ; G ; }' \
${WRKSRC}/moo/moopython/moopython-utils.h
@${REINPLACE_CMD} -e 's/long val = strtol/errno = 0; &/' \
${WRKSRC}/moo/mooutils/mooglade.c
.include <bsd.port.mk>