Lines 6-44
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= zile |
8 |
PORTNAME= zile |
9 |
PORTVERSION= 2.3.4 |
9 |
PORTVERSION= 2.3.7 |
10 |
CATEGORIES= editors |
10 |
CATEGORIES= editors |
11 |
MASTER_SITES= GNU |
11 |
MASTER_SITES= GNU |
12 |
|
12 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Small emacs-like text editor |
14 |
COMMENT= Small emacs-like text editor |
15 |
|
15 |
|
16 |
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man |
|
|
17 |
|
18 |
USE_LUA= 5.0+ |
19 |
LUA_COMPS= lua:build |
20 |
USE_GMAKE= yes |
16 |
USE_GMAKE= yes |
21 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ENV= LIBS="-lgnuregex" \ |
18 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
23 |
ac_cv_path_LUA="${LUA_CMD}" |
|
|
24 |
CONFIGURE_ARGS= --without-included-regex |
19 |
CONFIGURE_ARGS= --without-included-regex |
25 |
|
20 |
|
26 |
MAN1= zile.1 |
21 |
MAN1= zile.1 |
27 |
PLIST_FILES= bin/zile %%DATADIR%%/FAQ %%DATADIR%%/dotzile.sample |
22 |
PLIST_FILES= bin/zile %%DATADIR%%/FAQ %%DATADIR%%/dotzile.sample |
28 |
PLIST_DIRS= %%DATADIR%% |
23 |
PLIST_DIRS= %%DATADIR%% |
29 |
|
24 |
|
|
|
25 |
CPPFLAGS= -isystem /usr/include/gnu |
26 |
LDFLAGS= -lgnuregex |
27 |
|
30 |
post-patch: |
28 |
post-patch: |
31 |
@${REINPLACE_CMD} -e \ |
29 |
@${REINPLACE_CMD} -e \ |
32 |
's|<regex\.h>|<gnu/regex.h>|g ; \ |
30 |
's|-pedantic||g' ${WRKSRC}/configure |
33 |
s|-pedantic||g' ${WRKSRC}/configure |
|
|
34 |
@${REINPLACE_CMD} -e \ |
35 |
's|"regex\.h"|<gnu/regex.h>|g' ${WRKSRC}/src/search.c |
36 |
@${REINPLACE_CMD} -e \ |
31 |
@${REINPLACE_CMD} -e \ |
37 |
's|: install-exec-local|:|g' ${WRKSRC}/lib/Makefile.in |
32 |
's|: install-exec-local|:|g' ${WRKSRC}/lib/Makefile.in |
38 |
|
33 |
|
39 |
pre-build: |
|
|
40 |
@${RM} -f ${WRKSRC}/src/tbl_funcs.h |
41 |
@(cd ${BUILD_WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${GMAKE} \ |
42 |
${MAKE_FLAGS} ${MAKEFILE} tbl_funcs.h) |
43 |
|
44 |
.include <bsd.port.mk> |
34 |
.include <bsd.port.mk> |