1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- (finally) update to 3.92

- take over maintainership (after some months of maintainer timeout)
  Note: I have write access to the LAME repository, I think this is enough
        to justify this and the following decisions.
- remove gtk support (it's only useful for active mp3 algorithm developers,
  and if you use it, you use the CVS version of it, so there's no need to
  install it)
- don't add vorbis support from PR 39606:
  * there are much better tools to encode ogg vorbis
  * there's no support from the LAME developers (FreeBSD would be the
    only OS with working vorbis in LAME)
  * it will get removed in a later LAME version

Submitted by:	many, see PRs
PR:		39606, 43255, 43727
This commit is contained in:
Alexander Leidinger 2002-10-08 09:23:42 +00:00
parent 2e3e4673a7
commit b62b785f2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67616
5 changed files with 70 additions and 51 deletions

View File

@ -6,14 +6,13 @@
#
PORTNAME= lame
PORTVERSION= 3.91
PORTREVISION= 1
PORTVERSION= 3.92
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://lame.sourceforge.net/pub/
ftp://ftp.fu-berlin.de/unix/sound/%SUBDIR%/
MASTER_SITE_SUBDIR= lame
MAINTAINER= yoshiaki@kt.rim.or.jp
MAINTAINER= netchild@FreeBSD.org
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
@ -21,30 +20,30 @@ BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
USE_GNOMENG= yes
WANT_GNOME= yes
CONFIGURE_ARGS= --enable-nasm --enable-mp3rtp
.include <bsd.port.pre.mk>
.if (${HAVE_GNOME:Mgtk12}!="" || defined(WITH_GTK)) && !defined(WITHOUT_GTK)
USE_GNOME+= gtk12
PLIST_SUB+= WITH_GTK=''
PKGNAMESUFFIX= -gtk
.else
PLIST_SUB+= WITH_GTK='@comment '
.endif
USE_LIBTOOL= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --enable-nasm --enable-mp3rtp --disable-gtktest
MAN1= lame.1
post-build:
.if ${HAVE_GNOME:Mgtk12}!="" && !defined(WITHOUT_GTK)
cd ${WRKSRC}/frontend && make mp3x
DOC_FILES= API LICENSE PRESETS.draft README TODO USAGE
.if defined(NOPORTDOCS)
do-install:
@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-exec
@cd ${INSTALL_WRKSRC}/include && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data
@cd ${INSTALL_WRKSRC}/doc/man && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data
.else
post-install: install-doc
install-doc:
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
post-install:
.if ${HAVE_GNOME:Mgtk12}!="" && !defined(WITHOUT_GTK)
${INSTALL_PROGRAM} ${WRKSRC}/frontend/mp3x ${PREFIX}/bin/
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (lame-3.91.tar.gz) = c09562caa789c946403f6f9661592ee5
MD5 (lame-3.92.tar.gz) = 4e1b83a7b08636d2ef43711e4c74d3a9

View File

@ -1,16 +1,37 @@
diff -ruN lame-3.91.orig/configure lame-3.91/configure
--- configure.orig Wed Dec 26 02:59:42 2001
+++ configure Thu Aug 15 23:54:44 2002
@@ -5521,12 +5521,6 @@
--- configure.orig Mon Apr 15 18:54:58 2002
+++ configure Sat Aug 31 14:21:47 2002
@@ -2733,7 +2733,7 @@
if test "${GCC}" = "yes"; then
echo $ac_n "checking version of GCC""... $ac_c" 1>&6
echo "configure:2736: checking version of GCC" >&5
- GCC_version=`${CC} --version`
+ GCC_version=`${CC} --version | sed -n '1s/^[^ ]* (.*) //;s/ .*$//;1p'`
echo "$ac_t""${GCC_version}" 1>&6
fi
@@ -5541,7 +5541,7 @@
3.*)
# -funroll-loops seems to produce buggy code with gcc 3.0.3
OPTIMIZATION="-O -fomit-frame-pointer -ffast-math \
- -funroll-loops -maccumulate-outgoing-args"
+ -funroll-loops"
;;
*)
# default
@@ -5555,11 +5555,15 @@
OPTIMIZATION_NORM="-fschedule-insns2"
if test "x$GCC" = "xyes"; then
- # gcc defaults. OS specific options go in versious sections below
- # from the gcc man pages: "there is no reason to use -pedantic"
- CFLAGS="-Wall -pipe ${CFLAGS}"
-
-
- OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math -funroll-loops"
case "${GCC_version}" in
2.96*)
# for buggy version of gcc shipped with RH7.1, back of on some
OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
- -fsched-interblock -fbranch-count-reg -fforce-addr \
+ -fbranch-count-reg -fforce-addr \
-fforce-mem"
case "${CONFIG_EXPOPT}" in
no)
+ # if someone supplies own CFLAGS, we don't add our own
+ if [ "X${ac_save_CFLAGS}" != "X" ]; then
+ OPTIMIZATION=""
+ fi
;;
norm|yes)
OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM}"

View File

@ -1,10 +1,3 @@
--- frontend/rtp.h Tue Dec 19 02:43:25 2000
+++ frontend/rtp.h Fri Sep 27 18:26:42 2002
@@ -28,3 +28,3 @@
-#ifdef 0
+#if 0
int rtp_send (
--- frontend/mp3rtp.c Fri Jun 8 17:29:34 2001
+++ frontend/mp3rtp.c Fri Sep 27 18:29:04 2002
@@ -48,6 +48,4 @@

View File

@ -1,11 +1,16 @@
bin/lame
bin/mp3rtp
%%WITH_GTK%%bin/mp3x
include/lame/lame.h
lib/libmp3lame.a
lib/libmp3lame.la
lib/libmp3lame.so
lib/libmp3lame.so.0
@exec ln -fs %F %B/libmp3lame.so
@unexec rm -f %B/libmp3lame.so
%%PORTDOCS%%share/doc/lame/API
%%PORTDOCS%%share/doc/lame/LICENSE
%%PORTDOCS%%share/doc/lame/PRESETS.draft
%%PORTDOCS%%share/doc/lame/README
%%PORTDOCS%%share/doc/lame/TODO
%%PORTDOCS%%share/doc/lame/USAGE
%%PORTDOCS%%share/doc/lame/html/basic.html
%%PORTDOCS%%share/doc/lame/html/contributors.html
%%PORTDOCS%%share/doc/lame/html/examples.html
@ -18,3 +23,4 @@ lib/libmp3lame.so.0
%%PORTDOCS%%share/doc/lame/html/switchs.html
%%PORTDOCS%%@dirrm share/doc/lame/html
%%PORTDOCS%%@dirrm share/doc/lame
@dirrm include/lame