Date: Tue, 5 Aug 2003 14:14:32 +0200 (CEST) From: Matthias Andree <matthias.andree@web.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55275: [NEW PORT] audio/squash: Learning console-based MP3/OGG player Message-ID: <20030805121432.107AA1B203@merlin.emma.line.org> Resent-Message-ID: <200308051220.h75CKIKl076004@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55275 >Category: ports >Synopsis: [NEW PORT] audio/squash: Learning console-based MP3/OGG player >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 05 05:20:18 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD merlin.emma.line.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Aug 5 12:58:08 CEST >Description: Squash is a C/Ncurses based music player. It supports mp3 and ogg through libraries (and planned flac support). Squash uses statistics to determine songs to play automatically. It garners this information through whether or not a song is skipped. Squash also avoids picking the same song twice. Thus Squash is like a radio station that plays the songs you like -- and you don't even have to call in requests! WWW: http://savannah.nongnu.org/projects/squash/ - Adam Luter, Matthias Andree Generated with FreeBSD Port Tools 0.25 >How-To-Repeat: >Fix: --- squash-0.7.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # squash # squash/distinfo # squash/Makefile # squash/files # squash/files/patch-Makefile # squash/files/patch-include::global.h # squash/files/patch-src::display.c # squash/pkg-plist # squash/pkg-descr # squash/pkg-message.in # echo c - squash mkdir -p squash > /dev/null 2>&1 echo x - squash/distinfo sed 's/^X//' >squash/distinfo << 'END-of-squash/distinfo' XMD5 (squash-0.7.tar.bz2) = 91c46cff78636daf2251a778d1312feb END-of-squash/distinfo echo x - squash/Makefile sed 's/^X//' >squash/Makefile << 'END-of-squash/Makefile' X# New ports collection makefile for: squash X# Date created: 5 August 2003 X# Whom: Matthias Andree <matthias.andree@gmx.de> X# X# $FreeBSD$ X XPORTNAME= squash XPORTVERSION= 0.7 XCATEGORIES= audio XMASTER_SITES= http://savannah.nongnu.org/download/${PORTNAME}/ X XMAINTAINER= matthias.andree@gmx.de XCOMMENT= Learning console-based MP3/OGG player X XRUN_DEPENDS+= ruby:${PORTSDIR}/lang/ruby XLIB_DEPENDS+= fftw.2:${PORTSDIR}/math/fftw XLIB_DEPENDS+= mad.1:${PORTSDIR}/audio/mad XLIB_DEPENDS+= vorbisfile.3:${PORTSDIR}/audio/libvorbis XLIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis XLIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao X XUSE_BZIP2= yes XUSE_GMAKE= yes XUSE_REINPLACE= yes X Xpost-patch: X ${REINPLACE_CMD} "s,#!/usr/bin/ruby,#!${LOCALBASE}/bin/ruby," \ X ${WRKSRC}/extra/*.rb X ${REINPLACE_CMD} "s,/etc/squash.conf,${PREFIX}/etc/squash.conf," \ X ${WRKSRC}/src/global.c X Xdo-install: X ${MKDIR} ${PREFIX}/bin X ${INSTALL_PROGRAM} ${WRKSRC}/squash ${PREFIX}/bin X ${INSTALL_SCRIPT} ${WRKSRC}/extra/*.rb ${PREFIX}/bin X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for i in README doc/INSTALL doc/FEATURES doc/MEM_USAGE X ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} X.endfor X.endif X Xpost-install: X ${RM} -f ${PKGMESSAGE} X ${SED} "s,%%DD%%,${DOCSDIR}," ${PKGMESSAGE}.in >${PKGMESSAGE} || \ X { ${RM} -f ${PKGMESSAGE} ; exit 1 ; } X ${ECHO} X ${CAT} ${PKGMESSAGE} X ${ECHO} X Xpost-clean: X ${RM} -f ${PKGMESSAGE} X X.include <bsd.port.pre.mk> X.if ${OSVERSION} < 501100 XIGNORE= "ignored: FreeBSD before 5.1 lacks the wordexp interface" X.endif X.include <bsd.port.post.mk> END-of-squash/Makefile echo c - squash/files mkdir -p squash/files > /dev/null 2>&1 echo x - squash/files/patch-Makefile sed 's/^X//' >squash/files/patch-Makefile << 'END-of-squash/files/patch-Makefile' X--- Makefile Fri Aug 1 17:30:01 2003 X+++ Makefile Tue Aug 5 12:53:40 2003 X@@ -7,9 +7,9 @@ X X # Complier Flags X CC := gcc X-CFLAGS := -O3 -std=gnu99 -pedantic -Wall X-INCLUDE := -Iinclude X-LDFLAGS := -lvorbis -lao -ldl -lmad -lncurses -lfftw -lpthread -lm X+CFLAGS := -O3 -std=gnu99 -pedantic -Wall ${CFLAGS} X+INCLUDE := -Iinclude -I/usr/local/include X+LDFLAGS := -L/usr/local/lib -lvorbis -lao -lmad -lncurses -lfftw -lm -lthr X X ifdef TREMOR X LDFLAGS := -lvorbisidec $(LDFLAGS) END-of-squash/files/patch-Makefile echo x - squash/files/patch-include::global.h sed 's/^X//' >squash/files/patch-include::global.h << 'END-of-squash/files/patch-include::global.h' X--- include/global.h~ Mon Aug 4 16:43:16 2003 X+++ include/global.h Tue Aug 5 11:54:11 2003 X@@ -40,7 +40,7 @@ X #include <ao/ao.h> X #include <math.h> X #include <stdarg.h> X-#include <wait.h> X+#include <sys/wait.h> X #include <sys/mman.h> X #include <sys/types.h> X #include <sys/stat.h> END-of-squash/files/patch-include::global.h echo x - squash/files/patch-src::display.c sed 's/^X//' >squash/files/patch-src::display.c << 'END-of-squash/files/patch-src::display.c' X--- src/display.c~ Tue Jul 29 06:56:49 2003 X+++ src/display.c Tue Aug 5 11:59:03 2003 X@@ -673,6 +673,22 @@ X wrefresh( win ); X } X X+char *mystrndup(const char *s, size_t sz) X+{ X+ size_t l = strlen(s), i; X+ char *x; X+ X+ i = l < sz ? l : sz; X+ X+ x = malloc(i + 1); X+ X+ if (x) { X+ memcpy(x, s, i); X+ x[i] = '\0'; X+ } X+ return x; X+} X+ X /* X * Draw the info window. X */ X@@ -744,7 +760,7 @@ X } X X /* Clip filename */ X- filename = strndup( filename, win_width - 2 ); X+ filename = mystrndup( filename, win_width - 2 ); X X /* Display filename and songs loaded */ X mvwprintw( win, 1, 1, "Current Selected Song filename:" ); END-of-squash/files/patch-src::display.c echo x - squash/pkg-plist sed 's/^X//' >squash/pkg-plist << 'END-of-squash/pkg-plist' Xbin/squash Xbin/collect_info.rb Xbin/edit_tag.rb Xbin/export_music.rb Xbin/import_music.rb Xbin/joystick.rb Xbin/musicdb_lib.rb Xbin/uncollect_info.rb X%%PORTDOCS%%%%DOCSDIR%%/FEATURES X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/MEM_USAGE X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-squash/pkg-plist echo x - squash/pkg-descr sed 's/^X//' >squash/pkg-descr << 'END-of-squash/pkg-descr' XSquash is a C/Ncurses based music player. It supports mp3 and ogg through Xlibraries (and planned flac support). Squash uses statistics to determine songs Xto play automatically. It garners this information through whether or not a song Xis skipped. Squash also avoids picking the same song twice. Thus Squash is like Xa radio station that plays the songs you like -- and you don't even have to call Xin requests! X XWWW: http://savannah.nongnu.org/projects/squash/ X X- Adam Luter, Matthias Andree END-of-squash/pkg-descr echo x - squash/pkg-message.in sed 's/^X//' >squash/pkg-message.in << 'END-of-squash/pkg-message.in' X--------------------------------------------------------------------------- XNOTE: You MUST configure squash and run a script before you can use squash. XPlease see %%DD%%/INSTALL for details. X--------------------------------------------------------------------------- END-of-squash/pkg-message.in exit --- squash-0.7.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030805121432.107AA1B203>