1999-02-12 15:43:42 +01:00
|
|
|
# New ports collection makefile for: psgml for emacs
|
|
|
|
# Date created: 23 January 1999
|
|
|
|
# Whom: shige
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1999-02-12 15:43:42 +01:00
|
|
|
#
|
|
|
|
|
2000-07-12 17:57:14 +02:00
|
|
|
PORTNAME= psgml
|
2000-04-14 08:21:02 +02:00
|
|
|
PORTVERSION= ${PSGML_VER}
|
2003-07-04 16:28:43 +02:00
|
|
|
PORTREVISION= 3
|
1999-02-12 15:43:42 +01:00
|
|
|
CATEGORIES= editors elisp
|
2001-12-03 06:26:03 +01:00
|
|
|
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/sgml/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= psgml
|
2000-07-12 17:57:14 +02:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
1999-02-12 15:43:42 +01:00
|
|
|
|
2002-01-20 16:07:45 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
PATCH_SITE_SUBDIR= kuriyama
|
|
|
|
PATCHFILES= psgml-symbol-conflict-020120.gz
|
|
|
|
|
2000-01-21 13:40:01 +01:00
|
|
|
MAINTAINER?= shige@FreeBSD.org
|
2003-03-07 01:16:25 +01:00
|
|
|
COMMENT?= A major mode for editing SGML and XML documents for emacs21
|
1999-02-12 15:43:42 +01:00
|
|
|
|
|
|
|
# distfile version
|
2002-01-05 09:36:02 +01:00
|
|
|
PSGML_VER= 1.2.4
|
1999-10-16 13:58:04 +02:00
|
|
|
PSGML_STARTUPEL= psgml-startup.el
|
2000-07-12 17:57:14 +02:00
|
|
|
|
|
|
|
SCRIPTS_ENV= TARGETS="${PSGML_STARTUPEL}"
|
|
|
|
PLIST_SUB= PSGML_STARTUPEL=${PSGML_STARTUPEL}
|
1999-02-12 15:43:42 +01:00
|
|
|
|
|
|
|
# This is a master port.
|
|
|
|
PORTCLASS?= master
|
|
|
|
|
|
|
|
.if (${PORTCLASS} == "master")
|
2001-12-03 10:51:27 +01:00
|
|
|
EMACS_PORT_NAME= emacs21
|
1999-02-12 15:43:42 +01:00
|
|
|
.endif
|
|
|
|
|
2000-07-12 17:57:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-02-12 15:43:42 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# emacs ports setup
|
|
|
|
#
|
2000-07-12 17:57:14 +02:00
|
|
|
.if defined(EMACS_PORT_NAME)
|
1999-10-16 13:58:04 +02:00
|
|
|
GNU_CONFIGURE= YES
|
2000-07-12 17:57:14 +02:00
|
|
|
CONFIGURE_ARGS= --lispdir=${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/psgml \
|
|
|
|
--infodir=${LOCALBASE}/info
|
1999-02-12 15:43:42 +01:00
|
|
|
CONFIGURE_ENV= EMACS=${EMACS_CMD}
|
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO} "Error: Bad port."
|
2000-07-12 17:57:14 +02:00
|
|
|
@${ECHO} "You must define EMACS_PORT_NAME."
|
1999-02-12 15:43:42 +01:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC} ; \
|
|
|
|
for i in psgml.el psgml.texi ; do \
|
2000-07-12 17:57:14 +02:00
|
|
|
${RM} -f $${i}.in; \
|
|
|
|
${MV} $${i} $${i}.in; \
|
|
|
|
${CAT} $${i}.in | ${SED} -e "s;@prefix@;${LOCALBASE};g" > $${i}; \
|
1999-02-12 15:43:42 +01:00
|
|
|
done)
|
1999-10-16 13:58:04 +02:00
|
|
|
${CP} ${FILESDIR}/${PSGML_STARTUPEL}.in ${WRKDIR}
|
1999-02-12 15:43:42 +01:00
|
|
|
|
|
|
|
post-install:
|
1999-10-16 13:58:04 +02:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${MAKE} install-info ; \
|
|
|
|
)
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${PSGML_STARTUPEL} \
|
2000-07-12 17:57:14 +02:00
|
|
|
${LOCALBASE}/${EMACS_LIBDIR}/site-lisp
|
1999-02-12 15:43:42 +01:00
|
|
|
|
2000-07-12 17:57:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|