blob: f5219e2a62fcc97f4d1e01ba0f02ff5042ba63fd (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# New ports collection makefile for: files except executables for xemacs with mule
# Version required: 21.1.6
# Date created: 5 Dec 1997
# Whom: Kazuyuki IENAGA <ienaga@jsys.co.jp>
#
# $FreeBSD$
#
DISTNAME= xemacs-${VERSION}
PKGNAME= xemacs-mule-common-${VERSION}
CATEGORIES= editors japanese
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/xemacs/${FTP_DIR}/ \
ftp://ftp.xemacs.org/pub/xemacs/${FTP_DIR}/ \
ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ftp.xemacs.org/xemacs/${FTP_DIR}/ \
ftp://ftp.th-darmstadt.de/pub/editors/xemacs/${FTP_DIR}/ \
ftp://ftp.jpl.org/pub/elisp/
DISTFILES= xemacs-${VERSION}.tar.gz xemacs-${VERSION}-elc.tar.gz \
xemacs-${VERSION}-info.tar.gz \
ps-print-jp.el.gz
DIST_SUBDIR= xemacs
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
# from xemacs-mule
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.3:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
compface.1:${PORTSDIR}/mail/faces
USE_AUTOCONF= yes
EXTRACT_ONLY= xemacs-${VERSION}.tar.gz xemacs-${VERSION}-elc.tar.gz \
xemacs-${VERSION}-info.tar.gz
.include <bsd.port.pre.mk>
.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(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.install_done)
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
.elif exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.build_done)
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
.endif
.endfor
WRKSRC= ${WRKDIR}/xemacs-${VERSION}
.if !defined(WRKDIR)
.if defined(PACKAGE_BUILDING)
# XXX
pre-build:
@cd ${.CURDIR}/../xemacs-mule; make
.else
BROKEN= You should build install one of the other xemacs ports first
.endif
.endif
INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
TMPPLIST= ${WRKDIR}/.PLIST.mktmp-${PKGNAME}
USE_XLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= i386-unknown-freebsd \
--with-x11 \
--with-mule \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \
gnuserv.1 xemacs.1
STRIP=
INSTALL_TARGET= install-arch-indep
PLIST_SUB= XEMACS_DIR=${XEMACS_DIR}
MAJOR_VERSION= 21.1
VERSION= 21.1.6
XEMACS_DIR= xemacs-${VERSION}
FTP_DIR= xemacs-${MAJOR_VERSION}
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:
# install xemacs-mule.sh into ${PREFIX}/etc/rc.d
@${MKDIR} /var/run/emacs/lock
${CHMOD} 1777 /var/run/emacs/lock
@${MKDIR} ${PREFIX}/etc/rc.d
@${INSTALL_SCRIPT} ${FILESDIR}/xemacs-mule.sh ${PREFIX}/etc/rc.d
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
post-package:
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
.include <bsd.port.post.mk>
|