summaryrefslogtreecommitdiff
path: root/editors/tea/Makefile
blob: c56223cca5b27d40255258628d6170f7c34a50fb (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
# New ports collection makefile for:	TEA
# Date created:				13 Jul 2004
# Whom:					Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=	tea
DISTVERSION=	15.0.1
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	tea-editor

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	A simple and powerful GTK+ text editor

USE_X_PREFIX=	yes
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GCC=	3.3+
USE_GETTEXT=	yes
USE_GNOME=	gtk20
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

OPTIONS=	TEA_ONLY	"Build original GTK-only version"	on \
		ASPELL		"Build with GNU aspell support"		on

.include <bsd.port.pre.mk>

.if defined(WITH_TEA_ONLY)
CONFIGURE_ARGS+=	--enable-legacy
.else
USE_GNOME+=	gtksourceview
.endif

.if defined(WITH_ASPELL)
LIB_DEPENDS+=	aspell:${PORTSDIR}/textproc/aspell
.endif

post-patch: .SILENT
	${REINPLACE_CMD} -e 's|/tea/doc/|/doc/tea/|' \
		${WRKSRC}/src/tea_defs.h
	# Fix FINK-related defines
	${REINPLACE_CMD} -e '5212d; 5215,5218d' ${WRKSRC}/configure
	# Do not install yet another copy of GPL
	${REINPLACE_CMD} -e '627d' ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>