aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mule-freewnn/Makefile
blob: 5289a380a59e9156e5d75c2c19b037aabed516c3 (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
# New ports collection makefile for:    mule
# Version required: 2.1
# Date created:     22 November 1994
# Whom:         Satoshi Asami (asami)
#
# $Id: Makefile,v 1.1.1.1 1994/11/22 23:59:13 asami Exp $
#

DISTNAME=   mule-2.1
DISTFILES=  emacs-19.27.tar.gz
MASTER_SITES=   ftp://prep.ai.mit.edu/pub/gnu/
USE_GMAKE=  yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= i386--freebsd --prefix=${PREFIX} --with-x-toolkit \
          --wnn --wnn-libraries=/usr/X11R6/lib \
          --wnn-includes=/usr/X11R6/include/wnn --terminal-face
WRKSRC=     ${WRKDIR}/emacs-19.27
PATCHFILES= diff-19.27-2.1.gz
PATCHSITE=  sh.wide.ad.jp:/JAPAN/mule/
DEPENDS=    ${PORTSDIR}/utils/Wnn

pre-fetch:
    @if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
    @for file in ${PATCHFILES}; do \
        if [ ! -f ${DISTDIR}/$$file ]; then \
            echo ">> Fetching patch $$file from remote site...";  \
            ${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}$$file \
                && mv $$file ${DISTDIR}; \
            fi \
     done

pre-patch:
    /bin/rm -f ${WRKSRC}/src/unexsunos4.c ${WRKSRC}/src/s/freebsd.h
# I took these two files from emacs-19.28 and added -lcrypt
    cp ${FILESDIR}/unexsunos4.c ${WRKSRC}/src
    cp ${FILESDIR}/freebsd.h ${WRKSRC}/src/s
    @echo "===>  Applying emacs -> mule patch"
    @for file in ${PATCHFILES}; do \
        gzip -c -d ${DISTDIR}/$$file | patch -d ${WRKSRC} -p1 -s; \
    done

pre-build:
    find ${WRKSRC} -name \*.orig -exec /bin/rm -f \{} \;

.include <bsd.port.mk>