summaryrefslogtreecommitdiff
path: root/editors/xemacs21-mule-common/Makefile
blob: 0e1a492d089f2691b08bf210a676fdec3349cf8a (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
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:	files except executables for xemacs with mule
# Version required:	20.4
# Date created:		5 Dec 1997
# Whom:			Kazuyuki IENAGA <ienaga@jsys.co.jp>
#
# $Id$
#

DISTNAME=	xemacs-20.4
PKGNAME=	xemacs-mule-common-20.4
CATEGORIES=	editors japanese
MASTER_SITES=	ftp://unipro.jsys.co.jp/pub/editor/xemacs/20.4/ \
		ftp://ftp.lab.kdd.co.jp/xemacs/xemacs-20.4/ \
		ftp://ftp.xemacs.org/pub/xemacs-20.4/ \
		ftp://ftp2.xemacs.org/pub/xemacs/xemacs-20.4/
DISTFILES=	xemacs-20.4.tar.gz xemacs-20.4-elc.tar.gz \
		xemacs-20.4-info.tar.gz xemacs-20.4-mule.tar.gz

MAINTAINER=	kiri@kiri.toba-cmt.ac.jp

EXTRACT_ONLY=	xemacs-20.4.tar.gz xemacs-20.4-elc.tar.gz \
		xemacs-20.4-info.tar.gz xemacs-20.4-mule.tar.gz 
.for dir in \
	editors/xemacs-mule \
	japanese/xemacs japanese/xemacs-canna \
	japanese/xemacs-canna+wnn4 japanese/xemacs-canna+wnn6 \
	japanese/xemacs-wnn4 japanese/xemacs-wnn6
.if exists(${.CURDIR}/../../${dir}/work/.build_done)
WRKDIR?=	${.CURDIR}/../../${dir}/work
.endif
.endfor
WRKSRC= ${WRKDIR}/xemacs-20.4

.if !defined(WRKDIR) && !defined(PACKAGE_BUILDING)
BROKEN=		You should build install one of the other xemacs ports first
.endif

INSTALL_COOKIE=	${WRKDIR}/.install_done-${PKGNAME}
PACKAGE_COOKIE=	${WRKDIR}/.package_done-${PKGNAME}

USE_GMAKE=	no

GNU_CONFIGURE=	yes
USE_GMAKE=	no
CONFIGURE_ARGS=	i386-unknown-freebsd --with-x11 --with-mule \
		--x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib
STRIP=
MAN1=		ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \
		gnuserv.1 xemacs.1

INSTALL_TARGET=	install-arch-indep

pre-build:
	${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs

pre-install:
	@${MKDIR} ${PREFIX}/lib/xemacs
	@(cd ${PREFIX}/lib/xemacs; ${MKDIR} info etc site-lisp)
	@if [ ! -f ${PREFIX}/lib/xemacs/info/dir ]; then \
		${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/lib/xemacs/info/dir; \
	fi

post-install:
	@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}

post-package:
	@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}

.include <bsd.port.mk>