svn commit: r330166 - in head/audio/libmad: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Oct 12 18:17:00 UTC 2013
Author: sunpoet
Date: Sat Oct 12 18:16:59 2013
New Revision: 330166
URL: http://svnweb.freebsd.org/changeset/ports/330166
Log:
- Strip shared library
- Do not mkdir PREFIX/libdata/pkgconfig which is already in BSD.local.dist
- Use SUB_FILES
- Remove unnecessary patch
- Cosmetic change
- Take maintainership
Deleted:
head/audio/libmad/files/patch-configure
Modified:
head/audio/libmad/Makefile
head/audio/libmad/files/mad.pc.in (contents, props changed)
Modified: head/audio/libmad/Makefile
==============================================================================
--- head/audio/libmad/Makefile Sat Oct 12 18:11:47 2013 (r330165)
+++ head/audio/libmad/Makefile Sat Oct 12 18:16:59 2013 (r330166)
@@ -5,32 +5,32 @@ PORTNAME= libmad
PORTVERSION= 0.15.1b
PORTREVISION= 2
CATEGORIES= audio
-MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION} \
- ftp://ftp.mars.org/pub/mpeg/
+MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= sunpoet at FreeBSD.org
COMMENT= Libmad library (part of MAD project)
OPTIONS_DEFINE= SPEED
SPEED_DESC= Optimize for speed over accuracy
-USE_AUTOTOOLS= libtool
+CONFIGURE_ARGS= --disable-debugging --enable-sso
GNU_CONFIGURE= yes
+USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
-CONFIGURE_ARGS= --disable-debugging \
- --enable-sso
+
+SUB_LIST= VERSION=${PORTVERSION}
+SUB_FILES= mad.pc
SPEED_CONFIGURE_ON= --enable-speed
SPEED_CONFIGURE_OFF= --enable-accuracy
post-patch:
- @${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
- ${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
- @${REINPLACE_CMD} -e 's| -fforce-mem||' \
- ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's| -fforce-mem||' ${WRKSRC}/configure
+
+post-build:
+ @${STRIP_CMD} ${WRKSRC}/.libs/libmad.so.2
post-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
- ${INSTALL_DATA} ${WRKDIR}/mad.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
+ ${INSTALL_DATA} ${WRKDIR}/mad.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
.include <bsd.port.mk>
Modified: head/audio/libmad/files/mad.pc.in
==============================================================================
--- head/audio/libmad/files/mad.pc.in Sat Oct 12 18:11:47 2013 (r330165)
+++ head/audio/libmad/files/mad.pc.in Sat Oct 12 18:16:59 2013 (r330166)
@@ -1,4 +1,4 @@
-prefix=%PREFIX%
+prefix=%%PREFIX%%
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
@@ -6,6 +6,6 @@ includedir=${prefix}/include
Name: mad
Description: MPEG Audio Decoder
Requires:
-Version: %VERSION%
+Version: %%VERSION%%
Libs: -L${libdir} -lmad -lm
Cflags: -I${includedir}
More information about the svn-ports-all
mailing list