aboutsummaryrefslogtreecommitdiff
path: root/deskutils/mhc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/mhc/Makefile')
-rw-r--r--deskutils/mhc/Makefile42
1 files changed, 32 insertions, 10 deletions
diff --git a/deskutils/mhc/Makefile b/deskutils/mhc/Makefile
index 55df724556c1..3e571be322a7 100644
--- a/deskutils/mhc/Makefile
+++ b/deskutils/mhc/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: mhc
+# New ports collection makefile for: mhc (for emacs21)
# Date Created: 6 Mar 2001
# Whom: Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
#
@@ -12,30 +12,52 @@ MASTER_SITES= http://www.quickhack.net/mhc/arc/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= ${PORTNAME}-current-snap${PORTVERSION}
-MAINTAINER?= yoichi@eken.phys.nagoya-u.ac.jp
+MAINTAINER= yoichi@FreeBSD.org
WRKSRC= ${WRKDIR}/${DISTNAME}/emacs
-EMACS_PORT_NAME?= emacs20
+EMACS_PORT_NAME?= emacs21
.include <bsd.port.pre.mk>
-.if (${EMACS_PORT_NAME} == "emacs20")
-ALL_TARGET= elc
-.endif
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
ALL_TARGET= package
INSTALL_TARGET= install-package
-PLIST= ${PKGDIR}/pkg-plist.xemacs21-mule
+LISPDIR= ${EMACS_LIBDIR}/site-packages/lisp/${PORTNAME}
+ICONDIR= ${EMACS_LIBDIR}/site-packages/etc/${PORTNAME}
+IMG_SUFFIX= xpm
+XEMACS_ONLY= ""
+EMACS_ONLY= "@comment "
+EMACS21_ONLY= "@comment "
+.else
+ALL_TARGET= elc
+MAKE_ARGS+= INST_OPTS="--with-lispdir=${PREFIX}/${LISPDIR}"
+LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
+ICONDIR= ${EMACS_LIBDIR}/etc/${PORTNAME}/icons
+XEMACS_ONLY= "@comment "
+EMACS_ONLY= ""
+.if (${EMACS_PORT_NAME} == "emacs21")
+IMG_SUFFIX= xpm
+EMACS21_ONLY= ""
+.else
+IMG_SUFFIX= xbm
+EMACS21_ONLY= "@comment "
.endif
+.endif
+
+PLIST_SUB+= LISPDIR=${LISPDIR} \
+ ICONDIR=${ICONDIR} IMG_SUFFIX=${IMG_SUFFIX} \
+ XEMACS_ONLY=${XEMACS_ONLY} \
+ EMACS_ONLY=${EMACS_ONLY} \
+ EMACS21_ONLY=${EMACS21_ONLY}
DOCS= 00copyright 00readme 00readme.jis emacs/00usage.jis
DOCSDIR= ${PREFIX}/share/doc/mhc
post-install:
-.if (${EMACS_PORT_NAME} == "emacs20")
- ${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-lisp/mhc/icons
- ${INSTALL_DATA} ${WRKSRC}/../icons/*.xbm ${PREFIX}/${EMACS_LIBDIR}/site-lisp/mhc/icons
+.if (${EMACS_PORT_NAME} == "emacs20") || (${EMACS_PORT_NAME} == "emacs21")
+ ${MKDIR} ${PREFIX}/${ICONDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../icons/*.${IMG_SUFFIX} ${PREFIX}/${ICONDIR}
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}