2012-10-05 12:41:45 +00:00
|
|
|
# Created by: eric
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1997-06-04 06:32:23 +00:00
|
|
|
|
2000-04-14 00:25:54 +00:00
|
|
|
PORTNAME= jed
|
2015-05-11 18:34:57 +00:00
|
|
|
DISTVERSION= 0.99-19
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 4
|
1997-06-04 06:32:23 +00:00
|
|
|
CATEGORIES= editors
|
2005-10-27 16:47:29 +00:00
|
|
|
MASTER_SITES= ftp://space.mit.edu/pub/davis/jed/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/editors/jed/v${PORTVERSION:R}/ \
|
2009-12-15 10:07:48 +00:00
|
|
|
ftp://ftp.ntua.gr/pub/lang/slang/jed/v${PORTVERSION:R}/
|
1997-06-04 06:32:23 +00:00
|
|
|
|
2005-07-11 16:47:16 +00:00
|
|
|
MAINTAINER= garga@FreeBSD.org
|
2014-06-10 07:39:01 +00:00
|
|
|
COMMENT= SLang-based text editor
|
1997-06-04 06:32:23 +00:00
|
|
|
|
2013-10-31 23:33:45 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-24 16:47:23 +00:00
|
|
|
LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2
|
2009-02-08 03:14:14 +00:00
|
|
|
|
2005-10-27 09:59:03 +00:00
|
|
|
CONFLICTS= jed-devel-[0-9]*
|
|
|
|
|
2012-08-03 15:34:45 +00:00
|
|
|
OPTIONS_DEFINE= X11 PERMS HOSTLOOKUP DOCS
|
|
|
|
OPTIONS_DEFAULT=X11 HOSTLOOKUP DOCS
|
2012-06-29 20:48:43 +00:00
|
|
|
|
|
|
|
PERMS_DESC= Respect permissions by Root
|
|
|
|
HOSTLOOKUP_DESC=Look-up for hostname
|
1997-06-04 06:32:23 +00:00
|
|
|
|
2013-11-01 09:57:50 +00:00
|
|
|
OPTIONS_SUB= yes
|
2014-05-14 19:33:28 +00:00
|
|
|
USES= tar:bzip2
|
2005-10-27 18:04:14 +00:00
|
|
|
DIST_SUBDIR= jed
|
2001-01-16 17:33:20 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-03-29 15:20:49 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2005-10-28 10:48:51 +00:00
|
|
|
CONFIGURE_ENV+= JED_ROOT=${PREFIX}/lib/jed
|
2005-05-15 20:01:55 +00:00
|
|
|
|
2005-10-27 18:04:14 +00:00
|
|
|
PORTDOCS= *
|
2013-09-27 15:21:07 +00:00
|
|
|
MAKE_ENV+= DEST_DOC_DIR=${STAGEDIR}${DOCSDIR}
|
2005-05-15 20:01:55 +00:00
|
|
|
|
2005-10-27 18:04:14 +00:00
|
|
|
ALL_TARGET= all getmail
|
1997-06-04 06:32:23 +00:00
|
|
|
|
2013-10-31 23:33:45 +00:00
|
|
|
X11_USE= XORG=x11 XORG=ice XORG=xt
|
|
|
|
X11_ALL_TARGET= xjed
|
2005-10-27 09:59:03 +00:00
|
|
|
|
2013-10-31 23:33:45 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-10-27 09:59:03 +00:00
|
|
|
|
2012-06-29 20:48:43 +00:00
|
|
|
.if empty(PORT_OPTIONS:MHOSTLOOKUP)
|
2010-04-06 12:42:49 +00:00
|
|
|
HOSTNAME_CMD= /bin/hostname
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__userinfo.c
|
|
|
|
.endif
|
|
|
|
|
2005-10-27 18:04:14 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,(DEST_JED_ROOT)/doc,(DEST_DOC_DIR),g' \
|
2005-11-07 13:58:50 +00:00
|
|
|
-e 's,\.\./info/\*,,' \
|
2005-10-27 18:04:14 +00:00
|
|
|
-e 's,^\(JED_DOC_.*FILES\) =,\1 \?=,g' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
2012-06-29 20:48:43 +00:00
|
|
|
.if empty(PORT_OPTIONS:MPERMS)
|
2010-04-06 12:42:49 +00:00
|
|
|
@${REINPLACE_CMD} 's|jed_file_is_readonly (file, 1)|jed_file_is_readonly (file, 0)|' ${WRKSRC}/src/file.c
|
|
|
|
.endif
|
2012-06-29 20:48:43 +00:00
|
|
|
.if empty(PORT_OPTIONS:MHOSTLOOKUP)
|
2010-04-06 12:42:49 +00:00
|
|
|
@${REINPLACE_CMD} -e "s/%%JED_HOSTNAME%%/$$(${HOSTNAME_CMD})/" \
|
|
|
|
${WRKSRC}/src/userinfo.c
|
|
|
|
.endif
|
2005-10-27 18:04:14 +00:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's,\(.usr.bin.install\) *-c,\1 -s -m 555,' \
|
|
|
|
${WRKSRC}/src/Makefile
|
|
|
|
|
1997-06-04 06:32:23 +00:00
|
|
|
post-install:
|
2013-09-27 15:21:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/vms_shell.com ${STAGEDIR}${PREFIX}/lib/jed/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/README ${STAGEDIR}${PREFIX}/lib/jed/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/jed.conf ${STAGEDIR}${PREFIX}/lib/jed/lib
|
1997-06-04 06:32:23 +00:00
|
|
|
|
2005-10-27 09:59:03 +00:00
|
|
|
.include <bsd.port.post.mk>
|