diff --git a/htslib/Makefile b/htslib/Makefile index 9b13c2d6b8..11e4a21e35 100644 --- a/htslib/Makefile +++ b/htslib/Makefile @@ -20,8 +20,8 @@ REPLACE_PERL+= test/test.pl SUBST_CLASSES+= version SUBST_STAGE.version= pre-configure -SUBST_SED.version= -e "s|m4_esyscmd_s(\[make print-version\])|[${PKGVERSION_NOREV}]|" -SUBST_FILES.version= ${WRKSRC}/configure.ac +SUBST_SED.version= -e "s|m4_esyscmd_s(\[./version.sh 2>/dev/null\])|[${PKGVERSION_NOREV}]|" +SUBST_FILES.version= configure.ac pre-configure: (cd ${WRKSRC} && autoreconf)