$OpenBSD: patch-makefile,v 1.3 2004/06/14 18:14:46 naddy Exp $ --- makefile.orig 2000-12-05 05:36:20.000000000 +0100 +++ makefile 2004-06-14 20:11:33.000000000 +0200 @@ -6,12 +6,13 @@ # Set these for your systems locations. # xmmsdir=/usr/local/share/xmms # xmmsvislib=/usr/local/lib/xmms/Visualization + xmmsdir=`xmms-config --data-dir` xmmsvislib=`xmms-config --visualization-plugin-dir` -CFLAGS=-O2 -Wall -DHAVE_LIBPNG -DXMMS_DIR=\"$(xmmsdir)\" -DKJSKIN=\"$(xmmsdir)/kjofol/default.zip\" -I. `xmms-config --cflags` +CFLAGS+=-Wall -DHAVE_LIBPNG -DXMMS_DIR=\"$(xmmsdir)\" -DKJSKIN=\"$(xmmsdir)/kjofol/default.zip\" -I. `xmms-config --cflags` -fPIC LPNG = -lpng -lz -LDFLAGS=-O2 +LDFLAGS?= # LIBS=-L/usr/lib `gtk-config --libs` $(LPNG) -lgthread -lpthread -lxmms -Wl,--rpath -Wl,/usr/local/lib LIBS=`xmms-config --libs` $(LPNG) OBJS=kj.o resource.o config.o image.o playlist.o @@ -36,13 +37,11 @@ dist: clean vislib: make VFLAGS=-DXMMS_VIS=1 VLDFLAGS=-shared mv kj libkjofol.so - cp libkjofol.so $(xmmsvislib) install: make clean - make vislib - mkdir -p $(xmmsdir)/kjofol - cp default.zip $(xmmsdir)/kjofol + mkdir -p $(WRKINST)/$(xmmsdir)/kjofol + cp default.zip $(WRKINST)/$(xmmsdir)/kjofol remote: make VFLAGS= VLDFLAGS=