diff options
-rw-r--r-- | audio/lopster/Makefile | 18 | ||||
-rw-r--r-- | audio/lopster/files/patch-src-napster.c | 19 | ||||
-rw-r--r-- | net-p2p/lopster/Makefile | 18 | ||||
-rw-r--r-- | net-p2p/lopster/files/patch-src-napster.c | 19 |
4 files changed, 70 insertions, 4 deletions
diff --git a/audio/lopster/Makefile b/audio/lopster/Makefile index 9f6161261d8d..dd9cd13884b6 100644 --- a/audio/lopster/Makefile +++ b/audio/lopster/Makefile @@ -7,8 +7,11 @@ PORTNAME= lopster PORTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= audio -MASTER_SITES= http://lopster.sourceforge.net/download/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://lopster.sourceforge.net/download/ +MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@oven.org COMMENT= GTK+ client for Napster @@ -18,7 +21,7 @@ USE_GMAKE= yes USE_GNOME= gtk12 USE_X_PREFIX= yes USE_REINPLACE= yes -CONFIGURE_ARGS= --with-pthread=yes --with-zlib=yes +CONFIGURE_ARGS= --with-pthread=yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" .include <bsd.port.pre.mk> @@ -31,8 +34,19 @@ WITH_LIBOGG= yes LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg .endif +.if !defined(WITHOUT_ZLIB) +CONFIGURE_ARGS+= --with-zlib=yes +.else +CONFIGURE_ARGS+= --with-zlib=no +.endif + pre-everything:: +.ifndef WITH_LIBOGG @${ECHO_MSG} "You can specify WITH_LIBOGG to include Ogg support" +.endif +.ifndef WITHOUT_ZLIB + @${ECHO_MSG} "You can specify WITHOUT_ZLIB to disable compression for old servers" +.endif post-patch: @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure diff --git a/audio/lopster/files/patch-src-napster.c b/audio/lopster/files/patch-src-napster.c new file mode 100644 index 000000000000..fed12dede824 --- /dev/null +++ b/audio/lopster/files/patch-src-napster.c @@ -0,0 +1,19 @@ +--- src/napster.c.orig Sat Aug 28 23:27:09 2004 ++++ src/napster.c Sun Jul 10 14:46:50 2005 +@@ -717,11 +717,13 @@ + global.linespeed, + email?email:"anon@anon"); + #else +- size = sprintf(text+4, "%s %s %d \"Lopster %s\" %d", ++ size = sprintf(text+4, "%s %s %d \"Lopster %s\" %d %s", + net->user.username, +- net->user.password, ++ strlen(net->user.password)?net->user.password:net->user.username, + port, VERSION, +- global.linespeed); ++ global.linespeed, ++ email?email:"anon@anon" ++ ); + #endif + + size = BSWAP16(size); diff --git a/net-p2p/lopster/Makefile b/net-p2p/lopster/Makefile index 9f6161261d8d..dd9cd13884b6 100644 --- a/net-p2p/lopster/Makefile +++ b/net-p2p/lopster/Makefile @@ -7,8 +7,11 @@ PORTNAME= lopster PORTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= audio -MASTER_SITES= http://lopster.sourceforge.net/download/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://lopster.sourceforge.net/download/ +MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@oven.org COMMENT= GTK+ client for Napster @@ -18,7 +21,7 @@ USE_GMAKE= yes USE_GNOME= gtk12 USE_X_PREFIX= yes USE_REINPLACE= yes -CONFIGURE_ARGS= --with-pthread=yes --with-zlib=yes +CONFIGURE_ARGS= --with-pthread=yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" .include <bsd.port.pre.mk> @@ -31,8 +34,19 @@ WITH_LIBOGG= yes LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg .endif +.if !defined(WITHOUT_ZLIB) +CONFIGURE_ARGS+= --with-zlib=yes +.else +CONFIGURE_ARGS+= --with-zlib=no +.endif + pre-everything:: +.ifndef WITH_LIBOGG @${ECHO_MSG} "You can specify WITH_LIBOGG to include Ogg support" +.endif +.ifndef WITHOUT_ZLIB + @${ECHO_MSG} "You can specify WITHOUT_ZLIB to disable compression for old servers" +.endif post-patch: @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure diff --git a/net-p2p/lopster/files/patch-src-napster.c b/net-p2p/lopster/files/patch-src-napster.c new file mode 100644 index 000000000000..fed12dede824 --- /dev/null +++ b/net-p2p/lopster/files/patch-src-napster.c @@ -0,0 +1,19 @@ +--- src/napster.c.orig Sat Aug 28 23:27:09 2004 ++++ src/napster.c Sun Jul 10 14:46:50 2005 +@@ -717,11 +717,13 @@ + global.linespeed, + email?email:"anon@anon"); + #else +- size = sprintf(text+4, "%s %s %d \"Lopster %s\" %d", ++ size = sprintf(text+4, "%s %s %d \"Lopster %s\" %d %s", + net->user.username, +- net->user.password, ++ strlen(net->user.password)?net->user.password:net->user.username, + port, VERSION, +- global.linespeed); ++ global.linespeed, ++ email?email:"anon@anon" ++ ); + #endif + + size = BSWAP16(size); |