summaryrefslogtreecommitdiff
path: root/editors/psgml/Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2005-05-12 20:27:09 +0000
committerHiroki Sato <hrs@FreeBSD.org>2005-05-12 20:27:09 +0000
commite031c0ac38057657579b059744aa651cc9f51335 (patch)
treeafeb2e1ef304c4cb3496a7c079fc4140246898d8 /editors/psgml/Makefile
parentFinish repo-copy of old py-wxPython 2.4.2 to py-wxPython24. (diff)
- Change the install directory to Emacs version specific ones[1].
Bump PORTREVISION. - Clean up the slave ports[1]. - Mark as BROKEN for ia64[2]. PR[1]: ports/80644 Based on work by[1]: KIMURA Yasuhiro Reported from[2]: pointyhat
Notes
Notes: svn path=/head/; revision=135154
Diffstat (limited to 'editors/psgml/Makefile')
-rw-r--r--editors/psgml/Makefile32
1 files changed, 17 insertions, 15 deletions
diff --git a/editors/psgml/Makefile b/editors/psgml/Makefile
index 0868a7bd7947..13e6af17ac0c 100644
--- a/editors/psgml/Makefile
+++ b/editors/psgml/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= psgml
-PORTVERSION= ${PSGML_VER}
-PORTREVISION= 0
+PORTVERSION= 1.3.2
+PORTREVISION= 1
CATEGORIES= editors elisp
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= psgml
@@ -22,18 +22,22 @@ COMMENT?= A major mode for editing SGML and XML documents for emacs21
INFO= psgml psgml-api
-# distfile version
-PSGML_VER= 1.3.2
PSGML_STARTUPEL= psgml-startup.el
-SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}" SED=${SED}
-PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL}
+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.
-PORTCLASS?= master
+EMACS_PORT_NAME?= emacs21
-.if (${PORTCLASS} == "master")
-EMACS_PORT_NAME= emacs21
+.if ${EMACS_PORT_NAME} == xemacs21-mule
+PLIST_SUB+= XEMACS="" \
+ NON_XEMACS="@comment "
+.else
+PLIST_SUB+= XEMACS="@comment " \
+ NON_XEMACS=""
.endif
.include <bsd.port.pre.mk>
@@ -42,9 +46,10 @@ EMACS_PORT_NAME= emacs21
# emacs ports setup
#
.if defined(EMACS_PORT_NAME)
+PSGML_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/psgml
GNU_CONFIGURE= YES
-CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \
- --infodir=${LOCALBASE}/info
+CONFIGURE_ARGS= --lispdir=${PSGML_LISPDIR} \
+ --infodir=${PREFIX}/${INFO_PATH}
CONFIGURE_ENV= EMACS=${EMACS_CMD}
.else
.BEGIN:
@@ -53,12 +58,9 @@ CONFIGURE_ENV= EMACS=${EMACS_CMD}
@${FALSE}
.endif
-pre-configure:
- ${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR}
-
post-install:
cd ${WRKSRC} && ${MAKE} install-info
${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \
- ${LOCALBASE}/${EMACS_LIBDIR}/site-lisp
+ ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
.include <bsd.port.post.mk>