aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2007-09-02 21:29:49 +0800
committerhrs <hrs@FreeBSD.org>2007-09-02 21:29:49 +0800
commitb8ca0d8c20b79161e0f1074cd0be5b95325376a7 (patch)
treed2298679010c47a65e4b1286640ae0418152ec5e /editors
parent8ad8f931d0984849cb96c4a4cddcfada7e8c7d10 (diff)
downloadfreebsd-ports-gnome-b8ca0d8c20b79161e0f1074cd0be5b95325376a7.tar.gz
freebsd-ports-gnome-b8ca0d8c20b79161e0f1074cd0be5b95325376a7.tar.zst
freebsd-ports-gnome-b8ca0d8c20b79161e0f1074cd0be5b95325376a7.zip
EMACS_PORT_NAME cleanups and some style fixes.
Diffstat (limited to 'editors')
-rw-r--r--editors/psgml/Makefile36
1 files changed, 11 insertions, 25 deletions
diff --git a/editors/psgml/Makefile b/editors/psgml/Makefile
index 73e15e911f4f..cdcf08e36ff7 100644
--- a/editors/psgml/Makefile
+++ b/editors/psgml/Makefile
@@ -18,20 +18,23 @@ PATCH_SITE_SUBDIR= hrs
PATCHFILES= psgml-symbol-conflict-050503.diff.gz
MAINTAINER?= hrs@FreeBSD.org
-COMMENT?= A major mode for editing SGML and XML documents for emacs21
-
-INFO= psgml psgml-api
-
-PSGML_STARTUPEL= psgml-startup.el
+COMMENT= A major mode for editing SGML and XML documents for ${EMACS_PORT_NAME}
SUB_FILES= ${PSGML_STARTUPEL}
SUB_LIST= PSGML_LISPDIR=${PSGML_LISPDIR}
PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL}
NOT_FOR_ARCHS= ia64
-
-# This is a master port.
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS= --lispdir=${PSGML_LISPDIR}
+CONFIGURE_ENV= EMACS=${EMACS_CMD}
USE_EMACS= yes
-EMACS_PORT_NAME?= emacs21
+
+INFO= psgml psgml-api
+
+PSGML_STARTUPEL= psgml-startup.el
+PSGML_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/psgml
+
+.include <bsd.port.pre.mk>
.if ${EMACS_PORT_NAME} == xemacs21-mule
PLIST_SUB+= XEMACS="" \
@@ -41,23 +44,6 @@ PLIST_SUB+= XEMACS="@comment " \
NON_XEMACS=""
.endif
-.include <bsd.port.pre.mk>
-
-#
-# emacs ports setup
-#
-.if defined(EMACS_PORT_NAME)
-PSGML_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/psgml
-GNU_CONFIGURE= YES
-CONFIGURE_ARGS= --lispdir=${PSGML_LISPDIR}
-CONFIGURE_ENV= EMACS=${EMACS_CMD}
-.else
-.BEGIN:
- @${ECHO} "Error: Bad port."
- @${ECHO} "You must define EMACS_PORT_NAME."
- @${FALSE}
-.endif
-
post-install:
cd ${WRKSRC} && ${MAKE} install-info
${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \