mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- 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
This commit is contained in:
parent
fab89f23d5
commit
cd9d8b9c19
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330166
@ -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>
|
||||
|
@ -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}
|
||||
|
@ -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'
|
Loading…
Reference in New Issue
Block a user