Date: Fri, 5 Jul 2002 16:09:45 -0300 From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> To: Christian Weisgerber <naddy@mips.inka.de> Cc: freebsd-ports@FreeBSD.ORG, Andy Sparrow <spadger@best.com> Subject: Re: FreeBSD audio/mad problems Message-ID: <20020705191007.75062.qmail@exxodus.fedaykin.here> In-Reply-To: <afi818$1kvb$1@kemoauc.mips.inka.de>; from naddy@mips.inka.de on Fri, Jun 28, 2002 at 05:56:34PM %2B0000 References: <afao53$cbe$1@kemoauc.mips.inka.de> <20020628000253.654123E5C@CRWdog.demon.co.uk> <afi818$1kvb$1@kemoauc.mips.inka.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I cooked a small patch based on the suggestion to use latest autoconf. However, there was a side-effect of using autoconf which I addressed with a post-patch target. Furthermore, I added some lines to pkg-plist to make sure it cleans up properly when deinstalled. Let me know if I can commit this patch. Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." Computer Science Undergraduate | FreeBSD Committer | CS Developer flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-mad --- Makefile.orig Wed Jul 3 19:00:26 2002 +++ Makefile Fri Jul 5 16:02:08 2002 @@ -19,7 +19,9 @@ WANT_ESOUND= yes +USE_AUTOCONF= yes USE_LIBTOOL= yes +USE_REINPLACE= yes INSTALLS_SHLIB= yes LIBTOOLFILES= configure libmad/configure libid3tag/configure CONFIGURE_ARGS= --enable-shared \ @@ -38,5 +40,10 @@ .else CONFIGURE_ARGS+= --without-esd .endif + +post-patch: +# fix weird @INSTALL@ behavior caused by USE_AUTOCONF + @${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} -n 10 \ + ${REINPLACE_CMD} -E -e 's|^(INSTALL[[:space:]]*=).*$$|\1 ${INSTALL_DATA}|' .include <bsd.port.post.mk> --- pkg-plist.orig Fri Jul 5 16:02:46 2002 +++ pkg-plist Fri Jul 5 16:04:39 2002 @@ -14,3 +14,13 @@ share/locale/fr/LC_MESSAGES/mad.mo share/locale/hr/LC_MESSAGES/mad.mo share/locale/no/LC_MESSAGES/mad.mo +@exec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true +@exec rmdir %D/share/locale/no 2>/dev/null || true +@exec rmdir %D/share/locale/hr/LC_MESSAGES 2>/dev/null || true +@exec rmdir %D/share/locale/hr 2>/dev/null || true +@exec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true +@exec rmdir %D/share/locale/fr 2>/dev/null || true +@exec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true +@exec rmdir %D/share/locale/es 2>/dev/null || true +@exec rmdir %D/share/locale/en/LC_MESSAGES 2>/dev/null || true +@exec rmdir %D/share/locale/en 2>/dev/null || true --9jxsPFA5p3P2qPhR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020705191007.75062.qmail>