# Created by: David O'Brien (obrien@FreeBSD.org)
# $FreeBSD: tags/RELEASE_10_0_0/devel/xwpe/Makefile 327726 2013-09-20 17:17:44Z bapt $

PORTNAME=	xwpe
PORTVERSION=	1.5.30a
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SUNSITE} \
		http://www.identicalsoftware.com/xwpe/ \
		ftp://ftp.identicalsoftware.com/pub/linux/xwpe/
MASTER_SITE_SUBDIR=	apps/editors/X

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	A Borland-like IDE programming environment

USE_GMAKE=	yes
USE_XORG=	sm ice x11
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--libdir=${PREFIX}/share
ALL_TARGET=	# none

MAN1=		xwpe.1
MLINKS=		xwpe.1 xwe.1 \
		xwpe.1 wpe.1 \
		xwpe.1 we.1

NO_STAGE=	yes
post-patch:
.for file in we_prog.c we_fl_unix.c
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
		 s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/${file}
.endfor
	${REINPLACE_CMD} -e 's|$$(INSTALL_PROGRAM)|${INSTALL_PROGRAM}|g' \
	    ${WRKSRC}/Makefile.in
	${REINPLACE_CMD} -e 's|$$(INSTALL_DATA)|${INSTALL_DATA}|g' \
	    ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
