1999-05-09 12:54:11 -04:00
|
|
|
# New ports collection makefile for: semi-current for emacs
|
|
|
|
# Date created: 9 May 1999
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
|
1999-05-09 12:54:11 -04:00
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1999-05-09 12:54:11 -04:00
|
|
|
#
|
|
|
|
|
2000-07-12 11:51:49 -04:00
|
|
|
PORTNAME= semi
|
2000-04-14 02:21:02 -04:00
|
|
|
PORTVERSION= ${SEMI_VER}
|
1999-05-09 12:54:11 -04:00
|
|
|
CATEGORIES= editors elisp
|
1999-10-14 13:39:23 -04:00
|
|
|
MASTER_SITES= ftp://ftp.etl.go.jp/pub/mule/semi/semi-1.13-for-flim-1.13/ \
|
|
|
|
ftp://ftp.media.kyoto-u.ac.jp/pub/mule/semi/semi-1.13-for-flim-1.13/ \
|
|
|
|
ftp://ftp.win.or.jp/pub/word/mule/semi/semi-1.13-for-flim-1.13/ \
|
|
|
|
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/emacs/mule/semi/semi-1.13-for-flim-1.13/
|
2000-07-12 11:51:49 -04:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
1999-05-09 12:54:11 -04:00
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER?= shige@FreeBSD.org
|
1999-05-09 12:54:11 -04:00
|
|
|
|
|
|
|
PORTCLASS?= master
|
|
|
|
|
|
|
|
# distfile version
|
1999-10-11 02:22:08 -04:00
|
|
|
FLIM_VER= 1.13.2
|
2000-01-02 09:20:50 -05:00
|
|
|
SEMI_VER= 1.13.7
|
1999-09-10 15:07:08 -04:00
|
|
|
# setupel filename
|
1999-05-10 11:56:38 -04:00
|
|
|
SEMI_SETUPEL= semi-setupel.el
|
1999-09-10 15:07:08 -04:00
|
|
|
# document install directory by install-doc target
|
|
|
|
SEMIDOCDIR?= share/doc/semi
|
2000-07-12 11:51:49 -04:00
|
|
|
FLIM_COOKIE= flim-${EMACS_PORT_NAME}-${FLIM_VER}.FreeBSD-packages
|
|
|
|
SEMI_COOKIE= semi-${EMACS_PORT_NAME}-${SEMI_VER}.FreeBSD-packages
|
1999-05-09 12:54:11 -04:00
|
|
|
|
|
|
|
.if (${PORTCLASS} == "master")
|
|
|
|
# emacs port setup
|
2000-07-12 11:51:49 -04:00
|
|
|
EMACS_PORT_NAME= emacs
|
1999-10-11 02:22:08 -04:00
|
|
|
# whether emacs requires *-setupel.el
|
2000-07-12 11:51:49 -04:00
|
|
|
REQUIRE_SETUPEL= YES
|
1999-05-09 12:54:11 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# target name for make build
|
|
|
|
ALL_TARGET?= elc
|
2000-07-12 11:51:49 -04:00
|
|
|
# environments
|
|
|
|
SCRIPTS_ENV+= TARGETS="${SEMI_SETUPEL}"
|
|
|
|
PLIST_SUB+= SEMIDOCDIR=${SEMIDOCDIR} SEMI_SETUPEL=${SEMI_SETUPEL} \
|
1999-10-16 02:01:41 -04:00
|
|
|
SEMI_COOKIE=${SEMI_COOKIE}
|
2000-07-12 11:51:49 -04:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(EMACS_PORT_NAME)
|
1999-05-09 12:54:11 -04:00
|
|
|
# depends on flim
|
2000-07-12 11:51:49 -04:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/flim/${FLIM_COOKIE}:${PORTSDIR}/editors/flim-${EMACS_PORT_NAME}-current
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/flim/${FLIM_COOKIE}:${PORTSDIR}/editors/flim-${EMACS_PORT_NAME}-current
|
1999-05-09 12:54:11 -04:00
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO} "Error: Bad port."
|
2000-07-12 11:51:49 -04:00
|
|
|
@${ECHO} "You must define EMACS_PORT_NAME."
|
1999-05-09 12:54:11 -04:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
1999-10-11 02:22:08 -04:00
|
|
|
.if !defined(BUILD_INFO_BY_EMACS) || (${BUILD_INFO_BY_EMACS} == "NO")
|
1999-05-09 12:54:11 -04:00
|
|
|
# info files JIS to EUC
|
|
|
|
BUILD_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf
|
1999-10-11 02:22:08 -04:00
|
|
|
.endif
|
1999-05-09 12:54:11 -04:00
|
|
|
|
|
|
|
pre-configure:
|
1999-09-10 15:07:08 -04:00
|
|
|
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
|
1999-05-09 12:54:11 -04:00
|
|
|
@${CP} ${FILESDIR}/${SEMI_SETUPEL}.in ${WRKDIR}
|
|
|
|
.endif
|
|
|
|
|
1999-09-10 15:07:08 -04:00
|
|
|
MAKEINFO= makeinfo --no-split --no-validate
|
|
|
|
MAKEINFO_EMACS= ${EMACS_CMD} -no-site-file -no-init-file -batch
|
|
|
|
MAKEINFO_EMACS_FLAGS= -e texinfo-format-buffer -f save-buffer
|
1999-05-09 12:54:11 -04:00
|
|
|
|
2000-01-11 09:42:30 -05:00
|
|
|
pre-build:
|
|
|
|
.if defined(EMACS_PACKAGESDIR) && defined(XEMACS_PKGNAME)
|
|
|
|
@${MAKE} pkg-el-copy
|
|
|
|
.endif
|
|
|
|
|
1999-05-09 12:54:11 -04:00
|
|
|
post-build:
|
1999-10-11 02:22:08 -04:00
|
|
|
.if defined(BUILD_INFO_BY_EMACS) && (${BUILD_INFO_BY_EMACS} == "YES")
|
|
|
|
@${MAKE} info-build-by-emacs
|
|
|
|
.else
|
1999-09-10 15:07:08 -04:00
|
|
|
@${MAKE} info-build
|
1999-10-11 02:22:08 -04:00
|
|
|
.endif
|
1999-09-10 15:07:08 -04:00
|
|
|
|
1999-10-18 12:21:12 -04:00
|
|
|
pre-install:
|
|
|
|
.if defined(EMACS_PACKAGESDIR) && defined(EMACS_PACKAGES_SUBDIRS)
|
|
|
|
@${MAKE} mkdir-site-packages
|
|
|
|
.endif
|
2000-01-11 09:42:30 -05:00
|
|
|
.if defined(EMACS_PACKAGESDIR) && defined(XEMACS_PKGNAME)
|
|
|
|
@${MAKE} pkg-el-install
|
|
|
|
.endif
|
1999-10-18 12:21:12 -04:00
|
|
|
|
1999-09-10 15:07:08 -04:00
|
|
|
post-install:
|
2000-07-12 11:51:49 -04:00
|
|
|
@${MKDIR} -p ${LOCALBASE}/share/semi
|
|
|
|
@${TOUCH} ${LOCALBASE}/share/semi/${SEMI_COOKIE}
|
1999-09-10 15:07:08 -04:00
|
|
|
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
|
|
|
|
@${MAKE} setupel-install
|
|
|
|
.endif
|
|
|
|
.if defined(EMACS_PACKAGESDIR) && defined(MANIFEST)
|
|
|
|
@${MAKE} info-package-install
|
|
|
|
@${MAKE} manifest-install
|
|
|
|
.else
|
|
|
|
@${MAKE} info-install
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MAKE} doc-install
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
1999-10-11 02:22:08 -04:00
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# miscellaneous local functions
|
|
|
|
#
|
1999-09-10 15:07:08 -04:00
|
|
|
info-build:
|
1999-05-09 12:54:11 -04:00
|
|
|
@(cd ${WRKSRC} ; \
|
1999-10-11 02:22:08 -04:00
|
|
|
for i in mime-ui-en.texi; do \
|
1999-05-09 12:54:11 -04:00
|
|
|
${MV} $${i} $${i}.jis ; \
|
|
|
|
${CAT} $${i}.jis | nkf -e > $${i} ; \
|
|
|
|
${MAKEINFO} $${i} || ${TRUE} ; \
|
|
|
|
done)
|
2000-07-12 11:51:49 -04:00
|
|
|
.if defined(EMACS_HAS_MULE) && (${EMACS_HAS_MULE} == "YES")
|
1999-05-09 12:54:11 -04:00
|
|
|
@(cd ${WRKSRC} ; \
|
1999-10-11 02:22:08 -04:00
|
|
|
for i in mime-ui-ja.texi; do \
|
1999-09-10 15:07:08 -04:00
|
|
|
${MV} $${i} $${i}.jis ; \
|
|
|
|
${CAT} $${i}.jis | nkf -e > $${i} ; \
|
1999-10-11 02:22:08 -04:00
|
|
|
${MAKEINFO} $${i} || ${TRUE} ; \
|
|
|
|
done)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
info-build-by-emacs:
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
for i in mime-ui-en.texi; do \
|
1999-09-10 15:07:08 -04:00
|
|
|
${MAKEINFO_EMACS} $${i} ${MAKEINFO_EMACS_FLAGS} || ${TRUE} ; \
|
1999-05-09 12:54:11 -04:00
|
|
|
done)
|
2000-07-12 11:51:49 -04:00
|
|
|
.if defined(EMACS_HAS_MULE) && (${EMACS_HAS_MULE} == "YES")
|
1999-10-11 02:22:08 -04:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
for i in mime-ui-ja.texi; do \
|
|
|
|
${MAKEINFO_EMACS} $${i} ${MAKEINFO_EMACS_FLAGS} || ${TRUE} ; \
|
|
|
|
done)
|
|
|
|
.endif
|
1999-09-10 15:07:08 -04:00
|
|
|
|
2000-01-11 09:42:30 -05:00
|
|
|
pkg-el-copy:
|
|
|
|
@(if [ -f ${FILESDIR}/_pkg.el ] ; then \
|
|
|
|
${CP} ${FILESDIR}/_pkg.el ${WRKSRC}/_pkg.el ;\
|
|
|
|
fi)
|
|
|
|
|
|
|
|
pkg-el-install:
|
|
|
|
@(if [ -f ${FILESDIR}/_pkg.el ] ; then \
|
2000-07-12 11:51:49 -04:00
|
|
|
${MKDIR} ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME} ;\
|
2000-01-11 09:42:30 -05:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/_pkg.el \
|
2000-07-12 11:51:49 -04:00
|
|
|
${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/${XEMACS_PKGNAME}/_pkg.el ;\
|
2000-01-11 09:42:30 -05:00
|
|
|
fi)
|
|
|
|
|
1999-10-18 12:21:12 -04:00
|
|
|
mkdir-site-packages:
|
|
|
|
@(for i in ${EMACS_PACKAGES_SUBDIRS} ; do \
|
2000-07-12 11:51:49 -04:00
|
|
|
${MKDIR} ${LOCALBASE}/${EMACS_PACKAGESDIR}/$${i} ; \
|
1999-10-18 12:21:12 -04:00
|
|
|
done)
|
|
|
|
|
1999-09-10 15:07:08 -04:00
|
|
|
doc-install:
|
2000-07-12 11:51:49 -04:00
|
|
|
@${MKDIR} ${LOCALBASE}/${SEMIDOCDIR}
|
1999-05-09 12:54:11 -04:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
for i in ChangeLog NEWS README.* TODO VERSION ; do \
|
2000-07-12 11:51:49 -04:00
|
|
|
${INSTALL_DATA} $${i} ${LOCALBASE}/${SEMIDOCDIR}/ ; \
|
1999-05-09 12:54:11 -04:00
|
|
|
done)
|
1999-09-10 15:07:08 -04:00
|
|
|
|
|
|
|
setupel-install:
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${SEMI_SETUPEL} \
|
2000-07-12 11:51:49 -04:00
|
|
|
${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
1999-09-10 15:07:08 -04:00
|
|
|
|
|
|
|
info-install:
|
|
|
|
@(cd ${WRKSRC} ; \
|
1999-10-11 02:22:08 -04:00
|
|
|
for i in mime-ui-en.info; do \
|
2000-07-12 11:51:49 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${i} ${LOCALBASE}/info ; \
|
|
|
|
install-info ${LOCALBASE}/info/$${i} ${LOCALBASE}/info/dir ; \
|
1999-10-11 02:22:08 -04:00
|
|
|
done)
|
2000-07-12 11:51:49 -04:00
|
|
|
.if defined(EMACS_HAS_MULE) && (${EMACS_HAS_MULE} == "YES")
|
1999-10-11 02:22:08 -04:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
for i in mime-ui-ja.info; do \
|
2000-07-12 11:51:49 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${i} ${LOCALBASE}/info ; \
|
|
|
|
install-info ${LOCALBASE}/info/$${i} ${LOCALBASE}/info/dir ; \
|
1999-09-10 15:07:08 -04:00
|
|
|
done)
|
1999-10-11 02:22:08 -04:00
|
|
|
.endif
|
1999-09-10 15:07:08 -04:00
|
|
|
|
|
|
|
info-package-install:
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
for i in mime-ui-en.info mime-ui-ja.info; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${i} \
|
2000-07-12 11:51:49 -04:00
|
|
|
${LOCALBASE}/${EMACS_PACKAGESDIR}/info ; \
|
1999-09-10 15:07:08 -04:00
|
|
|
done ; \
|
2000-07-12 11:51:49 -04:00
|
|
|
${MKDIR} -p ${LOCALBASE}/${EMACS_PACKAGESDIR}/man/semi ; \
|
1999-09-10 15:07:08 -04:00
|
|
|
for i in mime-ui-en.texi mime-ui-ja.texi; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${i} \
|
2000-07-12 11:51:49 -04:00
|
|
|
${LOCALBASE}/${EMACS_PACKAGESDIR}/man/semi ; \
|
1999-09-10 15:07:08 -04:00
|
|
|
done)
|
|
|
|
|
|
|
|
manifest-install:
|
|
|
|
@${RM} -f ${WRKDIR}/${MANIFEST}
|
2000-10-08 06:23:48 -04:00
|
|
|
@${CAT} ${PLIST} | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \
|
1999-09-10 15:07:08 -04:00
|
|
|
${SED} -e "s;^%%EMACS_PACKAGESDIR%%/;;" > ${WRKDIR}/${MANIFEST}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
2000-07-12 11:51:49 -04:00
|
|
|
${LOCALBASE}/${EMACS_PACKAGESDIR}/pkginfo/
|
1999-05-09 12:54:11 -04:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|