diff options
author | Shigeyuki Fukushima <shige@FreeBSD.org> | 2000-07-12 15:57:14 +0000 |
---|---|---|
committer | Shigeyuki Fukushima <shige@FreeBSD.org> | 2000-07-12 15:57:14 +0000 |
commit | e0b80a27809429bd92762e738de9831262be7c57 (patch) | |
tree | 3e46f5e53e26a802968f5820501545d21494aa93 /editors/psgml | |
parent | 6c420154581a1c6ca32213a2818cf903013c2b09 (diff) | |
download | ports-e0b80a27809429bd92762e738de9831262be7c57.tar.gz ports-e0b80a27809429bd92762e738de9831262be7c57.zip |
Notes
Diffstat (limited to 'editors/psgml')
-rw-r--r-- | editors/psgml/Makefile | 49 |
1 files changed, 17 insertions, 32 deletions
diff --git a/editors/psgml/Makefile b/editors/psgml/Makefile index 153acc823fea..957b12e08ce2 100644 --- a/editors/psgml/Makefile +++ b/editors/psgml/Makefile @@ -5,58 +5,43 @@ # $FreeBSD$ # -PORTNAME= psgml-${EMACS_PORT} +PORTNAME= psgml PORTVERSION= ${PSGML_VER} CATEGORIES= editors elisp MASTER_SITES= ftp://ftp.lysator.liu.se/pub/sgml/ -DISTNAME= psgml-${PSGML_VER} +PKGNAMESUFFIX= -${EMACS_PORT_NAME} MAINTAINER?= shige@FreeBSD.org # distfile version PSGML_VER= 1.2.1 PSGML_STARTUPEL= psgml-startup.el -CATALOG= ${PREFIX}/share/sgml/catalog +CATALOG= ${LOCALBASE}/share/sgml/catalog + +SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}" +PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL} # This is a master port. PORTCLASS?= master .if (${PORTCLASS} == "master") -EMACS_NAME= emacs -EMACS_PORT= emacs -EMACS_VER= 19.34 -EMACS_LIBDIR= share/${EMACS_NAME} +EMACS_PORT_NAME= emacs .endif -# if RUN_DEPENDS emacs port name has the suffix `-common' -.if !defined(HAS_COMMON_PORT) -HAS_COMMON_PORT= NO -.endif +.include <bsd.port.pre.mk> # # emacs ports setup # -.if defined(EMACS_PORT) -EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER} -BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT} -.if defined(HAS_COMMON_PORT) && (${HAS_COMMON_PORT} == "YES") -RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common -.else -RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT} -.endif +.if defined(EMACS_PORT_NAME) GNU_CONFIGURE= YES -CONFIGURE_ARGS= --lispdir=${PREFIX}/${EMACS_LIBDIR}/site-lisp/psgml \ - --infodir=${PREFIX}/info +CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \ + --infodir=${LOCALBASE}/info CONFIGURE_ENV= EMACS=${EMACS_CMD} -MAKE_FLAGS= EMACS=${EMACS_CMD} -SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}" \ - EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} -PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \ - PSGML_STARTUPEL=${PSGML_STARTUPEL} .else .BEGIN: @${ECHO} "Error: Bad port." - @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR." + @${ECHO} "You must define EMACS_PORT_NAME." @${FALSE} .endif @@ -68,9 +53,9 @@ RUN_DEPENDS+= ${CATALOG}:${PORTSDIR}/textproc/dtd-catalogs pre-configure: (cd ${WRKSRC} ; \ for i in psgml.el psgml.texi ; do \ - ${RM} -f $${i}.in ; \ - ${MV} $${i} $${i}.in ; \ - ${CAT} $${i}.in | ${SED} -e "s;@prefix@;${PREFIX};g" > $${i} ; \ + ${RM} -f $${i}.in; \ + ${MV} $${i} $${i}.in; \ + ${CAT} $${i}.in | ${SED} -e "s;@prefix@;${LOCALBASE};g" > $${i}; \ done) ${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR} @@ -79,6 +64,6 @@ post-install: ${MAKE} install-info ; \ ) @${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \ - ${PREFIX}/${EMACS_LIBDIR}/site-lisp + ${LOCALBASE}/${EMACS_LIBDIR}/site-lisp -.include <bsd.port.mk> +.include <bsd.port.post.mk> |