aboutsummaryrefslogtreecommitdiffstats
path: root/editors/apel-emacs
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>1999-10-19 00:18:22 +0800
committershige <shige@FreeBSD.org>1999-10-19 00:18:22 +0800
commitf234deccd1aaaf5194fe178ef6deec727a8497c9 (patch)
treeba9ea804737e8426af3be0eda9a7749f7c24a5d0 /editors/apel-emacs
parentb9c3b05747f47ee40c076816b6e00eb644c17748 (diff)
downloadfreebsd-ports-graphics-f234deccd1aaaf5194fe178ef6deec727a8497c9.tar.gz
freebsd-ports-graphics-f234deccd1aaaf5194fe178ef6deec727a8497c9.tar.zst
freebsd-ports-graphics-f234deccd1aaaf5194fe178ef6deec727a8497c9.zip
Install to ${PREFIX}/lib/xemacs/site-packages as XEmacs packages.
RUN_DEPENDS on xemacs-sumo-packages. Pointed out by: HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp>
Diffstat (limited to 'editors/apel-emacs')
-rw-r--r--editors/apel-emacs/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/editors/apel-emacs/Makefile b/editors/apel-emacs/Makefile
index 8e22fc46d2d..af616af4fbd 100644
--- a/editors/apel-emacs/Makefile
+++ b/editors/apel-emacs/Makefile
@@ -52,6 +52,10 @@ RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
.endif
+.if defined(EMACS_PACKAGESDIR)
+BUILD_DEPENDS+= ${PREFIX}/${EMACS_PACKAGESDIR}/../xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
+RUN_DEPENDS+= ${PREFIX}/${EMACS_PACKAGESDIR}/../xemacs-packages/lisp/xemacs-base/advice.el:${PORTSDIR}/editors/xemacs-sumo-packages
+.endif
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
@@ -74,6 +78,11 @@ pre-configure:
@${CP} ${FILESDIR}/${APEL_SETUPEL}.in ${WRKDIR}
.endif
+pre-install:
+.if defined(EMACS_PACKAGESDIR) && defined(EMACS_PACKAGES_SUBDIRS)
+ @${MAKE} mkdir-site-packages
+.endif
+
post-install:
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
@${MAKE} setupel-install
@@ -86,7 +95,15 @@ post-install:
.endif
-# install functions
+###############################################################################
+#
+# local functions
+#
+mkdir-site-packages:
+ @(for i in ${EMACS_PACKAGES_SUBDIRS} ; do \
+ ${MKDIR} ${PREFIX}/${EMACS_PACKAGESDIR}/$${i} ; \
+ done)
+
doc-install:
@${MKDIR} ${PREFIX}/${APELDOCDIR}
@(cd ${WRKSRC} ; \