summaryrefslogtreecommitdiffstats
path: root/textproc/openjade/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/openjade/Makefile')
-rw-r--r--textproc/openjade/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/textproc/openjade/Makefile b/textproc/openjade/Makefile
index f608fc1..267f3ec 100644
--- a/textproc/openjade/Makefile
+++ b/textproc/openjade/Makefile
@@ -22,6 +22,10 @@ BROKEN= nsgmls coredumps in static constructors
PATCH_DIST_STRIP?= -p1
GNU_CONFIGURE= yes
CONFIGURE_ENV= CXXFLAGS="${CFLAGS}"
+CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog
+
+pre-install:
+ @find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
post-install:
.for i in jade nsgmls sgmlnorm spam spent sx
@@ -34,5 +38,10 @@ post-install:
${MKDIR} ${PREFIX}/share/sgml/jade
${INSTALL_DATA} ${WRKSRC}/dsssl/* ${PREFIX}/share/sgml/jade
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m $(PREFIX)/lib
+ @if [ ! -f ${PREFIX}/share/sgml/catalog ]; then \
+ ${ECHO} "CATALOG \"${PREFIX}/share/sgml/jade/catalog\"" > ${PREFIX}/share/sgml/catalog; \
+ else \
+ ${SETENV} LANG=C ${PERL} -ni -e 'print if !m|${PREFIX}/share/sgml/jade/catalog|;print "CATALOG \"${PREFIX}/share/sgml/jade/catalog\"\n" if eof;' ${PREFIX}/share/sgml/catalog; \
+ fi
.include <bsd.port.mk>
OpenPOWER on IntegriCloud