From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 5 05:20:21 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C9A037B405 for ; Tue, 5 Aug 2003 05:20:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4FAF43FBD for ; Tue, 5 Aug 2003 05:20:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h75CKIUp076008 for ; Tue, 5 Aug 2003 05:20:18 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h75CKIKl076004; Tue, 5 Aug 2003 05:20:18 -0700 (PDT) Resent-Date: Tue, 5 Aug 2003 05:20:18 -0700 (PDT) Resent-Message-Id: <200308051220.h75CKIKl076004@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 641E437B4FA for ; Tue, 5 Aug 2003 05:14:43 -0700 (PDT) Received: from nx5.hrz.uni-dortmund.de (nx5.HRZ.Uni-Dortmund.DE [129.217.131.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A48D43FBD for ; Tue, 5 Aug 2003 05:14:42 -0700 (PDT) (envelope-from matthias.andree@web.de) Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51]) by nx5.hrz.uni-dortmund.de (Postfix) with ESMTP id E4C894AA408 for ; Tue, 5 Aug 2003 14:14:38 +0200 (MET DST) Received: from m2a2.myip.org (pD951FF81.dip.t-dialin.net [217.81.255.129]) (authenticated (0 bits))h75CEWnn000377 for ; Tue, 5 Aug 2003 14:14:32 +0200 (MEST) Received: by merlin.emma.line.org (Postfix, from userid 1001) id 107AA1B203; Tue, 5 Aug 2003 14:14:32 +0200 (CEST) Message-Id: <20030805121432.107AA1B203@merlin.emma.line.org> Date: Tue, 5 Aug 2003 14:14:32 +0200 (CEST) From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/55275: [NEW PORT] audio/squash: Learning console-based MP3/OGG player X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 12:20:22 -0000 >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 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 X.if ${OSVERSION} < 501100 XIGNORE= "ignored: FreeBSD before 5.1 lacks the wordexp interface" X.endif X.include 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 X #include X #include X-#include X+#include X #include X #include X #include 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: