diff options
author | Koichiro Iwao <meta@FreeBSD.org> | 2019-07-31 00:19:14 +0000 |
---|---|---|
committer | Koichiro Iwao <meta@FreeBSD.org> | 2019-07-31 00:19:14 +0000 |
commit | 158acd2c416056ac7e77454681be52fce969db74 (patch) | |
tree | dc685e800b5719c0346f7b040cab1a2b18ec5247 | |
parent | x11-wm/awesome: Fix build when multiple Lua versions are installed (diff) |
New port: audio/grip GTK front-end to external cd rippers and audio encoders
Grip is a front-end to external cd audio rippers (such as dagrab or
cdda2wav). It also provides an automated frontend for MP3 encoders, letting
you take a disc and transform it easily straight into MP3s. The CDDB
protocol is supported for retrieving track information from disc database
servers. Grip works with DigitalDJ to provide a unified "computerized"
version of your music collection.
WWW: https://sourceforge.net/projects/grip/
PR: 239006
Submitted by: Jens Grassel <freebsd-ports@jan0sch.de>
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/grip/Makefile | 64 | ||||
-rw-r--r-- | audio/grip/distinfo | 3 | ||||
-rw-r--r-- | audio/grip/files/patch-src_main.c | 11 | ||||
-rw-r--r-- | audio/grip/files/patch-src_tray.c | 10 | ||||
-rw-r--r-- | audio/grip/pkg-descr | 8 | ||||
-rw-r--r-- | audio/grip/pkg-plist | 86 |
7 files changed, 183 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index b25f6b31033f..9d5b2f17e77b 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -241,6 +241,7 @@ SUBDIR += gqradio SUBDIR += gradio SUBDIR += gramofile + SUBDIR += grip SUBDIR += gsequencer SUBDIR += gsm SUBDIR += gsound diff --git a/audio/grip/Makefile b/audio/grip/Makefile new file mode 100644 index 000000000000..54d1221fdbb3 --- /dev/null +++ b/audio/grip/Makefile @@ -0,0 +1,64 @@ +# Created by: kbyanc@posi.net +# $FreeBSD$ + +PORTNAME= grip +PORTVERSION= 3.10.1 +CATEGORIES= audio +MASTER_SITES= SF/grip/${PORTVERSION} + +MAINTAINER= freebsd-ports@jan0sch.de +COMMENT= GTK front-end to external cd rippers and audio encoders + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libcurl.so:ftp/curl \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libid3.so:audio/id3lib \ + libpopt.so:devel/popt + +USES= gmake libtool localbase pathfix pkgconfig +USE_XORG= ice sm x11 xext +USE_GNOME= cairo gdkpixbuf2 gnomeprefix libgnomeui vte + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--disable-werror +INSTALLS_ICONS= yes + +OPTIONS_DEFINE= CDPARANOIA CDDA2WAV LAME VORBIS FAAC FLAC NLS +OPTIONS_DEFAULT= CDPARANOIA FLAC VORBIS + +.if !defined(PACKAGE_BUILDING) +OPTIONS_DEFAULT+= LAME +.endif + +OPTIONS_SUB= yes + +CDPARANOIA_LIB_DEPENDS= libcdda_paranoia.so:audio/cdparanoia +CDPARANOIA_CONFIGURE_ENABLE= cdpar +CDDA2WAV_RUN_DEPENDS= cdda2wav:sysutils/cdrtools +FAAC_RUN_DEPENDS= faac:audio/faac +FLAC_RUN_DEPENDS= flac:audio/flac +LAME_RUN_DEPENDS= lame:audio/lame +VORBIS_RUN_DEPENDS= ogg123:audio/vorbis-tools +NLS_USES= gettext + +.if defined(WITH_CDROM_DEVICE) +DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} +.else +DEFAULT_CDROM_DEVICE=/dev/cd0 +.endif + +pre-everything:: +.if !defined(WITH_CDROM_DEVICE) + @${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}" + @${ECHO_MSG} "===> Define WITH_CDROM_DEVICE if you want to change the default" + @${ECHO_MSG} "===> For example, 'make WITH_CDROM_DEVICE=\"/dev/somedevice\"'" +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ + ${WRKSRC}/src/grip.c + +.include <bsd.port.mk> diff --git a/audio/grip/distinfo b/audio/grip/distinfo new file mode 100644 index 000000000000..0bd8200e5d4b --- /dev/null +++ b/audio/grip/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1562331458 +SHA256 (grip-3.10.1.tar.gz) = 50093cd01a2ba46e8ef20bec97f0a6d0a7b4cbefcd3f7ec68beba14c4bd6d0a5 +SIZE (grip-3.10.1.tar.gz) = 980748 diff --git a/audio/grip/files/patch-src_main.c b/audio/grip/files/patch-src_main.c new file mode 100644 index 000000000000..b509371b68e8 --- /dev/null +++ b/audio/grip/files/patch-src_main.c @@ -0,0 +1,11 @@ +--- src/main.c.orig 2005-06-25 18:00:55 UTC ++++ src/main.c +@@ -164,7 +164,7 @@ int Cmain(int argc, char* argv[]) + GNOME_PARAM_POPT_TABLE,options, + GNOME_PROGRAM_STANDARD_PROPERTIES,NULL); + +- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF8"); ++ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); + setenv("CHARSET","UTF-8",1); + + /* Session Management */ diff --git a/audio/grip/files/patch-src_tray.c b/audio/grip/files/patch-src_tray.c new file mode 100644 index 000000000000..85aaacc8a757 --- /dev/null +++ b/audio/grip/files/patch-src_tray.c @@ -0,0 +1,10 @@ +--- src/tray.c.orig 2017-07-31 21:04:11 UTC ++++ src/tray.c +@@ -21,6 +21,7 @@ + */ + + #include "cdplay.h" ++#include "common.h" + #include "tray.h" + #include "rip.h" + #include "uihelper.h" diff --git a/audio/grip/pkg-descr b/audio/grip/pkg-descr new file mode 100644 index 000000000000..34509efca804 --- /dev/null +++ b/audio/grip/pkg-descr @@ -0,0 +1,8 @@ +Grip is a front-end to external cd audio rippers (such as dagrab or +cdda2wav). It also provides an automated frontend for MP3 encoders, letting +you take a disc and transform it easily straight into MP3s. The CDDB +protocol is supported for retrieving track information from disc database +servers. Grip works with DigitalDJ to provide a unified "computerized" +version of your music collection. + +WWW: https://sourceforge.net/projects/grip/ diff --git a/audio/grip/pkg-plist b/audio/grip/pkg-plist new file mode 100644 index 000000000000..72b1103a4d02 --- /dev/null +++ b/audio/grip/pkg-plist @@ -0,0 +1,86 @@ +bin/grip +man/man1/grip.1.gz +share/applications/grip.desktop +share/apps/solid/actions/grip-audiocd.desktop +share/solid/actions/grip-audiocd.desktop +share/gnome/help/grip/C/cdconfig.png +share/gnome/help/grip/C/cdplayer.png +share/gnome/help/grip/C/cdplayersmall.png +share/gnome/help/grip/C/cdscan.png +share/gnome/help/grip/C/discdb.png +share/gnome/help/grip/C/discdbconfig.png +share/gnome/help/grip/C/editing.png +share/gnome/help/grip/C/eject.png +share/gnome/help/grip/C/encprog.png +share/gnome/help/grip/C/ffwd.png +share/gnome/help/grip/C/grip-logo.png +share/gnome/help/grip/C/grip.xml +share/gnome/help/grip/C/id3config.png +share/gnome/help/grip/C/minmax.png +share/gnome/help/grip/C/miscconfig.png +share/gnome/help/grip/C/modeinterface.png +share/gnome/help/grip/C/mp3config.png +share/gnome/help/grip/C/mp3config2.png +share/gnome/help/grip/C/multiartist.png +share/gnome/help/grip/C/nexttrk.png +share/gnome/help/grip/C/playloop.png +share/gnome/help/grip/C/playnormal.png +share/gnome/help/grip/C/playonce.png +share/gnome/help/grip/C/playpause.png +share/gnome/help/grip/C/playplaylist.png +share/gnome/help/grip/C/playrandom.png +share/gnome/help/grip/C/prevtrk.png +share/gnome/help/grip/C/progtrack.png +share/gnome/help/grip/C/proxyconfig.png +share/gnome/help/grip/C/quit.png +share/gnome/help/grip/C/rewind.png +share/gnome/help/grip/C/ripconfig.png +share/gnome/help/grip/C/ripconfig2.png +share/gnome/help/grip/C/ripconfig3.png +share/gnome/help/grip/C/ripping.png +share/gnome/help/grip/C/ripprog.png +share/gnome/help/grip/C/ripsmall.png +share/gnome/help/grip/C/smile1.png +share/gnome/help/grip/C/smile2.png +share/gnome/help/grip/C/smile3.png +share/gnome/help/grip/C/smile4.png +share/gnome/help/grip/C/smile5.png +share/gnome/help/grip/C/smile6.png +share/gnome/help/grip/C/smile7.png +share/gnome/help/grip/C/smile8.png +share/gnome/help/grip/C/stop.png +share/gnome/help/grip/C/trkedit.png +share/gnome/help/grip/C/volume.png +share/icons/hicolor/16x16/apps/grip.png +share/icons/hicolor/22x22/apps/grip.png +share/icons/hicolor/24x24/apps/grip.png +share/icons/hicolor/32x32/apps/grip.png +share/icons/hicolor/48x48/apps/grip.png +share/icons/hicolor/64x64/apps/grip.png +share/icons/hicolor/72x72/apps/grip.png +share/icons/hicolor/scalable/apps/grip.svg +%%NLS%%share/locale/be/LC_MESSAGES/grip.mo +%%NLS%%share/locale/bg/LC_MESSAGES/grip.mo +%%NLS%%share/locale/ca/LC_MESSAGES/grip.mo +%%NLS%%share/locale/da/LC_MESSAGES/grip.mo +%%NLS%%share/locale/de/LC_MESSAGES/grip.mo +%%NLS%%share/locale/es/LC_MESSAGES/grip.mo +%%NLS%%share/locale/fi/LC_MESSAGES/grip.mo +%%NLS%%share/locale/fr/LC_MESSAGES/grip.mo +%%NLS%%share/locale/fur/LC_MESSAGES/grip.mo +%%NLS%%share/locale/hu/LC_MESSAGES/grip.mo +%%NLS%%share/locale/it/LC_MESSAGES/grip.mo +%%NLS%%share/locale/ja/LC_MESSAGES/grip.mo +%%NLS%%share/locale/nb/LC_MESSAGES/grip.mo +%%NLS%%share/locale/nl/LC_MESSAGES/grip.mo +%%NLS%%share/locale/pl/LC_MESSAGES/grip.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/grip.mo +%%NLS%%share/locale/ru/LC_MESSAGES/grip.mo +%%NLS%%share/locale/sr/LC_MESSAGES/grip.mo +%%NLS%%share/locale/uk/LC_MESSAGES/grip.mo +%%NLS%%share/locale/vi/LC_MESSAGES/grip.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/grip.mo +%%NLS%%share/locale/zh_HK/LC_MESSAGES/grip.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/grip.mo +share/pixmaps/grip.png +share/pixmaps/griptray.png |