diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-10-28 01:34:27 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-10-28 01:34:27 +0000 |
commit | 164467f2a49935e4c641d157eef25cba7c7cee12 (patch) | |
tree | c43a306f6a3381671bfdc47cd82d7cbc2f41d007 /databases/mysql4-client | |
parent | 84583bc2e76efc8736e173f00a3365d3fe88782d (diff) | |
download | pkgsrc-164467f2a49935e4c641d157eef25cba7c7cee12.tar.gz |
Use subst.mk instead of using sed(1)/mv(1)/rm(1).
Diffstat (limited to 'databases/mysql4-client')
-rw-r--r-- | databases/mysql4-client/Makefile.common | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/databases/mysql4-client/Makefile.common b/databases/mysql4-client/Makefile.common index eced392c2b5..450447be7dd 100644 --- a/databases/mysql4-client/Makefile.common +++ b/databases/mysql4-client/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.15 2004/10/28 01:12:44 xtraeme Exp $ +# $NetBSD: Makefile.common,v 1.16 2004/10/28 01:34:27 xtraeme Exp $ DISTNAME= mysql-4.1.7 CATEGORIES= databases @@ -71,20 +71,17 @@ USE_PERL5= # defined USE_LIBTOOL= # defined LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql -post-extract: - cd ${WRKSRC}; \ - for dir in dbug heap isam merge mysys strings; do \ - ${MV} $${dir}/Makefile.in $${dir}/Makefile.in.orig; \ - ${SED} -e "/^install-exec:/s/install-pkglibLIBRARIES//" \ - $${dir}/Makefile.in.orig > $${dir}/Makefile.in; \ - done - cd ${WRKSRC}/scripts; \ - for file in mysql_install_db.sh mysqld_safe.sh; do \ - ${MV} $${file} $${file}.orig; \ - ${SED} -e "s,chown,${CHOWN},g" \ - $${file}.orig > $${file}; \ - ${RM} $${file}.orig; \ - done +SUBST_CLASSES+= mk scripts +SUBST_STAGE.mk= post-extract +SUBST_FILES.mk= dbug/Makefile.in heap/Makefile.in isam/Makefile.in \ + merge/Makefile.in mysys/Makefile.in \ + strings/Makefile.in +SUBST_SED.mk= -e "/^install-exec:/s/install-pkglibLIBRARIES//" +SUBST_MESSAGE.mk= "Fixing Makefiles." +SUBST_STAGE.scripts= post-extract +SUBST_FILES.scripts= scripts/mysql_install_db.sh scripts/mysqld_safe.sh +SUBST_SED.scripts= -e "s,chown,${CHOWN},g" +SUBST_MESSAGE.scripts= "Fixing scripts." .include "../../security/openssl/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" |