summaryrefslogtreecommitdiffstats
path: root/audio/mad
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-07-08 19:33:27 +0000
committerlioux <lioux@FreeBSD.org>2002-07-08 19:33:27 +0000
commit4c20dcc48942d00e67cf2bd155ef8fb74c1172c8 (patch)
treee7b550421774a3ae5d7e7d1825c223b287aa953b /audio/mad
parentc0a977396bc4c36df5b18ed6bfb21bb5cfdc5b92 (diff)
downloadFreeBSD-ports-4c20dcc48942d00e67cf2bd155ef8fb74c1172c8.zip
FreeBSD-ports-4c20dcc48942d00e67cf2bd155ef8fb74c1172c8.tar.gz
o Fix a malloc definition conflict in -STABLE [1]. configure script
believed that mmap was not defined. The "workaround" involves USE_AUTOCONF which invokes latest autoconf 2.53 (detection macros look safer) [2] o Fix a weird side-effect of aforementioned fix o Safer PLIST Submitted by: naddy [2], Andy Sparrow <spadger@best.com> [1] Reviewed by: rone@ennui.org, FreeBSD-ports Approved by: maintainer
Diffstat (limited to 'audio/mad')
-rw-r--r--audio/mad/Makefile7
-rw-r--r--audio/mad/pkg-plist10
2 files changed, 17 insertions, 0 deletions
diff --git a/audio/mad/Makefile b/audio/mad/Makefile
index 502832f..8a97350 100644
--- a/audio/mad/Makefile
+++ b/audio/mad/Makefile
@@ -19,7 +19,9 @@ LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
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 \
@@ -39,4 +41,9 @@ USE_ESOUND= yes
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>
diff --git a/audio/mad/pkg-plist b/audio/mad/pkg-plist
index bad3266..ff40965 100644
--- a/audio/mad/pkg-plist
+++ b/audio/mad/pkg-plist
@@ -14,3 +14,13 @@ share/locale/es/LC_MESSAGES/mad.mo
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
OpenPOWER on IntegriCloud