diff options
author | Will Andrews <will@FreeBSD.org> | 2001-05-21 03:27:34 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-05-21 03:27:34 +0000 |
commit | 904a744a3ea006d54acb19176399332c3674b19c (patch) | |
tree | 63dd6ddfebbd2d89885f33dd445136c256ff2a0a /misc | |
parent | 462fd29991c5d12325aabfdf0e13db01d689c0a5 (diff) | |
download | ports-904a744a3ea006d54acb19176399332c3674b19c.tar.gz ports-904a744a3ea006d54acb19176399332c3674b19c.zip |
Notes
Diffstat (limited to 'misc')
-rw-r--r-- | misc/xosd/Makefile | 13 | ||||
-rw-r--r-- | misc/xosd/files/patch-aa | 63 | ||||
-rw-r--r-- | misc/xosd/pkg-plist | 1 |
3 files changed, 47 insertions, 30 deletions
diff --git a/misc/xosd/Makefile b/misc/xosd/Makefile index b9f0e645a2bb..3f473fa542ce 100644 --- a/misc/xosd/Makefile +++ b/misc/xosd/Makefile @@ -7,6 +7,7 @@ PORTNAME= xosd PORTVERSION= 0.7.0 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://www.ignavus.net/ \ http://www3.kr.freebsd.org/~perky/distfiles/ @@ -18,10 +19,17 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt LIB_DEPENDS+= xmms.1:${PORTSDIR}/audio/xmms .endif +XMMS_CONFIG?= ${X11BASE}/bin/xmms-config USE_X_PREFIX= yes USE_GMAKE= yes +USE_GTK= yes +USE_GLIB= yes INSTALLS_SHLIB= yes -MAKE_ENV= CFLAGS='${CFLAGS}' PREFIX='${PREFIX}' +MAKE_ENV= CFLAGS='${CFLAGS}' PREFIX='${PREFIX}' \ + X11BASE='${X11BASE}' LOCALBASE='${LOCALBASE}' \ + GTK_CONFIG='${GTK_CONFIG}' GLIB_CONFIG="${GLIB_CONFIG}" \ + XMMS_CONFIG="${XMMS_CONFIG}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" MAN1= osd_cat.1 MAN3= xosd.3 @@ -33,4 +41,7 @@ PLIST_SUB+= WITH_XMMS="" PLIST_SUB+= WITH_XMMS="@comment " .endif +pre-build: + ${PERL} -pi -e "s@gcc@${CC}@g" ${WRKSRC}/Makefile + .include <bsd.port.mk> diff --git a/misc/xosd/files/patch-aa b/misc/xosd/files/patch-aa index 36ad971be26e..fde9830f79d9 100644 --- a/misc/xosd/files/patch-aa +++ b/misc/xosd/files/patch-aa @@ -1,11 +1,17 @@ -diff -ruN Makefile.orig Makefile ---- Makefile.orig Fri Mar 23 09:11:14 2001 -+++ Makefile Wed May 2 05:30:30 2001 -@@ -5,20 +5,18 @@ +--- Makefile Thu Mar 22 19:11:14 2001 ++++ Makefile.new Sun May 20 22:24:43 2001 +@@ -5,20 +5,25 @@ LIBRARY_VERSION=0 VERSION=0.7.0 -PREFIX=/usr/local ++LOCALBASE?=/usr/local ++X11BASE?=/usr/X11R6 ++GTK_CONFIG?=$(X11BASE)/bin/gtk-config ++GLIB_CONFIG?=$(LOCALBASE)/bin/glib-config ++XMMS_CONFIG?=$(X11BASE)/bin/xmms-config ++PTHREAD_CFLAGS?=-D_THREAD_SAFE ++PTHREAD_LIBS?=-lpthread EXEC_PREFIX=$(PREFIX) BINDIR=$(EXEC_PREFIX)/bin LIBDIR=$(EXEC_PREFIX)/lib @@ -13,18 +19,36 @@ diff -ruN Makefile.orig Makefile INCLUDEDIR=$(PREFIX)/include -XMMS_PLUGINDIR=$(HOME)/.xmms - CC=gcc +-CC=gcc ++CC?=gcc INSTALL=/usr/bin/install -c INSTALL_DATA=$(INSTALL) -m 644 -CFLAGS=-O2 -Wall -pipe -I. -DXOSD_VERSION=\"$(VERSION)\" -I/usr/X11R6/include -LDFLAGS=-L. -L/usr/X11R6/lib -lX11 -lXext -lpthread -lXt -+CFLAGS+=-I. -DXOSD_VERSION=\"$(VERSION)\" -I/usr/X11R6/include -I/usr/local/include -+LDFLAGS=-lc_r -L. -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -pthread -lXt -lgnugetopt ++CFLAGS+=-I. -DXOSD_VERSION=\"$(VERSION)\" -I$(X11BASE)/include -I$(LOCALBASE)/include `$(GTK_CONFIG) --cflags` `$(GLIB_CONFIG) --cflags` $(PTHREAD_CFLAGS) ++LDFLAGS=$(PTHREAD_LIBS) -L. -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lXt -lgnugetopt XOSDLIBS=-lxosd -@@ -66,9 +64,11 @@ +@@ -44,10 +49,14 @@ + ranlib libxosd.a + + xmms_osd.o: xmms_osd.c +- $(CC) -c -o $@ xmms_osd.c `xmms-config --cflags` -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 $(CFLAGS) ++ if [ "$(XMMS_PLUGINDIR)" ]; then \ ++ $(CC) $(CFLAGS) `$(XMMS_CONFIG) --cflags` -c -o $@ xmms_osd.c; \ ++ fi + + libxmms_osd.so: xmms_osd.o +- $(CC) -shared -o $@ $+ $(LDFLAGS) `gtk-config --libs` $(XOSDLIBS) ++ if [ "$(XMMS_PLUGINDIR)" ]; then \ ++ $(CC) `$(GTK_CONFIG) --libs` -shared -o $@ $+ $(LDFLAGS) $(XOSDLIBS); \ ++ fi + + testprog: testprog.o libxosd.so + $(CC) -o $@ testprog.o $(LDFLAGS) $(XOSDLIBS) +@@ -66,10 +75,13 @@ $(INSTALL) libxosd.so $(LIBDIR)/libxosd.so.$(LIBRARY_VERSION) rm -f $(PREFIX)/lib/libxosd.so ln -s $(PREFIX)/lib/libxosd.so.$(LIBRARY_VERSION) $(PREFIX)/lib/libxosd.so @@ -37,26 +61,7 @@ diff -ruN Makefile.orig Makefile + cp -pf libxmms_osd.so $(XMMS_PLUGINDIR)/General; \ + fi $(INSTALL) osd_cat $(BINDIR) ++ $(INSTALL_DATA) xosd.h $(INCLUDEDIR)/ mkdir -p $(MANDIR)/man1 $(MANDIR)/man3 $(INSTALL_DATA) osd_cat.1 $(MANDIR)/man1/ -diff -ruN xosd.c.orig xosd.c ---- xosd.c.orig Fri Mar 23 08:55:45 2001 -+++ xosd.c Wed May 2 04:34:44 2001 -@@ -270,7 +270,7 @@ - if (!XCheckWindowEvent (osd->display, osd->window, ExposureMask, &report)) - { - MUTEX_RELEASE (); -- usleep (500); -+ usleep (100000); - continue; - } - MUTEX_RELEASE (); -@@ -304,7 +304,7 @@ - - while (!osd->done) - { -- usleep (1000); -+ usleep (200000); - MUTEX_GET (); - if (osd->timeout != -1 && - osd->mapped && + $(INSTALL_DATA) xosd.3 $(MANDIR)/man3/ diff --git a/misc/xosd/pkg-plist b/misc/xosd/pkg-plist index 33be5c007874..13564e82afe4 100644 --- a/misc/xosd/pkg-plist +++ b/misc/xosd/pkg-plist @@ -1,4 +1,5 @@ bin/osd_cat +include/xosd.h lib/libxosd.so lib/libxosd.so.0 %%WITH_XMMS%%lib/xmms/General/libxmms_osd.so |