aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-10-13 02:16:59 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-10-13 02:16:59 +0800
commited97f8c55e5232c42827980eb342d08548c28830 (patch)
tree1fb3d9b7dc654fe535b6411310ea0c2ab6a14217
parent70ad4c8ef3daa23153607c15fc0533b31b832343 (diff)
downloadfreebsd-ports-gnome-ed97f8c55e5232c42827980eb342d08548c28830.tar.gz
freebsd-ports-gnome-ed97f8c55e5232c42827980eb342d08548c28830.tar.zst
freebsd-ports-gnome-ed97f8c55e5232c42827980eb342d08548c28830.zip
- 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
-rw-r--r--audio/libmad/Makefile24
-rw-r--r--audio/libmad/files/mad.pc.in4
-rw-r--r--audio/libmad/files/patch-configure10
3 files changed, 14 insertions, 24 deletions
diff --git a/audio/libmad/Makefile b/audio/libmad/Makefile
index 8099cd06b7fb..a479f8dcf6af 100644
--- a/audio/libmad/Makefile
+++ b/audio/libmad/Makefile
@@ -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@FreeBSD.org
+MAINTAINER= sunpoet@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>
diff --git a/audio/libmad/files/mad.pc.in b/audio/libmad/files/mad.pc.in
index 0c0ff2cbb4d2..a7689a62deec 100644
--- a/audio/libmad/files/mad.pc.in
+++ b/audio/libmad/files/mad.pc.in
@@ -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}
diff --git a/audio/libmad/files/patch-configure b/audio/libmad/files/patch-configure
deleted file mode 100644
index f195f07b43c6..000000000000
--- a/audio/libmad/files/patch-configure
+++ /dev/null
@@ -1,10 +0,0 @@
---- configure.orig Wed Dec 11 18:31:51 2002
-+++ configure Thu Dec 12 12:07:17 2002
-@@ -7414,6 +7414,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'