aboutsummaryrefslogtreecommitdiffstats
path: root/editors/mined/Makefile
blob: 136a2549a12ec14b064f6db69820a8da3ac2ed63 (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
# New ports collection makefile for:    mined
# Date created:     24 December 2004
# Whom:         thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=   mined
PORTVERSION=    2000.10
CATEGORIES= editors
MASTER_SITES=   http://towo.net/mined/

MAINTAINER= thierry@FreeBSD.org
COMMENT=    Text mode editor with Unicode support

MAKEFILE=   makefile

.if defined(NOPORTDOCS)
ALL_TARGET= mined manual
.else
PORTDOCS=   cancel.html changes.html combined.png combining.png contact.html    \
        design.html dollar.gif donate.html download.html euro1.gif features.html\
        handr.gif haninfo-big5.png haninfo-menu.png haninfo-utf8.png header.html\
        index-dl.html index.html logo.gif menu.png mined-html.png mined-uni.png \
        mined.html mnemodoc.html navigate.html new-rot.gif new.gif overview.html\
        paypal_donate.gif paypal_logo.gif paypal_payments.gif picklist.png  \
        script-arabic.gif script-cyrillic.gif script-greek.gif script-han.gif   \
        script-hebrew.gif script-highlighting.png script-hiragana.gif       \
        script-thai.gif separated.png thankyou.html unicode.html
.endif

USE_GMAKE=  YES
MAKE_ARGS=  GMAKE=${GMAKE} CC=${CC:T} OPT="${CFLAGS}"
INSTALL_TARGET= localinstall

MAN1=       mined.1

pre-build:
    @${MV} ${WRKSRC}/src/mkinclud.cc ${WRKSRC}/src/mkinclud.cc.bak
    @${CP} ${WRKSRC}/src/mkinclud.gcc ${WRKSRC}/src/mkinclud.cc
    @(if [ ! -f ${WRKSRC}/src/mkinclud.${CC:T} ] ; then \
    ${LN} -sf ${WRKSRC}/src/mkinclud.cc ${WRKSRC}/src/mkinclud.${CC:T} ; \
    fi)
    @${ECHO_MSG}
    @${ECHO_MSG} "Warning: conversion of all keyboard mapping tables may take a long time!"
    @${ECHO_MSG}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>