1999-02-12 14:43:42 +00:00
|
|
|
# New ports collection makefile for: psgml for emacs
|
|
|
|
# Date created: 23 January 1999
|
|
|
|
# Whom: shige
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1999-02-12 14:43:42 +00:00
|
|
|
#
|
|
|
|
|
2000-07-12 15:57:14 +00:00
|
|
|
PORTNAME= psgml
|
2000-04-14 06:21:02 +00:00
|
|
|
PORTVERSION= ${PSGML_VER}
|
1999-02-12 14:43:42 +00:00
|
|
|
CATEGORIES= editors elisp
|
1999-10-16 11:58:04 +00:00
|
|
|
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/sgml/
|
2000-07-12 15:57:14 +00:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
1999-02-12 14:43:42 +00:00
|
|
|
|
2000-01-21 12:40:01 +00:00
|
|
|
MAINTAINER?= shige@FreeBSD.org
|
1999-02-12 14:43:42 +00:00
|
|
|
|
|
|
|
# distfile version
|
2000-05-11 14:35:48 +00:00
|
|
|
PSGML_VER= 1.2.1
|
1999-10-16 11:58:04 +00:00
|
|
|
PSGML_STARTUPEL= psgml-startup.el
|
2000-07-12 15:57:14 +00:00
|
|
|
CATALOG= ${LOCALBASE}/share/sgml/catalog
|
|
|
|
|
|
|
|
SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}"
|
|
|
|
PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL}
|
1999-02-12 14:43:42 +00:00
|
|
|
|
|
|
|
# This is a master port.
|
|
|
|
PORTCLASS?= master
|
|
|
|
|
|
|
|
.if (${PORTCLASS} == "master")
|
2000-07-12 15:57:14 +00:00
|
|
|
EMACS_PORT_NAME= emacs
|
1999-02-12 14:43:42 +00:00
|
|
|
.endif
|
|
|
|
|
2000-07-12 15:57:14 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-02-12 14:43:42 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# emacs ports setup
|
|
|
|
#
|
2000-07-12 15:57:14 +00:00
|
|
|
.if defined(EMACS_PORT_NAME)
|
1999-10-16 11:58:04 +00:00
|
|
|
GNU_CONFIGURE= YES
|
2000-07-12 15:57:14 +00:00
|
|
|
CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \
|
|
|
|
--infodir=${LOCALBASE}/info
|
1999-02-12 14:43:42 +00:00
|
|
|
CONFIGURE_ENV= EMACS=${EMACS_CMD}
|
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO} "Error: Bad port."
|
2000-07-12 15:57:14 +00:00
|
|
|
@${ECHO} "You must define EMACS_PORT_NAME."
|
1999-02-12 14:43:42 +00:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
1999-10-16 11:58:04 +00:00
|
|
|
# DTD catalogs
|
1999-02-12 14:43:42 +00:00
|
|
|
#
|
|
|
|
RUN_DEPENDS+= ${CATALOG}:${PORTSDIR}/textproc/dtd-catalogs
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC} ; \
|
|
|
|
for i in psgml.el psgml.texi ; do \
|
2000-07-12 15:57:14 +00:00
|
|
|
${RM} -f $${i}.in; \
|
|
|
|
${MV} $${i} $${i}.in; \
|
|
|
|
${CAT} $${i}.in | ${SED} -e "s;@prefix@;${LOCALBASE};g" > $${i}; \
|
1999-02-12 14:43:42 +00:00
|
|
|
done)
|
1999-10-16 11:58:04 +00:00
|
|
|
${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR}
|
1999-02-12 14:43:42 +00:00
|
|
|
|
|
|
|
post-install:
|
1999-10-16 11:58:04 +00:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${MAKE} install-info ; \
|
|
|
|
)
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \
|
2000-07-12 15:57:14 +00:00
|
|
|
${LOCALBASE}/${EMACS_LIBDIR}/site-lisp
|
1999-02-12 14:43:42 +00:00
|
|
|
|
2000-07-12 15:57:14 +00:00
|
|
|
.include <bsd.port.post.mk>
|