diff options
Diffstat (limited to 'graphics/libmpeg2/Makefile')
-rw-r--r-- | graphics/libmpeg2/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/graphics/libmpeg2/Makefile b/graphics/libmpeg2/Makefile index 7d53d0118b96..96f5b6bc5454 100644 --- a/graphics/libmpeg2/Makefile +++ b/graphics/libmpeg2/Makefile @@ -15,6 +15,7 @@ MAINTAINER= lioux@FreeBSD.org USE_XLIB= yes USE_LIBTOOL= yes +USE_REINPLACE= yes CONFIGURE_ARGS= --enable-shared @@ -45,13 +46,14 @@ pre-everything:: @${ECHO_MSG} "====>" post-patch: - @${PERL} -pi -e 's|<SDL/|<SDL11/|' ${WRKSRC}/libvo/* - @${PERL} -pi -e 's|-O3||;s|<termio.h>|<termios.h>|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|<SDL/|<SDL11/|' ${WRKSRC}/libvo/* + @${REINPLACE_CMD} -e 's|-O3||;s|<termio.h>|<termios.h>|' ${WRKSRC}/configure post-configure: - @${LN} -sf ${LOCALBASE}/bin/libtool ${WRKSRC} + @${CP} -f ${LOCALBASE}/bin/libtool ${WRKSRC} + @${CHMOD} u+w ${WRKSRC}/libtool # Libtool fix code kindly provided by Mr. Maxim Sobolev <sobomax@FreeBSD.org> - @${PERL} -pi.orig \ + @${REINPLACE_CMD} -E \ -e 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|; \ s|(install_ltlibs=)yes|\1no|' \ ${WRKSRC}/libtool |