From owner-svn-ports-all@freebsd.org Thu Mar 2 12:31:19 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61821CF1CB3; Thu, 2 Mar 2017 12:31:19 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 33DD16D1; Thu, 2 Mar 2017 12:31:19 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v22CVIKV079824; Thu, 2 Mar 2017 12:31:18 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v22CVH8t079818; Thu, 2 Mar 2017 12:31:17 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201703021231.v22CVH8t079818@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Thu, 2 Mar 2017 12:31:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r435233 - in head/audio: . deadbeef-spectrogram-plugin deadbeef-spectrogram-plugin/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 12:31:19 -0000 Author: danfe Date: Thu Mar 2 12:31:17 2017 New Revision: 435233 URL: https://svnweb.freebsd.org/changeset/ports/435233 Log: This is a spectrogram plugin for DeaDBeeF audio player. WWW: https://github.com/cboxdoerfer/ddb_spectrogram Added: head/audio/deadbeef-spectrogram-plugin/ head/audio/deadbeef-spectrogram-plugin/Makefile (contents, props changed) head/audio/deadbeef-spectrogram-plugin/distinfo (contents, props changed) head/audio/deadbeef-spectrogram-plugin/files/ head/audio/deadbeef-spectrogram-plugin/files/patch-Makefile (contents, props changed) head/audio/deadbeef-spectrogram-plugin/files/patch-spectrogram.c (contents, props changed) head/audio/deadbeef-spectrogram-plugin/pkg-descr (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Thu Mar 2 12:25:11 2017 (r435232) +++ head/audio/Makefile Thu Mar 2 12:31:17 2017 (r435233) @@ -98,6 +98,7 @@ SUBDIR += deadbeef-musical-spectrum-plugin SUBDIR += deadbeef-playback-status-plugin SUBDIR += deadbeef-quick-search-plugin + SUBDIR += deadbeef-spectrogram-plugin SUBDIR += deadbeef-vu-meter-plugin SUBDIR += deadbeef-waveform-seekbar-plugin SUBDIR += decibel-audio-player Added: head/audio/deadbeef-spectrogram-plugin/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-spectrogram-plugin/Makefile Thu Mar 2 12:31:17 2017 (r435233) @@ -0,0 +1,44 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= deadbeef-spectrogram-plugin +DISTVERSION= 0.0.2015.01.10 +CATEGORIES= audio + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Spectrogram plugin for DeaDBeeF audio player + +LICENSE= GPLv2+ + +BUILD_DEPENDS= ${LOCALBASE}/include/deadbeef/deadbeef.h:audio/deadbeef +LIB_DEPENDS= libfftw3.so:math/fftw3 +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USE_GITHUB= yes +GH_ACCOUNT= cboxdoerfer +GH_PROJECT= ddb_spectrogram +GH_TAGNAME= 8d1b371 + +USES= gmake pkgconfig + +MAKE_JOBS_UNSAFE= yes + +OPTIONS_DEFINE= GTK2 GTK3 +OPTIONS_DEFAULT= GTK2 + +.for v in 2 3 +GTK${v}_USE= GNOME=gtk${v}0 +GTK${v}_ALL_TARGET= gtk${v} + +GTK${v}_PLIST_FILES= lib/deadbeef/ddb_vis_spectrogram_GTK${v}.so + +do-install-GTK${v}-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/deadbeef + ${INSTALL_LIB} ${WRKSRC}/gtk${v}/ddb_vis_spectrogram_GTK${v}.so \ + ${STAGEDIR}${PREFIX}/lib/deadbeef +.endfor + +do-install: + @${DO_NADA} + +.include Added: head/audio/deadbeef-spectrogram-plugin/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-spectrogram-plugin/distinfo Thu Mar 2 12:31:17 2017 (r435233) @@ -0,0 +1,3 @@ +TIMESTAMP = 1420897675 +SHA256 (cboxdoerfer-ddb_spectrogram-0.0.2015.01.10-8d1b371_GH0.tar.gz) = 4a7a9b138c60b5b6b091cc2eac816f1d905709aed7cd4b5b5390fc07d3c15202 +SIZE (cboxdoerfer-ddb_spectrogram-0.0.2015.01.10-8d1b371_GH0.tar.gz) = 12468 Added: head/audio/deadbeef-spectrogram-plugin/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-spectrogram-plugin/files/patch-Makefile Thu Mar 2 12:31:17 2017 (r435233) @@ -0,0 +1,37 @@ +--- Makefile.orig 2015-01-10 13:47:55 UTC ++++ Makefile +@@ -28,7 +28,7 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0` + FFTW_LIBS?=-lfftw3 + + CC?=gcc +-CFLAGS+=-Wall -g -fPIC -std=c99 -D_GNU_SOURCE ++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE + LDFLAGS+=-shared + + GTK2_DIR?=gtk2 +@@ -65,21 +65,21 @@ mkdir_gtk3: + + $(GTK2_DIR)/$(OUT_GTK2): $(OBJ_GTK2) + @echo "Linking GTK+2 version" +- @$(call link, $(OBJ_GTK2), $(GTK2_LIBS), $(FFTW_LIBS)) ++ $(call link, $(OBJ_GTK2), $(GTK2_LIBS), $(FFTW_LIBS)) + @echo "Done!" + + $(GTK3_DIR)/$(OUT_GTK3): $(OBJ_GTK3) + @echo "Linking GTK+3 version" +- @$(call link, $(OBJ_GTK3), $(GTK3_LIBS), $(FFTW_LIBS)) ++ $(call link, $(OBJ_GTK3), $(GTK3_LIBS), $(FFTW_LIBS)) + @echo "Done!" + + $(GTK2_DIR)/%.o: %.c + @echo "Compiling $(subst $(GTK2_DIR)/,,$@)" +- @$(call compile, $(GTK2_CFLAGS)) ++ $(call compile, $(GTK2_CFLAGS)) + + $(GTK3_DIR)/%.o: %.c + @echo "Compiling $(subst $(GTK3_DIR)/,,$@)" +- @$(call compile, $(GTK3_CFLAGS)) ++ $(call compile, $(GTK3_CFLAGS)) + + clean: + @echo "Cleaning files from previous build..." Added: head/audio/deadbeef-spectrogram-plugin/files/patch-spectrogram.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-spectrogram-plugin/files/patch-spectrogram.c Thu Mar 2 12:31:17 2017 (r435233) @@ -0,0 +1,31 @@ +--- spectrogram.c.orig 2015-01-10 13:47:55 UTC ++++ spectrogram.c +@@ -238,6 +238,8 @@ gtk_widget_get_allocation (GtkWidget *wi + #define gtk_widget_set_can_default(widget, candefault) {if (candefault) GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_DEFAULT); else GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_DEFAULT);} + #endif + ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + static void + on_button_config (GtkMenuItem *menuitem, gpointer user_data) + { +@@ -266,8 +268,6 @@ on_button_config (GtkMenuItem *menuitem, + GtkWidget *applybutton1; + GtkWidget *cancelbutton1; + GtkWidget *okbutton1; +-#pragma GCC diagnostic push +-#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + spectrogram_properties = gtk_dialog_new (); + gtk_window_set_title (GTK_WINDOW (spectrogram_properties), "Spectrogram Properties"); + gtk_window_set_type_hint (GTK_WINDOW (spectrogram_properties), GDK_WINDOW_TYPE_HINT_DIALOG); +@@ -543,9 +543,9 @@ on_button_config (GtkMenuItem *menuitem, + break; + } + gtk_widget_destroy (spectrogram_properties); +-#pragma GCC diagnostic pop + return; + } ++#pragma GCC diagnostic pop + + void + w_spectrogram_destroy (ddb_gtkui_widget_t *w) { Added: head/audio/deadbeef-spectrogram-plugin/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-spectrogram-plugin/pkg-descr Thu Mar 2 12:31:17 2017 (r435233) @@ -0,0 +1,3 @@ +This is a spectrogram plugin for DeaDBeeF audio player. + +WWW: https://github.com/cboxdoerfer/ddb_spectrogram