1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-07 02:06:57 +00:00
freebsd-ports/editors/jed/Makefile

72 lines
1.8 KiB
Makefile
Raw Normal View History

# Created by: eric
1999-08-25 05:57:29 +00:00
# $FreeBSD$
2000-04-14 00:25:54 +00:00
PORTNAME= jed
DISTVERSION= 0.99-19
2012-06-01 05:26:28 +00:00
PORTREVISION= 4
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}/
MAINTAINER= garga@FreeBSD.org
COMMENT= SLang-based text editor
2013-10-31 23:33:45 +00:00
LICENSE= GPLv2
LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2
CONFLICTS= jed-devel-[0-9]*
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
OPTIONS_SUB= yes
2014-05-14 19:33:28 +00:00
USES= tar:bzip2
DIST_SUBDIR= jed
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
2005-10-28 10:48:51 +00:00
CONFIGURE_ENV+= JED_ROOT=${PREFIX}/lib/jed
PORTDOCS= *
2013-09-27 15:21:07 +00:00
MAKE_ENV+= DEST_DOC_DIR=${STAGEDIR}${DOCSDIR}
ALL_TARGET= all getmail
2013-10-31 23:33:45 +00:00
X11_USE= XORG=x11 XORG=ice XORG=xt
X11_ALL_TARGET= xjed
2013-10-31 23:33:45 +00:00
.include <bsd.port.pre.mk>
2012-06-29 20:48:43 +00:00
.if empty(PORT_OPTIONS:MHOSTLOOKUP)
HOSTNAME_CMD= /bin/hostname
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__userinfo.c
.endif
post-patch:
@${REINPLACE_CMD} -e 's,(DEST_JED_ROOT)/doc,(DEST_DOC_DIR),g' \
-e 's,\.\./info/\*,,' \
-e 's,^\(JED_DOC_.*FILES\) =,\1 \?=,g' \
${WRKSRC}/src/Makefile.in
2012-06-29 20:48:43 +00:00
.if empty(PORT_OPTIONS:MPERMS)
@${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)
@${REINPLACE_CMD} -e "s/%%JED_HOSTNAME%%/$$(${HOSTNAME_CMD})/" \
${WRKSRC}/src/userinfo.c
.endif
post-configure:
@${REINPLACE_CMD} -e 's,\(.usr.bin.install\) *-c,\1 -s -m 555,' \
${WRKSRC}/src/Makefile
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
.include <bsd.port.post.mk>