1997-06-04 08:32:23 +02:00
|
|
|
# New ports collection makefile for: Jed text editor
|
|
|
|
# Date created: 22 APR 1997
|
|
|
|
# Whom: 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
|
2003-02-23 07:37:23 +01:00
|
|
|
PORTVERSION= 0.99.16
|
2004-11-01 20:12:09 +01:00
|
|
|
PORTREVISION= 1
|
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.uni-stuttgart.de/pub/unix/misc/slang/jed/v${PORTVERSION:R}/ \
|
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/editors/jed/v${PORTVERSION:R}/ \
|
|
|
|
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
|
2003-02-21 12:38:28 +01:00
|
|
|
COMMENT= A SLang-based text editor
|
1997-06-04 08:32:23 +02:00
|
|
|
|
1998-09-25 12:18:41 +02:00
|
|
|
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
|
1997-06-04 08:32:23 +02:00
|
|
|
|
2005-10-27 11:59:03 +02:00
|
|
|
CONFLICTS= jed-devel-[0-9]*
|
|
|
|
|
|
|
|
OPTIONS= X11 "Build xjed (depends of X11)" on
|
1997-06-04 08:32:23 +02:00
|
|
|
|
2005-10-27 20:04:14 +02:00
|
|
|
DIST_SUBDIR= jed
|
|
|
|
USE_REINPLACE= yes
|
2001-01-16 18:33:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-10-28 12:48:51 +02:00
|
|
|
CONFIGURE_ENV+= JED_ROOT=${PREFIX}/lib/jed
|
2005-11-07 14:58:50 +01:00
|
|
|
MAKE_ENV+= DEST_DOC_DIR=${DOCSDIR}
|
2005-10-27 18:47:29 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-05-15 22:01:55 +02:00
|
|
|
|
2005-10-27 20:04:14 +02:00
|
|
|
PORTDOCS= *
|
2005-05-15 22:01:55 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
2005-10-27 20:04:14 +02:00
|
|
|
MAKE_ENV+= JED_DOC_FILES="" \
|
|
|
|
JED_DOC_TXT_FILES="" \
|
|
|
|
JED_DOC_MAN_FILES=""
|
2005-05-15 22:01:55 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-27 20:04:14 +02:00
|
|
|
ALL_TARGET= all getmail
|
1997-06-04 08:32:23 +02:00
|
|
|
MAN1= jed.1 rgrep.1
|
|
|
|
|
2005-10-27 11:59:03 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_X11)
|
2005-10-27 20:04:14 +02:00
|
|
|
PLIST_SUB+= XJED="@comment "
|
2005-10-27 11:59:03 +02:00
|
|
|
.else
|
|
|
|
USE_XLIB= yes
|
2005-10-27 20:04:14 +02:00
|
|
|
ALL_TARGET+= xjed
|
|
|
|
PLIST_SUB+= XJED=""
|
2005-10-27 11:59:03 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-27 20:04:14 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,0777,07777,g' \
|
|
|
|
${WRKSRC}/src/file.c \
|
|
|
|
${WRKSRC}/src/unix.c
|
|
|
|
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
|
|
|
|
${WRKSRC}/src/jdmacros.h \
|
|
|
|
${WRKSRC}/src/ledit.c
|
|
|
|
@${REINPLACE_CMD} -e 's,__linux__,__FreeBSD__,g' \
|
|
|
|
${WRKSRC}/src/pty.c
|
|
|
|
@${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' \
|
|
|
|
-e 's,-lslang$$,-lslang -ltermcap,' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
|
|
|
|
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:
|
2003-02-23 07:37:23 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/vms_shell.com ${PREFIX}/lib/jed/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/README ${PREFIX}/lib/jed/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/jed.conf ${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>
|