blob: 27d891e215b4d88401b826a125540340a63f4a04 (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# New ports collection Makefile for: zile
# Date created: 28 September 2000
# Whom: jasone
#
# $FreeBSD$
#
PORTNAME= zile
PORTVERSION= 2.2.15
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Small emacs-like text editor
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LIBS="-lgnuregex"
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man \
--infodir=${PREFIX}/${INFO_PATH} \
--disable-allegro --disable-epocemx
MAN1= zile.1
INFO= zile
PLIST_FILES= bin/zile %%DATADIR%%/AUTODOC %%DATADIR%%/FAQ %%DATADIR%%/HELP \
%%DATADIR%%/TUTORIAL %%DATADIR%%/dotzile.sample
PLIST_DIRS= %%DATADIR%%
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 502010
GNU_REGEX_H= gnu/regex.h
.else
GNU_REGEX_H= gnuregex.h
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|<regex\.h>|<${GNU_REGEX_H}>|g ; \
s|_regex_h|_${GNU_REGEX_H:S/\//_/g:S/./_/g}|g ; \
s|-pedantic||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|<regex\.h>|<${GNU_REGEX_H}>|g' ${WRKSRC}/src/search.c
.include <bsd.port.post.mk>
|