summaryrefslogtreecommitdiff
path: root/devel/gtkmozedit/Makefile
blob: 9ed2524cb8ac32ba3c8914bd84575a487784a6ea (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
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:	gtkmozedit
# Date created:		2005-10-12
# Whom:			Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gtkmozedit
PORTVERSION=	0.3.0
PORTREVISION=	1
CATEGORIES=	devel editors www
MASTER_SITES=	${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR=	sources/${PORTNAME}/${PORTVERSION:R}

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Text editor widget based on Mozilla's editing functionality

BUILD_DEPENDS=	${X11BASE}/libdata/pkgconfig/${MOZILLA}-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/${MOZILLA}${HEADERS_SUFX}
RUN_DEPENDS=	${X11BASE}/libdata/pkgconfig/${MOZILLA}-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/${MOZILLA}${HEADERS_SUFX}

USE_BZIP2=	yes
USE_REINPLACE=	yes
WITH_MOZILLA?=	firefox
INSTALLS_SHLIB=	yes
USE_LIBTOOL_VER=15
USE_GNOME=	gnomehack

.include <bsd.port.pre.mk>

.if !defined(WITH_MOZILLA)
MOZILLA=	firefox
HEADERS_SUFX=
.elif ${WITH_MOZILLA}=="mozilla"
MOZILLA=	mozilla
HEADERS_SUFX=
.else
MOZILLA=	firefox
HEADERS_SUFX=
.endif

.if ${WITH_MOZILLA}=="firefox"
CONFIGURE_ARGS+=	--with-firefox
.endif

pre-everything::
	@${ECHO_MSG} ""
	@${ECHO_MSG} " By default the port uses www/firefox for gecko support, but you can"
	@${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
	@${ECHO_MSG}
	@${ECHO_MSG} "  mozilla       "
#	@${ECHO_MSG} "  mozilla-devel "
	@${ECHO_MSG} ""

post-patch:
	@${REINPLACE_CMD} -e 's|firefox-nspr|firefox-xpcom|' \
		${WRKSRC}/configure

.include <bsd.port.post.mk>