summaryrefslogtreecommitdiff
path: root/x11/mlterm/Makefile
blob: ae700a075792fb7e4d8e6defbf7382aa76a61131 (plain)
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
# $NetBSD: Makefile,v 1.16 2003/07/17 22:56:36 grant Exp $

DISTNAME=	mlterm-2.7.0
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=mlterm/}

MAINTAINER=	uebayasi@NetBSD.org
HOMEPAGE=	http://mlterm.sourceforge.net/
COMMENT=	Multilingual terminal emulator

# CODESET is only supported on NetBSD in 1.5T and later - see <langinfo.h>
ONLY_FOR_PLATFORM=	NetBSD-1.5[T-Z]-* NetBSD-1.5Z[A-Z]-* NetBSD-1.[6-9]*

USE_BUILDLINK2=		yes
USE_X11=		yes

USE_LIBTOOL=		yes
USE_GMAKE=		yes
LIBTOOL_OVERRIDE+=	${WRKSRC}/mkf/autoconf/libtool
LIBTOOL_OVERRIDE+=	${WRKSRC}/autoconf/libtool
LIBTOOL_OVERRIDE+=	${WRKSRC}/kiklib/autoconf/libtool

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-imagelib=imlib
.if exists(${X11BASE}/lib/libXft.a)
CONFIGURE_ARGS+=	--enable-anti-alias
.endif
CONFIGURE_ARGS+=	--without-libiconv-prefix

post-patch:
	@${FIND} ${WRKSRC} -name Makefile.in | \
	while read f; do \
		${MV} $$f $${f}.orig; \
		${SED} \
		    -e 's|\(-[IL]\)/usr/local|\1${BUILDLINK_DIR}|g' \
		    -e 's|\(-[IL]\)/usr/X11R6|\1${BUILDLINK_X11_DIR}|g' \
		    -e 's|\(-[R]\)/usr/local[^[:space:]][^[:space:]]*||g' \
		    $${f}.orig > $$f; \
	done

.include "../../converters/libiconv/buildlink2.mk"
.include "../../devel/glib/buildlink2.mk"
.include "../../fonts/fontconfig/buildlink2.mk"
.include "../../graphics/imlib/buildlink2.mk"
.include "../../x11/gtk/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"