aboutsummaryrefslogtreecommitdiffstats
path: root/editors/joe/Makefile
blob: 993411544a08154a442ab70d650b6bd13061ad12 (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
# New ports collection makefile for:    joe
# Date created:     01 Jul 1995
# Whom:         torstenb@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   joe
PORTVERSION=    3.7
PORTEPOCH=  1
CATEGORIES= editors
MASTER_SITES=   SF/joe-editor/JOE%20sources/joe-${PORTVERSION}
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= sylvio@FreeBSD.org
COMMENT=    Joe's Own Editor

BUILD_DEPENDS=  aspell:${PORTSDIR}/textproc/aspell
RUN_DEPENDS=    aspell:${PORTSDIR}/textproc/aspell

CONFLICTS=  joe-2.*

USE_GMAKE=  yes
USE_ICONV=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib -liconv"

ALL_TARGET= ${PORTNAME}
MAN1=       ${PORTNAME}.1

MANLANG=    "" ru

.include <bsd.port.pre.mk>

.ifdef NOPORTDOCS
post-patch:
    ${REINPLACE_CMD} 's,install-data-am: install-data_charmapsDATA install-data_docDATA,install-data-am: install-data_charmapsDATA,' \
        ${WRKSRC}/Makefile.in
.endif

post-install:
.for file in jmacsrc jpicorc jstarrc rjoerc joerc
.if !exists(${PREFIX}/etc/${PORTNAME}/${file})
    @${CP} ${PREFIX}/etc/${PORTNAME}/${file} ${PREFIX}/etc/${PORTNAME}/${file}.dist
.endif
.endfor

.include <bsd.port.post.mk>