openbsd-ports/editors/jed/Makefile

59 lines
1.5 KiB
Makefile
Raw Normal View History

1997-11-14 19:04:24 -05:00
# OpenBSD makefile for: Jed text editor
# Version required: 0.98-4
# Date created: 05 November 1997
# Whom: ejovi
#
# $Id: Makefile,v 1.1.1.1 1997/11/15 00:04:26 deraadt Exp $
#
DISTNAME= jed0.98-4
PKGNAME= jed-0.98.4
CATEGORIES= editors
MASTER_SITES= ftp://space.mit.edu/pub/davis/jed/
PATCH_SITES= ftp://space.mit.edu/pub/davis/jed/
PATCHFILES= BUGS
PATCH_DIST_STRIP= -p1
MAINTAINER= joey@OpenBSD.ORG
LIB_DEPENDS= slang\\.0\\.993[6-9]:${PORTSDIR}/devel/libslang
# comment out the next line if you don't want the X version of JED.
XJED= xjed
DIST_SUBDIR= jed
GNU_CONFIGURE= yes
CONFIGURE_ENV= JED_ROOT=${PREFIX}/lib/jed
ALL_TARGET= all getmail ${XJED}
INSTALL_TARGET= install
WRKSRC= ${WRKDIR}/jed
MAN1= jed.1 rgrep.1
pre-install:
ln -sf ${WRKSRC}/autoconf/mkinsdir.sh ${WRKSRC}/
post-install:
strip ${PREFIX}/bin/jed
strip ${PREFIX}/bin/rgrep
strip ${PREFIX}/lib/jed/bin/getmail
.if defined(XJED)
strip ${PREFIX}/bin/xjed
.endif
${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/lib/jed/lib
${INSTALL_DATA} ${WRKSRC}/info/jed.* ${PREFIX}/info
rmdir ${PREFIX}/lib/jed/info
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/jed
${INSTALL_DATA} ${WRKSRC}/doc/README ${WRKSRC}/doc/*.txt \
${PREFIX}/share/doc/jed
if [ ! -f ${PREFIX}/info/dir ]; then \
sed -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
fi
install-info --section="Miscellaneous" \
--entry="* JED: (jed). JED editor documentation." \
${PREFIX}/info/jed.info ${PREFIX}/info/dir
.endif
.include <bsd.port.mk>