summaryrefslogtreecommitdiff
path: root/editors/xcoral/Makefile
blob: ee90e3353ecc8c2915f69b0b2a4774a1a801fb73 (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
# Created by: erich@rrnet.com
# $FreeBSD$

PORTNAME=	xcoral
PORTVERSION=	3.47
PORTREVISION=	4
CATEGORIES=	editors
MASTER_SITES=	http://xcoral.free.fr/

PATCH_SITES=	http://aldan.algebra.com/~mi/port-stuff/
PATCHFILES=	xcoral-alpheus-and-peneus-2020.patch.bz2

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Multiwindow mouse-based text editor for X

LICENSE=	GPLv2

USES=		bison compiler:c11 xorg
USE_XORG=	x11
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--libdir=${PREFIX}/share
LIBS+=		-lgnuregex
LDFLAGS+=	-L${LOCALBASE}/lib
CFLAGS+=	-isystem ${LOCALBASE}/include
EXTRACT_AFTER_ARGS=	--exclude BR_Parser.[ch]

PLIST_SUB=	VERSION="${PORTVERSION}"

OPTIONS_DEFINE=	DOCS

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 1300000
LIB_DEPENDS+=	libgnuregex.so.[6-9]:devel/libgnuregex
.endif

post-patch:
	@${REINPLACE_CMD} -e 's| regex\.[co] | |g ; \
		 s| -g | |g' ${WRKSRC}/Makefile.in

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xcoral ${STAGEDIR}${PREFIX}/bin
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/SmacLib/* ${STAGEDIR}${DATADIR}
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/Doc/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>