diff options
author | minskim <minskim@pkgsrc.org> | 2004-02-09 15:46:51 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-02-09 15:46:51 +0000 |
commit | ce7483e4fd87995db0c279bc0b323e4fcb88a7ac (patch) | |
tree | ded5967589af134b03f7a8d75abe52b5bd92c25e /textproc/docbook | |
parent | ebd50439aef820740dfb273e3935e31564f1100c (diff) | |
download | pkgsrc-ce7483e4fd87995db0c279bc0b323e4fcb88a7ac.tar.gz |
Do not modify installed read-only files; do it at build time.
Approved by wiz@.
Diffstat (limited to 'textproc/docbook')
-rw-r--r-- | textproc/docbook/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/textproc/docbook/Makefile b/textproc/docbook/Makefile index 8f07e5729ae..5970f847122 100644 --- a/textproc/docbook/Makefile +++ b/textproc/docbook/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2004/01/23 17:18:32 jmmv Exp $ +# $NetBSD: Makefile,v 1.26 2004/02/09 15:46:51 minskim Exp $ # FreeBSD Id: Makefile,v 1.4 1998/06/27 05:19:35 asami Exp # @@ -25,7 +25,6 @@ WRKSRC= ${WRKDIR} NO_MTREE= yes USE_BUILDLINK2= yes EXTRACT_ONLY= # empty -NO_BUILD= yes INSTDIR= ${PREFIX}/share/sgml/docbook ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog @@ -36,6 +35,12 @@ SGML_CATALOGS+= ${INSTDIR}/${ver}/catalog .endfor .undef ver +do-build: +.for ver in 241 30 31 40 41 42 + ${CP} ${FILESDIR}/catalog${ver} ${WRKDIR} + ${ECHO} "CATALOG \"${ISOCAT}\"" >> ${WRKDIR}/catalog${ver} +.endfor + pre-install: ${INSTALL_DATA_DIR} ${INSTDIR}/2.4.1 @[ -d ${INSTDIR}/3.0 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/3.0 @@ -50,43 +55,37 @@ do-install: # @(cd ${INSTDIR}/2.4.1; unzip ${DISTDIR}/docbk241.zip) @${RM} -r ${INSTDIR}/2.4.1/iso-* - @${INSTALL_DATA} ${FILESDIR}/catalog241 ${INSTDIR}/2.4.1/catalog - @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/2.4.1/catalog + @${INSTALL_DATA} ${WRKDIR}/catalog241 ${INSTDIR}/2.4.1/catalog @${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/* # # 3.0: # @(cd ${INSTDIR}/3.0; unzip ${DISTDIR}/docbk30.zip) - @${INSTALL_DATA} ${FILESDIR}/catalog30 ${INSTDIR}/3.0/catalog - @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.0/catalog + @${INSTALL_DATA} ${WRKDIR}/catalog30 ${INSTDIR}/3.0/catalog @${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/* # # 3.1: # @(cd ${INSTDIR}/3.1; unzip ${DISTDIR}/docbk31.zip) - @${INSTALL_DATA} ${FILESDIR}/catalog31 ${INSTDIR}/3.1/catalog - @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.1/catalog + @${INSTALL_DATA} ${WRKDIR}/catalog31 ${INSTDIR}/3.1/catalog @${CHMOD} ${SHAREMODE} ${INSTDIR}/3.1/* # # 4.0: # @(cd ${INSTDIR}/4.0; unzip ${DISTDIR}/docbk40.zip) - @${INSTALL_DATA} ${FILESDIR}/catalog40 ${INSTDIR}/4.0/catalog - @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.0/catalog + @${INSTALL_DATA} ${WRKDIR}/catalog40 ${INSTDIR}/4.0/catalog @${CHMOD} ${SHAREMODE} ${INSTDIR}/4.0/* # # 4.1: # @(cd ${INSTDIR}/4.1; unzip ${DISTDIR}/docbk41.zip) - @${INSTALL_DATA} ${FILESDIR}/catalog41 ${INSTDIR}/4.1/catalog - @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.1/catalog + @${INSTALL_DATA} ${WRKDIR}/catalog41 ${INSTDIR}/4.1/catalog @${CHMOD} ${SHAREMODE} ${INSTDIR}/4.1/* # # 4.2: # @(cd ${INSTDIR}/4.2; unzip ${DISTDIR}/docbook-4.2.zip) - @${INSTALL_DATA} ${FILESDIR}/catalog42 ${INSTDIR}/4.2/catalog - @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.2/catalog + @${INSTALL_DATA} ${WRKDIR}/catalog42 ${INSTDIR}/4.2/catalog @${CHMOD} ${SHAREMODE} ${INSTDIR}/4.2/* # # General cleanup |