From owner-freebsd-ports Fri Jul 5 20:17:37 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9915837B400 for ; Fri, 5 Jul 2002 20:17:32 -0700 (PDT) Received: from heaven.gigo.com (heaven.gigo.com [64.57.102.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23FB843E09 for ; Fri, 5 Jul 2002 20:17:31 -0700 (PDT) (envelope-from lioux@brturbo.com) Received: from 200-163-006-080-bsace7003.dsl.telebrasilia.net.br (200-163-006-080-bsace7003.dsl.telebrasilia.net.br [200.163.6.80]) by heaven.gigo.com (Postfix) with ESMTP id CA620B867 for ; Fri, 5 Jul 2002 20:17:24 -0700 (PDT) Received: (qmail 75063 invoked by uid 1001); 5 Jul 2002 19:10:07 -0000 Message-ID: <20020705191007.75062.qmail@exxodus.fedaykin.here> Date: Fri, 5 Jul 2002 16:09:45 -0300 From: Mario Sergio Fujikawa Ferreira To: Christian Weisgerber Cc: freebsd-ports@FreeBSD.ORG, Andy Sparrow Subject: Re: FreeBSD audio/mad problems References: <20020628000253.654123E5C@CRWdog.demon.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from naddy@mips.inka.de on Fri, Jun 28, 2002 at 05:56:34PM +0000 X-Operating-System: FreeBSD 4.6-STABLE X-Disclaimer: I hope you find what you are looking for... in life :) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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 --- 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