1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/editors/psgml-emacs/Makefile

70 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: psgml for emacs
# Date created: 23 January 1999
# Whom: shige
#
1999-08-25 05:57:29 +00:00
# $FreeBSD$
#
PORTNAME= psgml
PORTVERSION= ${PSGML_VER}
CATEGORIES= editors elisp
1999-10-16 11:58:04 +00:00
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/sgml/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= shige@FreeBSD.org
# distfile version
PSGML_VER= 1.2.1
1999-10-16 11:58:04 +00:00
PSGML_STARTUPEL= psgml-startup.el
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_PORT_NAME= emacs
.endif
.include <bsd.port.pre.mk>
#
# emacs ports setup
#
.if defined(EMACS_PORT_NAME)
1999-10-16 11:58:04 +00:00
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \
--infodir=${LOCALBASE}/info
CONFIGURE_ENV= EMACS=${EMACS_CMD}
.else
.BEGIN:
@${ECHO} "Error: Bad port."
@${ECHO} "You must define EMACS_PORT_NAME."
@${FALSE}
.endif
#
1999-10-16 11:58:04 +00:00
# DTD catalogs
#
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@;${LOCALBASE};g" > $${i}; \
done)
1999-10-16 11:58:04 +00:00
${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR}
post-install:
1999-10-16 11:58:04 +00:00
@(cd ${WRKSRC} ; \
${MAKE} install-info ; \
)
@${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \
${LOCALBASE}/${EMACS_LIBDIR}/site-lisp
.include <bsd.port.post.mk>