aboutsummaryrefslogtreecommitdiffstats
path: root/audio/lingot
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2011-10-25 04:28:52 +0800
committerpawel <pawel@FreeBSD.org>2011-10-25 04:28:52 +0800
commit3694ecda485d16a4e5ce5e5a6bea4bf2d15a74b3 (patch)
treeb5c1d1a8b9d5703ca65cc55cd1d575dac83cbde1 /audio/lingot
parentf670ab89941064d3e8c1b162fe44aced78bee68a (diff)
downloadfreebsd-ports-gnome-3694ecda485d16a4e5ce5e5a6bea4bf2d15a74b3.tar.gz
freebsd-ports-gnome-3694ecda485d16a4e5ce5e5a6bea4bf2d15a74b3.tar.zst
freebsd-ports-gnome-3694ecda485d16a4e5ce5e5a6bea4bf2d15a74b3.zip
LINGOT is a musical instrument tuner. It's accurate, easy to use, and highly
configurable. Originally conceived to tune electric guitars, it can now be used to tune other instruments. It looks like an analogue tuner, with a gauge indicating the relative shift to a certain note, found automatically as the closest note to the estimated frequency. WWW: http://www.nongnu.org/lingot/ PR: ports/161878 Submitted by: Bartoletti <coder@tuxfamily.org>
Diffstat (limited to 'audio/lingot')
-rw-r--r--audio/lingot/Makefile54
-rw-r--r--audio/lingot/distinfo2
-rw-r--r--audio/lingot/files/extra-lingot-config-scale.h14
-rw-r--r--audio/lingot/pkg-descr9
-rw-r--r--audio/lingot/pkg-plist55
5 files changed, 134 insertions, 0 deletions
diff --git a/audio/lingot/Makefile b/audio/lingot/Makefile
new file mode 100644
index 000000000000..6ed2be26991f
--- /dev/null
+++ b/audio/lingot/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: lingot
+# Date created: 2011-10-17
+# Whom: Bartoletti <coder@tuxfamily.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= lingot
+PORTVERSION= 0.9.1
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SAVANNAH}
+MASTER_SITE_SUBDIR=${PORTNAME}
+
+MAINTAINER= coder@tuxfamily.org
+COMMENT= LINGOT is a musical instrument tuner
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USE_GNOME= gtk20 libglade2
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_GETTEXT= yes
+
+LDFLAGS+= -L${LOCALBASE}/lib
+
+OPTIONS= JACK "Enable jack plugin" on \
+ ALSA "Enable alsa plugin" off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_JACK)
+LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack \
+ samplerate.1:${PORTSDIR}/audio/libsamplerate
+CONFIGURE_ARGS+=--enable-jack
+.else
+CONFIGURE_ARGS+=--disable-jack
+.endif
+
+.if defined(WITH_ALSA)
+LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
+RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
+CONFIGURE_ARGS+=--enable-alsa
+.else
+CONFIGURE_ARGS+=--disable-alsa
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 802502 || (${OSVERSION} > 900000 && ${OSVERSION} < 900027)
+EXTRA_PATCHES+= ${FILESDIR}/extra-lingot-config-scale.h
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/audio/lingot/distinfo b/audio/lingot/distinfo
new file mode 100644
index 000000000000..d55f5e700c6d
--- /dev/null
+++ b/audio/lingot/distinfo
@@ -0,0 +1,2 @@
+SHA256 (lingot-0.9.1.tar.gz) = ec91223ab3df7c9160e6f1ededd8125e64764360caa0de39f54ef0668d56f979
+SIZE (lingot-0.9.1.tar.gz) = 440043
diff --git a/audio/lingot/files/extra-lingot-config-scale.h b/audio/lingot/files/extra-lingot-config-scale.h
new file mode 100644
index 000000000000..98c8ad8cb1c6
--- /dev/null
+++ b/audio/lingot/files/extra-lingot-config-scale.h
@@ -0,0 +1,14 @@
+--- src/lingot-config-scale.h.orig 2011-10-18 06:29:18.000000000 +0200
++++ src/lingot-config-scale.h 2011-10-18 06:30:42.000000000 +0200
+@@ -23,6 +23,11 @@
+ #ifndef LINGOT_CONFIG_SCALE_H_
+ #define LINGOT_CONFIG_SCALE_H_
+
++/* FreeBSD patch for log2 */
++#ifdef __FreeBSD__
++#define log2(x) (log(x) / M_LN2)
++#endif /* __FreeBSD__ */
++
+ #include "lingot-defs.h"
+
+ typedef struct _LingotScale LingotScale;
diff --git a/audio/lingot/pkg-descr b/audio/lingot/pkg-descr
new file mode 100644
index 000000000000..707406f63169
--- /dev/null
+++ b/audio/lingot/pkg-descr
@@ -0,0 +1,9 @@
+LINGOT is a musical instrument tuner. It's accurate, easy to use, and highly
+configurable. Originally conceived to tune electric guitars, it can now be
+used to tune other instruments.
+
+It looks like an analogue tuner, with a gauge indicating the relative
+shift to a certain note, found automatically as the closest note
+to the estimated frequency.
+
+WWW: http://www.nongnu.org/lingot/
diff --git a/audio/lingot/pkg-plist b/audio/lingot/pkg-plist
new file mode 100644
index 000000000000..8209a950619a
--- /dev/null
+++ b/audio/lingot/pkg-plist
@@ -0,0 +1,55 @@
+bin/lingot
+lib/locale/ca/LC_MESSAGES/lingot.mo
+lib/locale/cs/LC_MESSAGES/lingot.mo
+lib/locale/de/LC_MESSAGES/lingot.mo
+lib/locale/es/LC_MESSAGES/lingot.mo
+lib/locale/fr/LC_MESSAGES/lingot.mo
+lib/locale/gl/LC_MESSAGES/lingot.mo
+lib/locale/it/LC_MESSAGES/lingot.mo
+lib/locale/pt_BR/LC_MESSAGES/lingot.mo
+lib/locale/sv/LC_MESSAGES/lingot.mo
+lib/locale/zh_CN/LC_MESSAGES/lingot.mo
+share/applications/lingot.desktop
+share/doc/lingot/AUTHORS
+share/doc/lingot/COPYING
+share/doc/lingot/ChangeLog
+share/doc/lingot/INSTALL
+share/doc/lingot/MAINTAINERS
+share/doc/lingot/NEWS
+share/doc/lingot/README
+share/doc/lingot/THANKS
+share/doc/lingot/TODO
+share/doc/lingot/intltool-extract.in
+share/doc/lingot/intltool-merge.in
+share/doc/lingot/intltool-update.in
+share/doc/lingot/lingot-background.xpm
+share/doc/lingot/lingot-logo.xpm
+share/lingot/glade/lingot-config-dialog.glade
+share/lingot/glade/lingot-mainframe.glade
+share/pixmaps/lingot/lingot-icon.svg
+@dirrm share/pixmaps/lingot
+@dirrm share/lingot/glade
+@dirrm share/lingot
+@dirrm share/doc/lingot
+@dirrmtry share/applications
+@dirrm lib/locale/zh_CN/LC_MESSAGES
+@dirrm lib/locale/zh_CN
+@dirrm lib/locale/sv/LC_MESSAGES
+@dirrm lib/locale/sv
+@dirrm lib/locale/pt_BR/LC_MESSAGES
+@dirrm lib/locale/pt_BR
+@dirrm lib/locale/it/LC_MESSAGES
+@dirrm lib/locale/it
+@dirrm lib/locale/gl/LC_MESSAGES
+@dirrm lib/locale/gl
+@dirrm lib/locale/fr/LC_MESSAGES
+@dirrm lib/locale/fr
+@dirrm lib/locale/es/LC_MESSAGES
+@dirrm lib/locale/es
+@dirrm lib/locale/de/LC_MESSAGES
+@dirrm lib/locale/de
+@dirrm lib/locale/cs/LC_MESSAGES
+@dirrm lib/locale/cs
+@dirrm lib/locale/ca/LC_MESSAGES
+@dirrm lib/locale/ca
+@dirrm lib/locale