New port: audio/gkrellmss2

Attached is a port of the gkrellmss plugin for gkrellm2.

PR:		ports/47917
Submitted by:	Lars Eggert <larse@isi.edu>
This commit is contained in:
Edwin Groothuis
2003-09-01 02:57:08 +00:00
parent 499951df7a
commit ba6d67aeae
6 changed files with 107 additions and 0 deletions

View File

@@ -94,6 +94,7 @@
SUBDIR += gkrellmms
SUBDIR += gkrellmms2
SUBDIR += gkrellmss
SUBDIR += gkrellmss2
SUBDIR += gkrellmvolume
SUBDIR += gkrellmvolume2
SUBDIR += glame

43
audio/gkrellmss2/Makefile Normal file
View File

@@ -0,0 +1,43 @@
# New ports collection makefile for: gkrellmss
# Date Created: Tue Feb 4 13:24:50 PST 2003
# Whom: Lars Eggert <larse@isi.edu>
#
# $FreeBSD$
#
PORTNAME= gkrellmss
PORTVERSION= 2.3
CATEGORIES= audio
MASTER_SITES= http://web.wt.net/~billw/gkrellmss/
MAINTAINER= larse@isi.edu
COMMENT= A plugin for GKrellM with a VU meter showing left/right channel audio
BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
LIB_DEPENDS= gdk_pixbuf_xlib.2:${PORTSDIR}/graphics/gdk-pixbuf
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOMENG= yes
USE_GNOME= esound imlib
USE_XPM= yes
DOC_FILES= Changelog README Themes
MAKE_ENV+= PLUGIN_INSTALLDIR=${PREFIX}/libexec/gkrellm2/plugins \
INSTALLDIR=${PREFIX}/libexec/gkrellm2/plugins \
LOCALEDIR=${PREFIX}/share/locale \
FFTW_LIB_DIR=-L${LOCALBASE}/lib \
enable_nls=1
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@@ -0,0 +1 @@
MD5 (gkrellmss-2.3.tar.gz) = 457a85c28f049ef0787c842b5494ece0

View File

@@ -0,0 +1,39 @@
--- src/Makefile.orig Sat Oct 26 20:48:59 2002
+++ src/Makefile Tue Feb 4 13:17:23 2003
@@ -10,15 +10,15 @@
SD_INCLUDE =
SD_LIB = -lasound
else
-SD_INCLUDE = `esd-config --cflags`
-SD_LIB = `esd-config --libs`
+SD_INCLUDE = `${ESD_CONFIG} --cflags`
+SD_LIB = `${ESD_CONFIG} --libs`
endif
FFTW_LIB_DIR ?=
FFTW_LIB = $(FFTW_LIB_DIR) -lrfftw -lfftw
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(SD_INCLUDE)
+FLAGS = -Wall -fPIC $(GTK_INCLUDE) $(SD_INCLUDE)
LIBS = $(GTK_LIB) $(SD_LIB) $(FFTW_LIB) -lm
ifeq ($(OS_NAME),Darwin)
@@ -42,7 +42,7 @@
FLAGS += -DGKRELLM_ALSA5
endif
-CC = gcc $(FLAGS) $(CFLAGS)
+CC += $(FLAGS) $(CFLAGS)
OBJS = gkrellmss.o oscope.o spectrum.o sdlib.o
@@ -56,7 +56,7 @@
install:
$(INSTALL) -d -m 755 $(INSTALLDIR)
- $(INSTALL) -c $(STRIP) -m 755 gkrellmss.so $(INSTALLDIR)
+ $(INSTALL) gkrellmss.so $(INSTALLDIR)
gkrellmss.o: gkrellmss.c gkrellmss.h
oscope.o: oscope.c gkrellmss.h

View File

@@ -0,0 +1,18 @@
GKrellMSS displays a VU meter showing left and right channel audio
levels and also has a chart that shows combined left and right
audio channels as an oscilloscope trace.
There are two buttons to the left of the VU Meter which select an
oscope horizontal sweep speed ranging from 100 microseconds (usec)
per division to 50 miliseconds (msec) per division. There are 5
horizontal divisions, so a trace sweep time can range from 500 usec
(1/2000 sec) to 250 msec (1/4 sec). The oscope trace is triggered
by a positive zero crossing audio signal to give nice stable
displays.
There is also a sensitivity level adjustment for the VU Meter and
oscope chart. Use the mouse wheel to adjust, or left click and drag
the sensitivity krell.
Author: Bill Wilson <bill@gkrellm.net>
WWW: http://web.wt.net/~billw/gkrellmss/gkrellmss.html

View File

@@ -0,0 +1,5 @@
libexec/gkrellm2/plugins/gkrellmss.so
%%PORTDOCS%%share/doc/gkrellmss/Changelog
%%PORTDOCS%%share/doc/gkrellmss/README
%%PORTDOCS%%share/doc/gkrellmss/Themes
%%PORTDOCS%%@dirrm share/doc/gkrellmss