View | Details | Raw Unified | Return to bug 51725
Collapse All | Expand All

(-)lopster/Makefile (-2 / +19 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	lopster
8
PORTNAME=	lopster
9
PORTVERSION=	1.2.0
9
PORTVERSION=	1.2.0
10
PORTREVISION=	0
10
PORTREVISION=	1
11
CATEGORIES=	audio
11
CATEGORIES=	audio
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
Lines 25-31 Link Here
25
CONFIGURE_ARGS=	--with-pthread=yes --with-zlib=yes
25
CONFIGURE_ARGS=	--with-pthread=yes --with-zlib=yes
26
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
26
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
27
27
28
.include <bsd.port.pre.mk>
29
30
# Make ogg optional
31
.if exists(${LOCALBASE}/lib/libogg.so.4)
32
WITH_LIBOGG=     yes
33
.endif
34
35
.if defined(WITH_LIBOGG)
36
LIB_DEPENDS+=   ogg.4:${PORTSDIR}/audio/libogg
37
.endif
38
39
.if defined(WITH_ARTS)
40
.endif
41
42
pre-everything:
43
	@${ECHO_MSG} "You can specify WITH_LIBOGG to include Ogg support"
44
28
post-patch:
45
post-patch:
29
	@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
46
	@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
30
47
31
.include <bsd.port.mk>
48
.include <bsd.port.post.mk>
(-)lopster/files/patch-src::transfer.c (+30 lines)
Line 0 Link Here
1
--- src/transfer.c.orig	Tue Mar  4 21:08:57 2003
2
+++ src/transfer.c	Wed Mar  5 23:23:53 2003
3
@@ -5907,6 +5907,7 @@
4
   GtkCList *clist;
5
   socket_t *socket;
6
   upload_t *upload;
7
+  share_t *share;
8
   int i1;
9
 
10
   if (!userinfo) return;
11
@@ -5915,10 +5916,15 @@
12
   gtk_clist_freeze(clist);
13
   for (i1 = 0; i1 < clist->rows; i1++) {
14
     socket = gtk_clist_get_row_data(clist, i1);
15
-    upload = socket->data;
16
-    if (upload->data->user_info != userinfo) continue;
17
-
18
-    upload_update(socket);
19
+    if (socket->type == S_UPLOAD) {
20
+      upload = socket->data;
21
+      if (upload->data->user_info != userinfo) continue;
22
+      upload_update(socket);
23
+    } else if (socket->type == S_SHARE) {
24
+      share = socket->data;
25
+      if (share->data->user_info != userinfo) continue;
26
+      share_update(socket);
27
+    }
28
   }
29
   gtk_clist_thaw(clist);
30
 }

Return to bug 51725