New port: WMxmms

WMxmms is little dockapp in the style of wmusic and wmapmload/wmcpuload.
It represents a fairly complete interface to XMMS including reflecting
states set from the XMMS console.

Submitted by:	Alexey Dokuchaev
This commit is contained in:
Max Khon 2003-04-10 14:24:00 +00:00
parent ef4a39488d
commit eb31f2cd23
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78702
7 changed files with 127 additions and 0 deletions

View file

@ -1,5 +1,6 @@
# $FreeBSD$
#
SUBDIR += WMxmms
SUBDIR += acme
SUBDIR += avidemux
SUBDIR += avifile

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: WMxmms
# Date created: 10 May 2003
# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD$
#
PORTNAME= WMxmms
PORTVERSION= 0.1.4
CATEGORIES= multimedia windowmaker
MASTER_SITES= http://www.dockapps.com/download.php/id/252/ \
ftp://ftp.nsu.ru/tmp/
MAINTAINER= danfe@regency.nsu.ru
COMMENT= A dockable XMMS interface
BUILD_DEPENDS= xmms-config:${PORTSDIR}/multimedia/xmms
RUN_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms
USE_CONFIGURE= yes
USE_GNOME= gtk12
USE_X_PREFIX= yes
USE_XPM= yes
MAN1= ${PORTNAME}.1
pre-build:
@${FIND} ${WRKSRC}/src -name \*.o -delete
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (WMxmms-0.1.4.tar.gz) = b7fc2b01340f267b7f29b608d3f63a98

View file

@ -0,0 +1,61 @@
--- src/Makefile.orig Sun Mar 30 10:47:20 2003
+++ src/Makefile Thu Apr 10 18:28:58 2003
@@ -61,8 +61,8 @@
AWK = gawk
CC = gcc
DFLAGS =
-HEADER_SEARCH_PATH = -I/usr/X11R6/include -I/usr/local/include
-LIBRARY_SEARCH_PATH = -L/usr/X11R6/lib -L/usr/local/lib
+HEADER_SEARCH_PATH = -I${X11BASE}/include -I${prefix}/include
+LIBRARY_SEARCH_PATH = -L${X11BASE}/lib -L${prefix}/lib
LIBS =
LN_S = ln -s
MAKEINFO = makeinfo
@@ -70,24 +70,24 @@
PACKAGE = wmapmload
SETGID_FLAGS =
VERSION = 0.3.2
-XCFLAGS = -I/usr/X11R6/include
-XLFLAGS = -L/usr/X11R6/lib
+XCFLAGS = -I${X11BASE}/include
+XLFLAGS = -L${X11BASE}/lib
XLIBS = -lX11 -lXext -lXpm
X_EXTRA_LIBS =
-X_LIBRARY_PATH = /usr/X11R6/lib
+X_LIBRARY_PATH = ${X11BASE}/lib
bin_PROGRAMS = WMxmms
WMxmms_SOURCES = wmxmms.c dockapp.c dockapp.h mouse_regions.c mouse_regions.h backdrop_off.xpm backdrop_on.xpm parts.xpm xmms_func.c xmms_func.h
-CPPFLAGS = `/usr/bin/xmms-config --cflags` -DDATA_DIR=\"`/usr/bin/xmms-config --data-dir`\"
+CPPFLAGS = `${PREFIX}/bin/xmms-config --cflags` -DDATA_DIR=\"`${PREFIX}/bin/xmms-config --data-dir`\"
-INCLUDES = -I/usr/X11R6/include -I/usr/local/include
+INCLUDES = -I${X11BASE}/include -I${prefix}/include
-WMxmms_LDADD = -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lXpm
+WMxmms_LDADD = -L${X11BASE}/lib -L${prefix}/lib -lX11 -lXext -lXpm
-LDFLAGS = `/usr/bin/gtk-config --libs` `/usr/bin/xmms-config --libs`
+LDFLAGS = `${PREFIX}/bin/gtk12-config --libs` `${PREFIX}/bin/xmms-config --libs`
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
@@ -98,13 +98,12 @@
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
-X_CFLAGS = -I/usr/X11R6/include
-X_LIBS = -L/usr/X11R6/lib
+X_CFLAGS = -I${X11BASE}/include
+X_LIBS = -L${X11BASE}/lib
X_PRE_LIBS = -lSM -lICE
WMxmms_OBJECTS = wmxmms.o dockapp.o mouse_regions.o xmms_func.o
WMxmms_DEPENDENCIES =
WMxmms_LDFLAGS =
-CFLAGS = -g -O2
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@

View file

@ -0,0 +1,20 @@
--- src/wmxmms.c.orig Thu Apr 10 17:13:16 2003
+++ src/wmxmms.c Thu Apr 10 17:16:26 2003
@@ -218,14 +218,12 @@
static void unhighlight_button(int x, int y, int b) {
int z;
- int q;
-
- q = 25;
-
+ int q = 25;
+
+ XmmsInfos *xmms = &cur_xmms_infos;
if( backlight == LIGHTON)
q = 0;
- XmmsInfos *xmms = &cur_xmms_infos;
xmms->running = XmmsStatus();

View file

@ -0,0 +1,9 @@
WMxmms is little dockapp in the style of wmusic and wmapmload/wmcpuload.
It represents a fairly complete interface to XMMS including reflecting
states set from the XMMS console.
Credits go to Thomas Nemeth who came up with the LCD type design and
Hades (hadess@hadess.net) who wrote xmusic and thus provided the
inspiration for this one.
WWW: http://www.dockapps.com/file.php/id/172

View file

@ -0,0 +1 @@
bin/WMxmms