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
|
2009-12-15 11:07:48 +01:00
|
|
|
PORTVERSION= 0.99.19
|
2010-04-06 14:42:49 +02:00
|
|
|
PORTREVISION= 3
|
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
|
2003-02-21 12:38:28 +01:00
|
|
|
COMMENT= A SLang-based text editor
|
1997-06-04 08:32:23 +02:00
|
|
|
|
2009-12-21 15:53:02 +01:00
|
|
|
LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
|
2009-02-08 04:14:14 +01:00
|
|
|
|
2005-10-27 11:59:03 +02:00
|
|
|
CONFLICTS= jed-devel-[0-9]*
|
|
|
|
|
2010-04-06 14:42:49 +02:00
|
|
|
OPTIONS= X11 "Build xjed (depends of X11)" on \
|
|
|
|
PERMS "Respect permissions by Root" off \
|
|
|
|
HOSTLOOKUP "Look-up for hostname" on
|
1997-06-04 08:32:23 +02:00
|
|
|
|
2006-04-03 15:18:04 +02:00
|
|
|
USE_BZIP2= yes
|
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= *
|
2008-06-02 13:28:24 +02:00
|
|
|
MAKE_ENV+= DEST_DOC_DIR=${DOCSDIR}
|
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="" \
|
2008-06-02 13:28:24 +02:00
|
|
|
JED_DOC_HLP_FILES="" \
|
2005-10-27 20:04:14 +02:00
|
|
|
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
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 ice xt
|
2005-10-27 20:04:14 +02:00
|
|
|
ALL_TARGET+= xjed
|
|
|
|
PLIST_SUB+= XJED=""
|
2005-10-27 11:59:03 +02:00
|
|
|
.endif
|
|
|
|
|
2010-04-06 14:42:49 +02:00
|
|
|
.if defined(WITHOUT_HOSTLOOKUP)
|
|
|
|
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
|
2008-06-02 13:28:24 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e '/MKINSDIR.*DEST_DOC_DIR/d' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
.endif
|
2010-04-06 14:42:49 +02:00
|
|
|
.if defined(WITHOUT_PERMS)
|
|
|
|
@${REINPLACE_CMD} 's|jed_file_is_readonly (file, 1)|jed_file_is_readonly (file, 0)|' ${WRKSRC}/src/file.c
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_HOSTLOOKUP)
|
|
|
|
@${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:
|
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>
|