Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2000 01:38:53 +0200 (CEST)
From:      t.vanklaveren@student.utwente.nl
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/20766: New port for Vorbis audio codec
Message-ID:  <200008212338.BAA11568@cal30b054.student.utwente.nl>

next in thread | raw e-mail | index | archive | help

>Number:         20766
>Category:       ports
>Synopsis:       New port for Vorbis audio codec
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 21 16:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Theo van Klaveren
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
>Environment:

>Description:

New port for the Vorbis audio codec, featuring an encoder, player, various
shell scripts and an XMMS plugin.

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	vorbis
#	vorbis
#	vorbis/Makefile
#	vorbis/files
#	vorbis/files/md5
#	vorbis/patches
#	vorbis/patches/patch-aa
#	vorbis/patches/patch-ac
#	vorbis/patches/patch-ad
#	vorbis/patches/patch-ae
#	vorbis/pkg
#	vorbis/pkg/PLIST
#	vorbis/pkg/COMMENT
#	vorbis/pkg/DESCR
#
echo c - vorbis
mkdir -p vorbis > /dev/null 2>&1
echo c - vorbis
mkdir -p vorbis > /dev/null 2>&1
echo x - vorbis/Makefile
sed 's/^X//' >vorbis/Makefile << 'END-of-vorbis/Makefile'
X# New ports collection makefile for:	vorbis
X# Date created:				22 August 2000
X# Whom:					t.vanklaveren@student.utwente.nl
X#
X# $FreeBSD$
X#
X
XPORTNAME=	vorbis
XPORTVERSION=	20000821
XCATEGORIES=	audio
XMASTER_SITES=	http://home.student.utwente.nl/t.vanklaveren/distfiles/
X
XMAINTAINER=	t.vanklaveren@student.utwente.nl
X
XLIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
X		xmms.1:${PORTSDIR}/audio/xmms
XRUN_DEPENDS=	${X11BASE}/bin/xmms:${PORTSDIR}/audio/xmms
X
XGLIB_CONFIG?=	${LOCALBASE}/bin/glib12-config
XGTK_CONFIG?=	${X11BASE}/bin/gtk12-config
X
X# Vorbis doesn't depend on X, but it's needed for the XMMS plugin :-(
XUSE_X_PREFIX=	yes
XUSE_AUTOCONF=	yes
XGNU_CONFIGURE=	yes
XWRKSRC=		${WRKDIR}/vorbis
X
Xpost-build:
X	cd ${WRKSRC}/vorbis-tools/libao && ${SETENV} ${MAKE_ENV} ${MAKE}
X	cd ${WRKSRC}/vorbis-tools && ${SETENV} ${MAKE_ENV} ${MAKE} ${ALL_TARGET}
X	cd ${WRKSRC}/xmms && ${SETENV} ${MAKE_ENV} ${MAKE} GLIB_CONFIG=${GLIB_CONFIG} GTK_CONFIG=${GTK_CONFIG} target
Xdo-install:
X# Install all vorbis libraries and headers by hand. There is no target for it.
X	${INSTALL_PROGRAM} ${WRKSRC}/lib/libvorbis.a ${PREFIX}/lib/
X	${INSTALL_PROGRAM} ${WRKSRC}/lib/vorbisfile.a ${PREFIX}/lib/
X# Install all vorbis-tools by hand. The Makefile sucks and is beyond hope.
X	${INSTALL_PROGRAM} ${WRKSRC}/vorbis-tools/vorbize ${PREFIX}/bin/
X	${INSTALL_SCRIPT} ${WRKSRC}/vorbis-tools/mp3tovorbis ${PREFIX}/bin/
X	${INSTALL_PROGRAM} ${WRKSRC}/vorbis-tools/ogg123 ${PREFIX}/bin/
X	${INSTALL_PROGRAM} ${WRKSRC}/vorbis-tools/vorbiscomment ${PREFIX}/bin/
X	${INSTALL_PROGRAM} ${WRKSRC}/vorbis-tools/oggenc ${PREFIX}/bin/
X	${INSTALL_MAN} ${WRKSRC}/vorbis-tools/ogg123.1 ${PREFIX}/man/man1/
X	${INSTALL_MAN} ${WRKSRC}/vorbis-tools/vorbize.1 ${PREFIX}/man/man1/
X	${INSTALL_MAN} ${WRKSRC}/vorbis-tools/oggenc.1 ${PREFIX}/man/man1/
X	${INSTALL_PROGRAM} ${WRKSRC}/xmms/libvorbis.so ${PREFIX}/lib/xmms/Input/
X# And finally, the header files
X	${MKDIR} ${PREFIX}/include/vorbis
X	${MKDIR} ${PREFIX}/include/vorbis/book
X	${INSTALL_DATA} ${WRKSRC}/include/vorbis/*.h ${PREFIX}/include/vorbis/
X	${INSTALL_DATA} ${WRKSRC}/include/vorbis/book/*.vqh ${PREFIX}/include/vorbis/book/
X
XMAN1=	ogg123.1 vorbize.1 oggenc.1
X
X.include <bsd.port.mk>
END-of-vorbis/Makefile
echo c - vorbis/files
mkdir -p vorbis/files > /dev/null 2>&1
echo x - vorbis/files/md5
sed 's/^X//' >vorbis/files/md5 << 'END-of-vorbis/files/md5'
XMD5 (vorbis-20000821.tar.gz) = f7172940059c421367095db97dcf6a0b
END-of-vorbis/files/md5
echo c - vorbis/patches
mkdir -p vorbis/patches > /dev/null 2>&1
echo x - vorbis/patches/patch-aa
sed 's/^X//' >vorbis/patches/patch-aa << 'END-of-vorbis/patches/patch-aa'
X--- configure.in.orig	Tue Aug 15 11:09:31 2000
X+++ configure.in	Mon Aug 21 23:50:37 2000
X@@ -55,8 +55,11 @@
X 		PROFILE="-g -p" ;;
X         esac
X else
X-
X 	case $host in 
X+	*-*-freebsd*)
X+		DEBUG="-g -Wall -fsigned-char"
X+		OPT="$CFLAGS -ffast-math -fsigned-char"
X+		PROFILE="-pg -g $CFLAGS -ffast-math -fsigned-char" ;;
X 	*86-*-linux*)
X 		DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
X 		OPT="-O20 -ffast-math -D_REENTRANT -fsigned-char"
X@@ -118,7 +121,7 @@
X 
X AC_HEADER_STDC
X 
X-CFLAGS=""
X+# CFLAGS=""
X 
X dnl AC_PATH_X
X dnl AC_PATH_XTRA
X@@ -127,6 +130,7 @@
X #	pthread_lib="-lpthread"; AC_DEFINE(HAVE_LIBPTHREAD), :)
X # We no longer use config.h
X AC_CHECK_LIB(pthread, pthread_create, pthread_lib="-lpthread", :)
X+AC_CHECK_LIB(c_r, pthread_create, pthread_lib="-pthread", :)
X 
X #dnl Linuxthreads require you to define _REENTRANT in all threaded
X #dnl code.  Bogus, bogus...
END-of-vorbis/patches/patch-aa
echo x - vorbis/patches/patch-ac
sed 's/^X//' >vorbis/patches/patch-ac << 'END-of-vorbis/patches/patch-ac'
X--- vorbis-tools/ogg123.c.orig	Mon Aug 21 23:53:11 2000
X+++ vorbis-tools/ogg123.c	Mon Aug 21 23:53:47 2000
X@@ -27,8 +27,8 @@
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
X-#include <sys/socket.h> /* !!! */
X #include <sys/types.h>
X+#include <sys/socket.h> /* !!! */
X #include <unistd.h>
X #include <netdb.h>
X #include <netinet/in.h>
END-of-vorbis/patches/patch-ac
echo x - vorbis/patches/patch-ad
sed 's/^X//' >vorbis/patches/patch-ad << 'END-of-vorbis/patches/patch-ad'
X--- vorbis-tools/Makefile.in.orig	Tue Aug 15 18:28:39 2000
X+++ vorbis-tools/Makefile.in	Tue Aug 22 00:14:56 2000
X@@ -45,14 +45,14 @@
X target: libao vorbize ogg123 vorbiscomment oggenc
X 
X ogg123: ogg123.o libao/libao.a 
X-	$(CC) $(CFLAGS) ogg123.o -o ogg123 $(LIBS) libao/libao.a
X+	$(CC) $(CFLAGS) ogg123.o -o ogg123 -L${LOCALBASE}/lib -lgnugetopt $(LIBS) libao/libao.a
X 
X vorbiscomment: vorbiscomment.o
X 	$(CC) $(CFLAGS) vorbiscomment.o -o vorbiscomment $(LIBS)
X 
X vorbize: vorbize.o
X 	$(CC) $(CFLAGS) vorbize.o -o \
X-			vorbize $(LIBS)
X+			vorbize -L${LOCALBASE}/lib -lgnugetopt $(LIBS)
X oggenc: oggenc.o encode.o audio.o getopt.o getopt1.o
X 	$(CC) $(CFLAGS) oggenc.o encode.o audio.o getopt.o getopt1.o -o oggenc $(LIBS)
X 
END-of-vorbis/patches/patch-ad
echo x - vorbis/patches/patch-ae
sed 's/^X//' >vorbis/patches/patch-ae << 'END-of-vorbis/patches/patch-ae'
X--- xmms/Makefile.in.orig	Tue Jun 20 08:54:57 2000
X+++ xmms/Makefile.in	Tue Aug 22 00:57:23 2000
X@@ -7,16 +7,17 @@
X # (unless, of course, you know what you are doing :) ##########################
X 
X @SET_MAKE@
X-FLAGS=-I. -I../include @CFLAGS@ `gtk-config --cflags` -fPIC -Dvorbis_size32_t='@SIZE32@'
X+FLAGS=-I. -I../include @CFLAGS@ `${GLIB_CONFIG} --cflags` `${GTK_CONFIG} --cflags` -fPIC -Dvorbis_size32_t='@SIZE32@'
X OPT=@OPT@ $(FLAGS)
X DEBUG=@DEBUG@ $(FLAGS)
X PROFILE=@PROFILE@ $(FLAGS)
X CC=@CC@
X LD=@CC@
X-LDFLAGS=@LDFLAGS@ $(FLAGS) -shared
X+LDFLAGS=@LDFLAGS@ `${GLIB_CONFIG} --libs` `${GTK_CONFIG} --libs` $(FLAGS) -shared
X AR=@AR@
X RANLIB=@RANLIB@
X-LIBS=@LIBS@ -lpthread
X+LIBS=@LIBS@ @pthread_lib@
X+CFLAGS+=${FLAGS}
X 
X OFILES=		vorbis.o
X TARGET=		libvorbis.so
END-of-vorbis/patches/patch-ae
echo c - vorbis/pkg
mkdir -p vorbis/pkg > /dev/null 2>&1
echo x - vorbis/pkg/PLIST
sed 's/^X//' >vorbis/pkg/PLIST << 'END-of-vorbis/pkg/PLIST'
Xbin/mp3tovorbis
Xbin/ogg123
Xbin/oggenc
Xbin/vorbiscomment
Xbin/vorbize
Xinclude/vorbis/backends.h
Xinclude/vorbis/codebook.h
Xinclude/vorbis/codec.h
Xinclude/vorbis/internal.h
Xinclude/vorbis/mode_A.h
Xinclude/vorbis/mode_B.h
Xinclude/vorbis/mode_C.h
Xinclude/vorbis/mode_D.h
Xinclude/vorbis/mode_E.h
Xinclude/vorbis/modes.h
Xinclude/vorbis/os_types.h
Xinclude/vorbis/vorbisfile.h
Xinclude/vorbis/book/lsp12_0.vqh
Xinclude/vorbis/book/lsp30_0.vqh
Xinclude/vorbis/book/res0_1024a_128_1.vqh
Xinclude/vorbis/book/res0_1024a_128_2.vqh
Xinclude/vorbis/book/res0_1024a_128_3.vqh
Xinclude/vorbis/book/res0_1024a_128_4.vqh
Xinclude/vorbis/book/res0_1024a_128_5.vqh
Xinclude/vorbis/book/res0_1024a_128_6.vqh
Xinclude/vorbis/book/res0_1024a_128_7.vqh
Xinclude/vorbis/book/res0_1024a_128_8.vqh
Xinclude/vorbis/book/res0_1024a_128_9.vqh
Xinclude/vorbis/book/res0_1024a_160_1.vqh
Xinclude/vorbis/book/res0_1024a_160_2.vqh
Xinclude/vorbis/book/res0_1024a_160_3.vqh
Xinclude/vorbis/book/res0_1024a_160_4.vqh
Xinclude/vorbis/book/res0_1024a_160_5.vqh
Xinclude/vorbis/book/res0_1024a_160_6.vqh
Xinclude/vorbis/book/res0_1024a_160_7.vqh
Xinclude/vorbis/book/res0_1024a_160_8.vqh
Xinclude/vorbis/book/res0_1024a_160_9.vqh
Xinclude/vorbis/book/res0_1024a_192_1.vqh
Xinclude/vorbis/book/res0_1024a_192_2.vqh
Xinclude/vorbis/book/res0_1024a_192_3.vqh
Xinclude/vorbis/book/res0_1024a_192_4.vqh
Xinclude/vorbis/book/res0_1024a_192_5.vqh
Xinclude/vorbis/book/res0_1024a_256_1.vqh
Xinclude/vorbis/book/res0_1024a_256_2.vqh
Xinclude/vorbis/book/res0_1024a_256_3.vqh
Xinclude/vorbis/book/res0_1024a_256_4.vqh
Xinclude/vorbis/book/res0_1024a_256_5.vqh
Xinclude/vorbis/book/res0_1024a_350_1.vqh
Xinclude/vorbis/book/res0_1024a_350_2.vqh
Xinclude/vorbis/book/res0_1024a_350_3.vqh
Xinclude/vorbis/book/res0_1024a_350_4.vqh
Xinclude/vorbis/book/res0_1024a_350_5.vqh
Xinclude/vorbis/book/res0_128a_128_1.vqh
Xinclude/vorbis/book/res0_128a_128_2.vqh
Xinclude/vorbis/book/res0_128a_128_3.vqh
Xinclude/vorbis/book/res0_128a_128_4.vqh
Xinclude/vorbis/book/res0_128a_128_5.vqh
Xinclude/vorbis/book/res0_128a_160_1.vqh
Xinclude/vorbis/book/res0_128a_160_2.vqh
Xinclude/vorbis/book/res0_128a_160_3.vqh
Xinclude/vorbis/book/res0_128a_160_4.vqh
Xinclude/vorbis/book/res0_128a_160_5.vqh
Xinclude/vorbis/book/res0_128a_192_1.vqh
Xinclude/vorbis/book/res0_128a_192_2.vqh
Xinclude/vorbis/book/res0_128a_192_3.vqh
Xinclude/vorbis/book/res0_128a_192_4.vqh
Xinclude/vorbis/book/res0_128a_192_5.vqh
Xinclude/vorbis/book/res0_128a_256_1.vqh
Xinclude/vorbis/book/res0_128a_256_2.vqh
Xinclude/vorbis/book/res0_128a_256_3.vqh
Xinclude/vorbis/book/res0_128a_256_4.vqh
Xinclude/vorbis/book/res0_128a_256_5.vqh
Xinclude/vorbis/book/res0_128a_350_1.vqh
Xinclude/vorbis/book/res0_128a_350_2.vqh
Xinclude/vorbis/book/res0_128a_350_3.vqh
Xinclude/vorbis/book/res0_128a_350_4.vqh
Xinclude/vorbis/book/res0_128a_350_5.vqh
Xinclude/vorbis/book/resaux0_1024a_128.vqh
Xinclude/vorbis/book/resaux0_1024a_160.vqh
Xinclude/vorbis/book/resaux0_1024a_192.vqh
Xinclude/vorbis/book/resaux0_1024a_256.vqh
Xinclude/vorbis/book/resaux0_1024a_350.vqh
Xinclude/vorbis/book/resaux0_128a_128.vqh
Xinclude/vorbis/book/resaux0_128a_160.vqh
Xinclude/vorbis/book/resaux0_128a_192.vqh
Xinclude/vorbis/book/resaux0_128a_256.vqh
Xinclude/vorbis/book/resaux0_128a_350.vqh
Xlib/libvorbis.a
Xlib/vorbisfile.a
Xlib/xmms/Input/libvorbis.so
Xman/man1/ogg123.1.gz
Xman/man1/oggenc.1.gz
Xman/man1/vorbize.1.gz
X@dirrm include/vorbis/book
X@dirrm include/vorbis
END-of-vorbis/pkg/PLIST
echo x - vorbis/pkg/COMMENT
sed 's/^X//' >vorbis/pkg/COMMENT << 'END-of-vorbis/pkg/COMMENT'
XMP3-comparable audio compression codec and tools
END-of-vorbis/pkg/COMMENT
echo x - vorbis/pkg/DESCR
sed 's/^X//' >vorbis/pkg/DESCR << 'END-of-vorbis/pkg/DESCR'
X
XWHAT IS VORBIS:
X
XVorbis is a general purpose audio and music encoding format
Xcontemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
XMPEG audio layer 3. Unlike the MPEG sponsored formats (and other
Xproprietary formats such as RealAudio G2 and Windows' flavor of the
Xmonth), the Vorbis CODEC specification belongs to the public domain.
XAll the technical details are published and documented, and any
Xsoftware entity may make full use of the format without royalty or
Xpatent concerns.
X
XThis package contains libvorbis, an LGPLed software implementation of
Xthe Vorbis specification by the Xiphophorus company
X(http://www.xiph.org/), vorbisfile, an LGPLed convenience library
Xbuilt on Vorbis designed to simplify common uses and a number of GPL
Xexample programs, utilities and player plugins.
X
XWWW: http://www.vorbis.com
X
X- Theo van Klaveren
Xt.vanklaveren@student.utwente.nl
X
END-of-vorbis/pkg/DESCR
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008212338.BAA11568>