1994-11-22 23:59:14 +00:00
|
|
|
# New ports collection makefile for: mule
|
1995-01-03 14:17:05 +00:00
|
|
|
# Version required: 2.2
|
1994-11-22 23:59:14 +00:00
|
|
|
# Date created: 22 November 1994
|
|
|
|
# Whom: Satoshi Asami (asami)
|
|
|
|
#
|
1995-03-24 11:12:06 +00:00
|
|
|
# $Id: Makefile,v 1.10 1995/03/16 00:09:45 asami Exp $
|
1994-11-22 23:59:14 +00:00
|
|
|
#
|
|
|
|
|
1995-03-04 10:58:40 +00:00
|
|
|
DISTNAME= mule-2.2.2
|
1995-01-03 14:17:05 +00:00
|
|
|
DISTFILES= emacs-19.28.tar.gz
|
1994-11-22 23:59:14 +00:00
|
|
|
MASTER_SITES= ftp://prep.ai.mit.edu/pub/gnu/
|
1995-03-24 11:12:06 +00:00
|
|
|
MAINTAINER= asami@FreeBSD.ORG
|
1994-11-22 23:59:14 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
1995-02-13 18:08:49 +00:00
|
|
|
STRIP=
|
1994-11-22 23:59:14 +00:00
|
|
|
CONFIGURE_ARGS= i386--freebsd --prefix=${PREFIX} --with-x-toolkit \
|
|
|
|
--wnn --wnn-libraries=/usr/X11R6/lib \
|
|
|
|
--wnn-includes=/usr/X11R6/include/wnn --terminal-face
|
1995-01-03 14:17:05 +00:00
|
|
|
WRKSRC= ${WRKDIR}/emacs-19.28
|
1995-03-04 10:58:40 +00:00
|
|
|
PATCHFILES= diff-19.28-2.2.gz patch-2.2.1.gz patch-2.2.2.gz
|
1994-11-26 23:07:02 +00:00
|
|
|
.if !defined(MASTER_SITE_OVERRIDE)
|
1995-03-04 10:58:40 +00:00
|
|
|
# Use one of these if you are in Japan
|
1995-01-03 14:17:05 +00:00
|
|
|
# PATCHSITE= sh.wide.ad.jp:/JAPAN/mule/
|
1995-03-04 10:58:40 +00:00
|
|
|
# PATCHSITE= etlport.etl.go.jp:/pub/mule/
|
1995-01-03 14:17:05 +00:00
|
|
|
PATCHSITE= ftp.cs.buffalo.edu:/pub/mule/
|
1994-11-26 23:07:02 +00:00
|
|
|
.else
|
|
|
|
PATCHSITE= ${MASTER_SITE_OVERRIDE}
|
|
|
|
.endif
|
1995-02-17 06:28:02 +00:00
|
|
|
.if !exists(/usr/X11R6/lib/libwnn.a)
|
1995-03-16 00:09:45 +00:00
|
|
|
DEPENDS= ${PORTSDIR}/japanese/Wnn
|
1995-02-17 06:28:02 +00:00
|
|
|
.endif
|
1994-11-27 03:40:09 +00:00
|
|
|
PREPATCH_COOKIE= ${.CURDIR}/work/.prepatch_done
|
|
|
|
PREBUILD_COOKIE= ${.CURDIR}/work/.prebuild_done
|
1994-11-22 23:59:14 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
|
1994-12-23 06:56:00 +00:00
|
|
|
@(cd ${DISTDIR}; \
|
|
|
|
for file in ${PATCHFILES}; do \
|
|
|
|
if [ ! -f $$file ]; then \
|
1994-11-22 23:59:14 +00:00
|
|
|
echo ">> Fetching patch $$file from remote site..."; \
|
1994-12-23 06:56:00 +00:00
|
|
|
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}$$file; \
|
1994-11-22 23:59:14 +00:00
|
|
|
fi \
|
1994-12-23 06:56:00 +00:00
|
|
|
done)
|
1994-11-22 23:59:14 +00:00
|
|
|
|
1994-11-27 03:40:09 +00:00
|
|
|
pre-patch: ${PREPATCH_COOKIE}
|
|
|
|
|
|
|
|
${PREPATCH_COOKIE}:
|
1994-11-24 00:08:17 +00:00
|
|
|
@echo "===> Applying emacs -> mule patch"
|
1994-11-22 23:59:14 +00:00
|
|
|
@for file in ${PATCHFILES}; do \
|
|
|
|
gzip -c -d ${DISTDIR}/$$file | patch -d ${WRKSRC} -p1 -s; \
|
|
|
|
done
|
1994-11-27 03:40:09 +00:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PREPATCH_COOKIE}
|
|
|
|
|
|
|
|
pre-build: ${PREBUILD_COOKIE}
|
1994-11-22 23:59:14 +00:00
|
|
|
|
1994-11-27 03:40:09 +00:00
|
|
|
${PREBUILD_COOKIE}:
|
1994-11-22 23:59:14 +00:00
|
|
|
find ${WRKSRC} -name \*.orig -exec /bin/rm -f \{} \;
|
1994-11-27 03:40:09 +00:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PREBUILD_COOKIE}
|
1994-11-22 23:59:14 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|