1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +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:
Sunpoet Po-Chuan Hsieh 2013-10-12 18:16:59 +00:00
parent fab89f23d5
commit cd9d8b9c19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330166
3 changed files with 14 additions and 24 deletions

View File

@ -5,32 +5,32 @@ PORTNAME= libmad
PORTVERSION= 0.15.1b PORTVERSION= 0.15.1b
PORTREVISION= 2 PORTREVISION= 2
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION} \ MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION}
ftp://ftp.mars.org/pub/mpeg/
MAINTAINER= ports@FreeBSD.org MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Libmad library (part of MAD project) COMMENT= Libmad library (part of MAD project)
OPTIONS_DEFINE= SPEED OPTIONS_DEFINE= SPEED
SPEED_DESC= Optimize for speed over accuracy SPEED_DESC= Optimize for speed over accuracy
USE_AUTOTOOLS= libtool CONFIGURE_ARGS= --disable-debugging --enable-sso
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-debugging \
--enable-sso SUB_LIST= VERSION=${PORTVERSION}
SUB_FILES= mad.pc
SPEED_CONFIGURE_ON= --enable-speed SPEED_CONFIGURE_ON= --enable-speed
SPEED_CONFIGURE_OFF= --enable-accuracy SPEED_CONFIGURE_OFF= --enable-accuracy
post-patch: post-patch:
@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \ @${REINPLACE_CMD} -e 's| -fforce-mem||' ${WRKSRC}/configure
${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
@${REINPLACE_CMD} -e 's| -fforce-mem||' \ post-build:
${WRKSRC}/configure @${STRIP_CMD} ${WRKSRC}/.libs/libmad.so.2
post-install: 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> .include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
prefix=%PREFIX% prefix=%%PREFIX%%
exec_prefix=${prefix} exec_prefix=${prefix}
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib
includedir=${prefix}/include includedir=${prefix}/include
@ -6,6 +6,6 @@ includedir=${prefix}/include
Name: mad Name: mad
Description: MPEG Audio Decoder Description: MPEG Audio Decoder
Requires: Requires:
Version: %VERSION% Version: %%VERSION%%
Libs: -L${libdir} -lmad -lm Libs: -L${libdir} -lmad -lm
Cflags: -I${includedir} Cflags: -I${includedir}

View File

@ -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'