aboutsummaryrefslogtreecommitdiff
path: root/editors/jed/Makefile
blob: fe1aaecbeeae8734dce628fe963103f4ef71c233 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:    Jed text editor
# Version required:     0.98-7
# Date created:         22 APR 1997
# Whom:                 eric
#
# $FreeBSD$
#

DISTNAME=       jed0.98-7
PKGNAME=        jed-0.98.7
CATEGORIES=	editors
MASTER_SITES=   ftp://space.mit.edu/pub/davis/jed/v0.98/

PATCH_SITES=   ftp://space.mit.edu/pub/davis/jed/v0.98/
PATCHFILES=    BUGS
PATCH_DIST_STRIP=	-p1

MAINTAINER=     eric@cybernut.com

LIB_DEPENDS=	slang.1:${PORTSDIR}/devel/libslang

USE_XLIB=	yes

# comment out the next line if you don't want the X version of JED.
XJED=	xjed

DIST_SUBDIR=	jed
GNU_CONFIGURE=  yes
PATCH_DIST_ARGS=	-d ${WRKSRC}/src --quiet -E ${PATCH_DIST_STRIP}
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
	${CP} -R ${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
	install-info --section="Miscellaneous" \
		--entry="* JED: (jed).			JED editor documentation." \
		${PREFIX}/info/jed.info ${PREFIX}/info/dir
.endif

.include <bsd.port.mk>