aboutsummaryrefslogtreecommitdiff
path: root/editors/xmleditor/Makefile
blob: 80d8ae83ff526fff8c92ec10b12fa4f1226dee2f (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	xmleditor
PORTVERSION=	0.5.3
PORTREVISION=	11
CATEGORIES=	editors
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	XML editor

WRKSRC=		${WRKDIR}/${PORTNAME}

USES=		bison pathfix
USE_GNOME=	libglade
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
		AUTOHEADER="${TRUE}"
USE_LDCONFIG=	yes

# Fix for GCC 4.2
post-patch:
	@${REINPLACE_CMD} -e '257s,((char\*)\*n),n,' \
		-e '/gtk_xml_modules_add_module/s,const ,,' \
		${WRKSRC}/src/gtkxmlmodules.*

.include <bsd.port.mk>