On Sat, Oct 26, 2019 at 03:29:28PM +0200, Antoine Jacoutot wrote: > LMAJ= ${LIBmpv_VERSION:R} > LMIN= ${LIBmpv_VERSION:E} > > SHARED_LIBS should be the reference value, not the opposite. Sure, thanks.
Index: Makefile =================================================================== RCS file: /cvs/ports/multimedia/mpv/Makefile,v retrieving revision 1.51 diff -u -p -r1.51 Makefile --- Makefile 26 Oct 2019 12:03:20 -0000 1.51 +++ Makefile 26 Oct 2019 13:37:33 -0000 @@ -108,13 +111,16 @@ CFLAGS += -march=i586 DO_WAF = cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODPY_BIN} \ ${WAF} ${MAKE_FLAGS} +LMAJ = ${LIBmpv_VERSION:R} +LMIN = ${LIBmpv_VERSION:E} +SUBST_VARS += LMAJ \ + LMIN + post-patch: cp ${DISTDIR}/${WAF:T} ${WAF} + ${SUBST_CMD} ${WRKSRC}/libmpv/client.h do-configure: - sed -i -e "s,LMAJ,${LIBmpv_VERSION:R},g" \ - -e "s,LMIN,${LIBmpv_VERSION:E},g" \ - ${WRKSRC}/libmpv/client.h ${DO_WAF} configure ${CONFIGURE_ARGS} do-build: