Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2002 00:28:00 +0200 (CEST)
From:      Tilman Linneweh <tilman@arved.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tilman@arved.de
Subject:   ports/37965: New Port audio/ladspa
Message-ID:  <200205112228.g4BMS0562013@sauna.arved.de>

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

>Number:         37965
>Category:       ports
>Synopsis:       New Port audio/ladspa
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 11 15:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tilman Linneweh
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
BSD Usergroup Austria
>Environment:
System: FreeBSD sauna.arved.de 4.5-STABLE FreeBSD 4.5-STABLE #2: Tue Feb 19 15:30:21 CET 2002 root@sauna.arved.de:/usr/obj/usr/src/sys/SAUNA i386


	
>Description:
	LADSPA is a Linux API for Audio Plugins.
	This Port contains some example plugins
	
>How-To-Repeat:
	
>Fix:

	

--- ladspa.shar begins here ---
# 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:
#
#	ladspa
#	ladspa/Makefile
#	ladspa/distinfo
#	ladspa/files
#	ladspa/files/patch-makefile
#	ladspa/files/patch-applyplugin.c
#	ladspa/pkg-plist
#	ladspa/pkg-comment
#	ladspa/pkg-descr
#
echo c - ladspa
mkdir -p ladspa > /dev/null 2>&1
echo x - ladspa/Makefile
sed 's/^X//' >ladspa/Makefile << 'END-of-ladspa/Makefile'
X# New ports collection Makefile for: 	ladspa
X# Date created:			11 May 2002
X# Whom:				Tilman Linneweh <freebsdports@arved.de
X#
X# $FreeBSD$
X
XPORTNAME=	ladspa
XPORTVERSION=	0
XCATEGORIES=	audio
XMASTER_SITES=	http://www.ladspa.org/download/
XDISTNAME=	ladspa_sdk
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	freebsdports@arved.de
X
XUSE_GMAKE=	yes
XINSTALLS_SHLIB= yes
XWRKSRC=         ${WRKDIR}/${DISTNAME}/src
XMAKEFILE=	makefile
XALL_TARGET=	targets
X
XPROGRAM_FILES= analyseplugin applyplugin listplugins
XPLUGIN_FILES= amp.so delay.so filter.so noise.so sine.so
XPLUGIN_DIR= ${LOCALBASE}/lib/ladspa/
X
Xdo-install:
X	@${INSTALL_DATA} ${WRKSRC}/ladspa.h ${LOCALBASE}/include
X.for file in ${PROGRAM_FILES}
X	@${INSTALL_PROGRAM} ${WRKSRC}/../bin/${file} ${LOCALBASE}/bin
X.endfor
X	@${MKDIR} ${PLUGIN_DIR}
X.for file in ${PLUGIN_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/../plugins/${file} ${PLUGIN_DIR}
X.endfor
X
X.include <bsd.port.mk>
END-of-ladspa/Makefile
echo x - ladspa/distinfo
sed 's/^X//' >ladspa/distinfo << 'END-of-ladspa/distinfo'
XMD5 (ladspa_sdk.tgz) = 00b34b8f9a80a1fe141b643e64ac1681
END-of-ladspa/distinfo
echo c - ladspa/files
mkdir -p ladspa/files > /dev/null 2>&1
echo x - ladspa/files/patch-makefile
sed 's/^X//' >ladspa/files/patch-makefile << 'END-of-ladspa/files/patch-makefile'
X--- makefile.orig	Wed Nov 22 21:34:58 2000
X+++ makefile	Sat May 11 23:29:17 2002
X@@ -5,19 +5,18 @@
X # Change these if you want to install somewhere else. In particularly
X # you may wish to remove the middle "local/" part of each entry.
X 
X INSTALL_PLUGINS_DIR	=	/usr/local/lib/ladspa/
X INSTALL_INCLUDE_DIR	=	/usr/include/
X INSTALL_BINARY_DIR	=	/usr/local/bin/
X 
X ###############################################################################
X #
X # GENERAL
X #
X 
X-INCLUDES	=	-I.
X-LIBRARIES	=	-ldl -lm
X-CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
X-CXXFLAGS	=	$(CFLAGS)
X+CFLAGS		+=	-I.
X+CXXFLAGS	+=	-I.
X+LDFLAGS		+=	-lm
X PLUGINS		=	../plugins/amp.so				\
X 			../plugins/delay.so				\
X 			../plugins/filter.so				\
X@@ -26,9 +25,6 @@
X PROGRAMS	=	../bin/analyseplugin				\
X 			../bin/applyplugin 				\
X 			../bin/listplugins
X-CC		=	cc
X-CPP		=	c++
X-
X ###############################################################################
X #
X # RULES TO BUILD PLUGINS FROM C OR C++ CODE
X@@ -39,8 +35,8 @@
X 	$(LD) -o ../plugins/$*.so plugins/$*.o -shared
X 
X ../plugins/%.so:	plugins/%.cpp ladspa.h
X-	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
X-	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
X+	$(CXX) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
X+	$(CXX) -o ../plugins/$*.so plugins/$*.o -shared
X 
X ###############################################################################
X #
X@@ -90,17 +86,17 @@
X #
X 
X ../bin/applyplugin:	applyplugin.o load.o				
X-	$(CC) $(CFLAGS) $(LIBRARIES)					\
X+	$(CC) $(CFLAGS) $(LDFLAGS)					\
X 		-o ../bin/applyplugin					\
X 		applyplugin.o load.o
X 
X ../bin/analyseplugin:	analyseplugin.o load.o				
X-	$(CC) $(CFLAGS) $(LIBRARIES)					\
X+	$(CC) $(CFLAGS) $(LDFLAGS)					\
X 		-o ../bin/analyseplugin 				\
X 		analyseplugin.o load.o
X 
X ../bin/listplugins:	listplugins.o search.o				
X-	$(CC) $(CFLAGS) $(LIBRARIES)					\
X+	$(CC) $(CFLAGS) $(LDFLAGS)					\
X 		-o ../bin/listplugins	 				\
X 		listplugins.o search.o
X 
END-of-ladspa/files/patch-makefile
echo x - ladspa/files/patch-applyplugin.c
sed 's/^X//' >ladspa/files/patch-applyplugin.c << 'END-of-ladspa/files/patch-applyplugin.c'
X--- applyplugin.c.orig	Sat May 11 23:31:00 2002
X+++ applyplugin.c	Sat May 11 23:31:09 2002
X@@ -6,7 +6,7 @@
X /*****************************************************************************/
X 
X #include <dlfcn.h>
X-#include <endian.h>
X+#include <machine/endian.h>
X #include <errno.h>
X #include <math.h>
X #include <stdlib.h>
END-of-ladspa/files/patch-applyplugin.c
echo x - ladspa/pkg-plist
sed 's/^X//' >ladspa/pkg-plist << 'END-of-ladspa/pkg-plist'
Xbin/analyseplugin
Xbin/applyplugin
Xbin/listplugins
Xinclude/ladspa.h
Xlib/ladspa/amp.so
Xlib/ladspa/delay.so
Xlib/ladspa/filter.so
Xlib/ladspa/noise.so
Xlib/ladspa/sine.so
X@dirrm lib/ladspa
END-of-ladspa/pkg-plist
echo x - ladspa/pkg-comment
sed 's/^X//' >ladspa/pkg-comment << 'END-of-ladspa/pkg-comment'
XLinux Audio Developer's Simple Plugin API
END-of-ladspa/pkg-comment
echo x - ladspa/pkg-descr
sed 's/^X//' >ladspa/pkg-descr << 'END-of-ladspa/pkg-descr'
XMany audio synthesis and recording packages are in use or in
Xdevelopment. These work in many different ways. LADSPA
Xprovides a standard way for `plugin' audio processors to be used with
Xa wide range of these packages.
X
XFor instance, this allows a developer to make a reverb program and
Xbundle it into a LADSPA `plugin library.' Ordinary users can then use
Xthis reverb within any LADSPA-friendly audio application.
X
XAuthor: Richard Furse <richard@muse.demon.co.uk.>
XWWW: http://www.ladspa.org
X
X- Tilman Linneweh
Xfreebsdports@arved.de
END-of-ladspa/pkg-descr
exit
--- ladspa.shar ends here ---


>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?200205112228.g4BMS0562013>