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