blob: bb8189d5445ac8932437282fce5aa2cd49bba545 (
plain)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
# New ports collection makefile for: XEmacs with Mule
# Date created: 8 Dec 1999
# Whom: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
#
# $FreeBSD$
#
# This is the MASTER port of XEmacs Mule slave ports(japanese/xemacs${XEMACS_MAJOR_VER}-*)
# and provides `Architecture Dependent' parts of xemacs binary.
#
# Caracteristic variables of XEmacs Mule ports family:
# MULE_PORT : Mule port if defined(means COMMN or SLAVE)
# MULE_COMMON : COMMON port if defined
# MULE_SLAVE : SLAVE port if defined
# SITE_INCLUDES : site include path(configure arguments)
# SITE_LIBRARIES : site libraries path(configure arguments)
# WITH_INPUT_METHOD : input methods(configure arguments)
# LIB_INPUT_METHOD : LIB_DEPENDS list of Input Methods
# BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
# WITH_XIM : X Input Method(configure arguments)
.if !defined(MULE_SLAVE) && !defined(MULE_COMMON)
MULE_SLAVE= yes
.endif
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
.if defined(MULE_SLAVE)
RUN_DEPENDS= ${LOCALBASE}/lib/xemacs-${XEMACS_VER}/lisp/x-win-xfree86.elc:${PORTSDIR}/editors/xemacs${XEMACS_MAJOR_VER}-mule-common \
${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-basic-mule-packages
.else
RUN_DEPENDS= ${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-basic-mule-packages
.endif
LIB_DEPENDS= compface.1:${PORTSDIR}/mail/faces \
intl.1:${PORTSDIR}/devel/gettext \
${LIB_INPUT_METHOD}
CONFIGURE_ARGS?=${XEMACS_ARCH} \
--prefix=${PREFIX} \
--with-x11 \
--with-xim=${WITH_XIM} \
--with-mule \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib \
--site-libraries='${SITE_LIBRARIES}' \
--site-includes='${SITE_INCLUDES}' \
--with-xface \
--with-xpm \
--with-sound=native \
--with-site-lisp \
--with-pop \
--with-xfs \
--with-menubars=lucid \
--with-scrollbars=lucid \
--with-dialogs=athena \
--with-jpeg \
--with-png \
--with-tiff \
--infopath=${PREFIX}/lib/xemacs/info:${PREFIX}/info:${X11BASE}/info:/usr/info:${PREFIX}/lib/texmf/doc/info:/usr/lib/texmf/doc:/usr/share/info \
--with-clash-detection \
--lockdir=/var/run/emacs/lock \
${WITH_INPUT_METHOD}
MAKE_ENV= LANG=C
INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
STRIP=
INSTALL_TARGET?=install-arch-dep
FILESDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}/files
PATCHDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}/patches
PKGDIR?= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule/pkg
SLAVEDIRS= editors/xemacs21-mule-common editors/xemacs21-mule-sumo
XEMACS_MAJOR_VER?= 21
MULE_PORT= yes
PKGNAMESUFFIX?= -mule
DESCR_TMPL?= ${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule/files/DESCR.tmpl
COMMENT_TEXT?= XEmacs(version ${XEMACS_MAJOR_VER}) text editor with mule(Only the executables)
.if defined(MULE_SLAVE)
BINNAMEEXT= -mule
SITE_INCLUDES+= ${PREFIX}/include
SITE_LIBRARIES+= ${PREFIX}/lib
WITH_INPUT_METHOD?= --with-canna=no --with-wnn=no --with-wnn6=no
.endif
WITH_XIM?= no
.if defined(MULE_SLAVE)
pre-build:
@find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
@${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
# for xemacs${XEMACS_MAJOR_VER}-mule-common in defining ${WRKDIRPREFIX}
.if !exists(${WRKDIRPREFIX}${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule-common)
post-build:
@${MKDIR} ${WRKDIRPREFIX}${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule-common
.endif
post-install::
@${LN} -sf ja ${PREFIX}/lib/xemacs/mule-packages/etc/app-defaults/ja_JP.EUC
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
.endif
post-package:
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
## for make DESCR and COMMENT (only maintainer use)
#pre-arrange::
# @${MKDIR} ${PKGDIR}
# @${ECHO} "${COMMENT_TEXT}" > ${COMMENT}
#.if (${PKGNAMESUFFIX} == "-canna") || (${PKGNAMESUFFIX} == "-mule") || (${PKGNAMESUFFIX} == "-mule-common")
# @${SED} -e "s/%%XEMACS_VER%%/${XEMACS_VER}/g" \
# -e "s/%%XEMACS_REL%%/${XEMACS_REL}/g" \
# -e "s/%%XEMACS_MAJOR_VER%%/${XEMACS_MAJOR_VER}/g" \
# ${DESCR_TMPL} > ${DESCR}
#.endif
# ${CHOWN} kiri:staff ${COMMENT} ${DESCR}
#
## for make PLIST (only maintainer use)
#arrange::
#.if (${PKGNAMESUFFIX} == "-mule")
# ${RM} -f ${WRKPLIST}
# if [ -f ${PLIST} ]; then ${MV} ${PLIST} ${PLIST}.org; fi
# ${MAKE} build
# ${MAKE} DIRRM2RMDIRS="lib/xemacs/mule-packages/etc lib/xemacs/mule-packages lib/xemacs/mule-packages/etc/app-defaults" \
# DIRRMDEPTH=2 plist
# ${RM} -f ${PLIST}.org
#.endif
#.if ${PKGNAMESUFFIX} == "-mule-common"
# ${RM} -f ${WRKPLIST}.tmp
# if [ -f ${PLIST} ]; then ${MV} ${PLIST} ${PLIST}.org; fi
# ${TOUCH} ${PLIST}
# ${MAKE} build
# ${MAKE} DIRRM2RMDIRS="lib/xemacs-${XEMACS_VER}" PLIST_EXCLS="etc/rc.d" \
# DIRRMDEPTH=1 plist
#.for dirp in site mule xemacs
#.for dir in etc info man pkginfo
# ${ECHO} "@exec mkdir -p %D/lib/xemacs/${dirp}-packages/${dir}" >> ${WRKPLIST}.tmp
# ${ECHO} "@unexec rmdir %D/lib/xemacs/${dirp}-packages/${dir} 2>/dev/null || true" >> ${WRKPLIST}.tmp
#.endfor
# ${ECHO} "@unexec rmdir %D/lib/xemacs/${dirp}-packages 2>/dev/null || true" >> ${WRKPLIST}.tmp
#.endfor
# ${ECHO} "@exec mkdir -p /var/run/emacs/lock ; chmod 1777 /var/run/emacs/lock" >> ${WRKPLIST}.tmp
# ${CAT} ${WRKPLIST} >> ${WRKPLIST}.tmp
# ${MV} ${WRKPLIST}.tmp ${WRKPLIST}
# ${CHOWN} kiri:staff ${WRKPLIST}
# if [ ! -s ${PLIST} ]; then \
# ${MV} ${WRKPLIST} ${PLIST}; \
# fi
# ${RM} -f ${PLIST}.org
#.endif
.if ${PKGNAMESUFFIX} != "-mule-common"
pre-plist:
@${ECHO} "===> pre-plist of ${PKGNAME}"
${MKDIR} ${PREFIX}/lib/xemacs/mule-packages/etc/app-defaults/ja
.endif
MASTERDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}
.include "${MASTERDIR}/Makefile"
|