summaryrefslogtreecommitdiff
path: root/editors/qemacs/Makefile
blob: 138770441d864034e8241863ebc6890659e5eac9 (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
# New ports collection makefile for:	qemacs
# Date created:				27 January 2003
# Whom:			Brad Davis <so14k@so14k.com> et al
#
# $FreeBSD$
#

PORTNAME=	qemacs
PORTVERSION=	0.3.p.12
CATEGORIES=	editors
MASTER_SITES=	http://fabrice.bellard.free.fr/qemacs/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p./pre/}

MAINTAINER=	so14k@so14k.com
COMMENT=	QEmacs (for Quick Emacs) is a very small but powerful UNIX editor

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png

USE_GMAKE=	yes
USE_XLIB=	yes
USE_REINPLACE=	yes
MAKE_ARGS+=	CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
MAN1=		qe.1

post-patch:
	${REINPLACE_CMD} -e 's,HOST_CC,CC,g' ${WRKSRC}/Makefile

do-install:
	cd ${WRKSRC}; ${INSTALL_PROGRAM} qe html2png ${PREFIX}/bin
	${MKDIR} ${DATADIR:S/qemacs/qe/}
	cd ${WRKSRC}; ${INSTALL_DATA} kmaps ligatures ${DATADIR:S/qemacs/qe/}
	${INSTALL_MAN} ${WRKSRC}/qe.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>