Import d11amp, a mpg123 frontend trying to resemble WinAmp.
From upstream author and port maintainer Thomas Dettbarn, with input from sthen@ and me, ok sthen@
This commit is contained in:
parent
ca1eb7753d
commit
6868fa5fe6
|
@ -0,0 +1,33 @@
|
|||
COMMENT= simple MP3 player
|
||||
|
||||
V= 0.59
|
||||
DISTNAME= d11amp_${V}
|
||||
PKGNAME= d11amp-${V}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
CATEGORIES= audio
|
||||
|
||||
HOMEPAGE= https://www.dettus.net/d11amp
|
||||
MAINTAINER= Thomas Dettbarn <dettus@dettus.net>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += c cairo cairo-gobject gdk_pixbuf-2.0 gio-2.0 glib-2.0
|
||||
WANTLIB += gobject-2.0 graphene-1.0 gtk-4 harfbuzz intl m mpg123
|
||||
WANTLIB += pango-1.0 pangocairo-1.0 portaudio pthread zip
|
||||
|
||||
MASTER_SITES= https://www.dettus.net/d11amp/
|
||||
|
||||
LIB_DEPENDS= graphics/gdk-pixbuf2 \
|
||||
x11/gtk+4 \
|
||||
archivers/libzip \
|
||||
audio/mpg123 \
|
||||
audio/portaudio-svn
|
||||
|
||||
FAKE_FLAGS= INSTALLMAN="${WRKINST}${PREFIX}/man"
|
||||
TEST_ENV= SHA256_CMD=sha256 TMP_DIR=/tmp/d11amp/
|
||||
TEST_TARGET= check
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
SHA256 (d11amp_0.59.tar.bz2) = WW/ij9KgiYv/8Aqlt5RXYz5z51JrhmtphBnBNASemEE=
|
||||
SIZE (d11amp_0.59.tar.bz2) = 73479
|
|
@ -0,0 +1,61 @@
|
|||
Make the Makefile work in the ports tree.
|
||||
--- Makefile.orig 2022-12-07 18:40:47.911485894 +0100
|
||||
+++ Makefile 2022-12-07 18:46:14.805995288 +0100
|
||||
@@ -31,35 +31,36 @@
|
||||
|
||||
CC?=gcc
|
||||
AR?=ar
|
||||
-CFLAGS= -O3 -Os
|
||||
+CFLAGS?= -O3 -Os
|
||||
#CFLAGS?=-O0 -g
|
||||
CFLAGS+=-Wall
|
||||
#CFLAGS+=-Werror
|
||||
PROJ_HOME=./
|
||||
INCFLAGS= -I$(PROJ_HOME)src/
|
||||
LINK=$(CC)
|
||||
+LINKFLAGS=""
|
||||
|
||||
# Library gdk-pixbuf
|
||||
-LDFLAGS+= `pkg-config --libs gdk-pixbuf-2.0`
|
||||
-CFLAGS+= `pkg-config --cflags gdk-pixbuf-2.0`
|
||||
+LINKFLAGS+= `pkg-config --libs gdk-pixbuf-2.0`
|
||||
+INCFLAGS+= `pkg-config --cflags gdk-pixbuf-2.0`
|
||||
|
||||
# Library: gtk4
|
||||
-LDFLAGS+= `pkg-config --libs gtk4`
|
||||
-CFLAGS+= `pkg-config --cflags gtk4`
|
||||
+LINKFLAGS+= `pkg-config --libs gtk4`
|
||||
+INCFLAGS+= `pkg-config --cflags gtk4`
|
||||
|
||||
# Library: libMPG123
|
||||
-LDFLAGS+= `pkg-config --libs libmpg123`
|
||||
-CFLAGS+= `pkg-config --cflags libmpg123`
|
||||
+LINKFLAGS+= `pkg-config --libs libmpg123`
|
||||
+INCFLAGS+= `pkg-config --cflags libmpg123`
|
||||
|
||||
# Library: portaudio
|
||||
-LDFLAGS+= `pkg-config --libs portaudio-2.0`
|
||||
-CFLAGS+= `pkg-config --cflags portaudio-2.0`
|
||||
+LINKFLAGS+= `pkg-config --libs portaudio-2.0`
|
||||
+INCFLAGS+= `pkg-config --cflags portaudio-2.0`
|
||||
|
||||
# Library: libzip
|
||||
-LDFLAGS+= `pkg-config --libs libzip`
|
||||
-CFLAGS+= `pkg-config --cflags libzip`
|
||||
+LINKFLAGS+= `pkg-config --libs libzip`
|
||||
+INCFLAGS+= `pkg-config --cflags libzip`
|
||||
|
||||
-LDFLAGS+=-lpthread -lm
|
||||
+LINKFLAGS+=-lpthread -lm
|
||||
|
||||
|
||||
|
||||
@@ -125,7 +126,7 @@
|
||||
cp d11amp.1 $(INSTALLMAN)/man1/
|
||||
|
||||
d11amp: $(OBJFILES)
|
||||
- $(LINK) -o $@ $(OBJFILES) $(LDFLAGS)
|
||||
+ $(LINK) -o $@ $(OBJFILES) $(LDFLAGS) $(LINKFLAGS)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_EXTRA) $(INCFLAGS) -c -o $@ $<
|
|
@ -0,0 +1,17 @@
|
|||
Typos in the manpage.
|
||||
--- d11amp.1.orig 2022-12-07 18:40:54.551637309 +0100
|
||||
+++ d11amp.1 2022-12-07 18:41:17.196146490 +0100
|
||||
@@ -30,11 +30,11 @@
|
||||
.Nm
|
||||
.Op --audiooutput.portaudio.device=NUMBER
|
||||
.br
|
||||
-The audio output is being handled through the portaudio library. This allows to select any audio output present in the device on which
|
||||
+The audio output is being handled through the portaudio library. This allows one to select any audio output present in the device on which
|
||||
.Nm
|
||||
has been started. The outputs are identified through a number, and a list of available outputs can be seen by using a question mark instead of the number.
|
||||
.br
|
||||
-The default audio output device can be adressed by using -1.
|
||||
+The default audio output device can be addressed by using -1.
|
||||
.Pp
|
||||
.Nm
|
||||
.Op --bsd
|
|
@ -0,0 +1,2 @@
|
|||
D11AMP is a frontend to MPG123, trying to resemble WinAmp, utilizing its
|
||||
treasure trove of themes.
|
|
@ -0,0 +1,2 @@
|
|||
@bin bin/d11amp
|
||||
@man man/man1/d11amp.1
|
Loading…
Reference in New Issue