summaryrefslogtreecommitdiff
path: root/textproc/tei-p4/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-03 23:20:01 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-03 23:20:01 +0000
commit4cfd446861e75c9face438c4f558a6580297edee (patch)
tree01939e6a486763ef0d82d72094386837fee2fafe /textproc/tei-p4/Makefile
parent- fix compiling when PostgreSQL is not installed before building this port (diff)
New Port: TEI P4 DTD
DTD of the Text Encoding Initiative PR: ports/38332 Submitted by: Henrik Motakef <henrik.motakef@web.de>
Diffstat (limited to 'textproc/tei-p4/Makefile')
-rw-r--r--textproc/tei-p4/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/textproc/tei-p4/Makefile b/textproc/tei-p4/Makefile
new file mode 100644
index 000000000000..1cd844510cd6
--- /dev/null
+++ b/textproc/tei-p4/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: tei-p4
+# Date created: 29 April 2002
+# Whom: Henrik Motakef
+#
+# $FreeBSD$
+#
+
+PORTNAME= tei
+PORTVERSION= p4
+CATEGORIES= textproc
+MASTER_SITES= http://www.tei-c.org/P4X/DTD/
+DISTNAME= dtd
+
+MAINTAINE= henrik.motakef@web.de
+
+RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+
+USE_ZIP= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+PLIST_SUB= DTD_NAME=${PORTNAME} DTD_VERSION=${PORTVERSION} \
+ MKCATALOG=${MKCATALOG}
+
+DTD= dtd.zip
+SGMLDIR= ${PREFIX}/share/sgml
+INSTDIR= ${SGMLDIR}/${PORTNAME}/${PORTVERSION}
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
+
+pre-install:
+ @[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/*.dtd ${INSTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.ent ${INSTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.dec ${INSTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/teicatalog.xml ${INSTDIR}
+ ${SED} -e "s!&DTDpath;!${INSTDIR}/!" ${WRKSRC}/catalog.tei > ${INSTDIR}/catalog
+
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}
+
+.include <bsd.port.mk>