updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / bemused / bemused.patch
blob966361439a70d3c44ef61f26eadc25546f934c8b
1 --- BemusedServerDlg.h.orig 2007-05-11 20:41:13.000000000 +0200
2 +++ BemusedServerDlg.h 2007-05-11 20:41:37.000000000 +0200
3 @@ -63,11 +63,11 @@
4 void HandleBluetooth();
6 bool CheckWinamp(const char* aWindowName);
7 - bool CBemusedServerDlg::ReadFile(int handle,char* buffer,int maxbytes,long unsigned int* bytesread,int* bla);
8 - bool CBemusedServerDlg::ReadFile(int handle,unsigned char* buffer,int maxbytes,long unsigned int* bytesread,int* bla);
9 - bool CBemusedServerDlg::WriteFile(int handle, char* buffer,int maxbytes, long unsigned int* byteswritten,int* bla);
10 - bool CBemusedServerDlg::WriteFile(int handle,unsigned char* buffer,int maxbytes, long unsigned int* byteswritten,int* bla);
11 - char* CBemusedServerDlg::GetLastError();
12 + bool ReadFile(int handle,char* buffer,int maxbytes,long unsigned int* bytesread,int* bla);
13 + bool ReadFile(int handle,unsigned char* buffer,int maxbytes,long unsigned int* bytesread,int* bla);
14 + bool WriteFile(int handle, char* buffer,int maxbytes, long unsigned int* byteswritten,int* bla);
15 + bool WriteFile(int handle,unsigned char* buffer,int maxbytes, long unsigned int* byteswritten,int* bla);
16 + char* GetLastError();
18 void WriteListToPhone();
19 void WriteDirectoryListToPhone();
20 @@ -99,7 +99,7 @@
21 void FadeOut();
22 void ReadIniFile();
24 - void CBemusedServerDlg::AddBookmarks(CDirTreeNode* aNode, CDirTreeNode* pNode, bool aRecursive);
25 + void AddBookmarks(CDirTreeNode* aNode, CDirTreeNode* pNode, bool aRecursive);
26 void GenerateFileList(const char* aRoot, bool aRecursive);
27 void ReadDir(char* aDir, CDirTreeNode* aNode, bool aRecursive);
28 bool WriteNodeToBuffer(CDirTreeNode* aNode, unsigned char*& aBufferPtr, int& aSizeRemaining);
29 --- Makefile.orig 2007-05-11 21:03:41.000000000 +0200
30 +++ Makefile 2007-05-11 21:10:26.000000000 +0200
31 @@ -2,14 +2,16 @@
32 SHELL = /bin/sh
33 LIB = -lxmms -lbluetooth
34 INCL = -I/usr/include/xmms -I./
35 +PREFIX = /usr
36 +DESTDIR =
38 bemusedlinuxserver: main.cpp BemusedServerDlg.cpp
39 $(CXX) -o bemusedlinuxserver $(INCL) $(LIB) `gtk-config --libs --cflags` main.cpp BemusedServerDlg.cpp
42 install: bemusedlinuxserver
43 - cp -u ./bemusedlinuxserver /usr/bin/bemusedlinuxserver
44 - cp -i --reply=no ./bemused.conf /etc/bemused.conf
45 + cp ./bemusedlinuxserver $(DESTDIR)$(PREFIX)/bin/bemusedlinuxserver
46 + cp ./bemused.conf $(DESTDIR)/etc/bemused.conf