Date: Sun, 7 Feb 1999 11:19:38 -0800 (PST) From: derm@ibm.net To: freebsd-gnats-submit@FreeBSD.ORG Subject: ports/9951: New Port: Diamond Rio management program Message-ID: <199902071919.LAA00389@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 9951 >Category: ports >Synopsis: New Port: Diamond Rio management program >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 7 11:20:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Dermot McNally >Release: 3.0 Stable >Organization: Freelance >Environment: FreeBSD tim.fyi.de 3.0-STABLE FreeBSD 3.0-STABLE #3: Sun Feb 7 00:18:16 CET 1999 dermot@tim.fyi.de:/usr/src/sys/compile/TIM i386 >Description: # 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: # # rio # rio/Makefile # rio/files # rio/files/md5 # rio/patches # rio/patches/patch-aa # rio/pkg # rio/pkg/COMMENT # rio/pkg/DESCR # rio/pkg/PLIST # echo c - rio mkdir -p rio > /dev/null 2>&1 echo x - rio/Makefile sed 's/^X//' >rio/Makefile << 'END-of-rio/Makefile' X# New ports collection makefile for: rio X# Version required: 1.05 X# Date created: 6 February 1999 X# Whom: Dermot McNally <derm@ibm.net> X# X# $Id$ X# X XDISTNAME= rio005 XCATEGORIES= audio XMASTER_SITES= http://www.world.co.uk/sba/ XEXTRACT_SUFX= .tgz XMAKEFILE= makefile X XMAINTAINER= derm@ibm.net X XWRKSRC= ${WRKDIR}/rio X Xdo-install: X if [ ! -d ${PREFIX}/bin ]; then mkdir ${PREFIX}/bin; fi X cp ${WRKSRC}/rio ${PREFIX}/bin X Xpost-install: X strip ${PREFIX}/bin/rio X X.include <bsd.port.mk> END-of-rio/Makefile echo c - rio/files mkdir -p rio/files > /dev/null 2>&1 echo x - rio/files/md5 sed 's/^X//' >rio/files/md5 << 'END-of-rio/files/md5' XMD5 (rio005.tgz) = e4d4f77df95d7e850769671908bd6749 END-of-rio/files/md5 echo c - rio/patches mkdir -p rio/patches > /dev/null 2>&1 echo x - rio/patches/patch-aa sed 's/^X//' >rio/patches/patch-aa << 'END-of-rio/patches/patch-aa' Xdiff -c rio/app.cpp rio.bsd/app.cpp X*** app.cpp Mon Feb 1 17:55:34 1999 X--- rio.bsd/app.cpp Sat Feb 6 21:00:07 1999 X*************** X*** 27,32 **** X--- 27,39 ---- X #include <stdlib.h> X #define SIZE_MAXPATH _MAX_PATH X X+ #elif defined(__FreeBSD__) X+ // FreeBSD g++ X+ // (anybody know if this stuff applies more generally to other BSDs?) X+ #include <unistd.h> X+ #include <sys/syslimits.h> X+ #define SIZE_MAXPATH PATH_MAX X+ X #elif defined(__linux__) X // linux g++ X #include <unistd.h> Xdiff -c rio/rio.cpp rio.bsd/rio.cpp X*** rio.cpp Mon Feb 1 17:55:34 1999 X--- rio.bsd/rio.cpp Sat Feb 6 21:00:22 1999 X*************** X*** 49,54 **** X--- 49,65 ---- X #define CLOCK_SECOND 1000 X #define DELETEARRAY delete[] X X+ #elif defined(__FreeBSD__) X+ // FreeBSD g++ X+ // (anybody know if this stuff applies more generally to other BSDs?) X+ #include <fcntl.h> X+ #include <unistd.h> X+ #include <machine/cpufunc.h> X+ #define OUTPORT(p,v) outb( p, v ) X+ #define INPORT(p) inb( p ) X+ #define CLOCK_SECOND CLOCKS_PER_SEC X+ #define DELETEARRAY delete[] X+ X #elif defined(__linux__) X // linux g++ X #include <unistd.h> X*************** X*** 201,206 **** X--- 212,223 ---- X m_iPortData = m_iPortBase + OFFSET_PORT_DATA; X m_iPortStatus = m_iPortBase + OFFSET_PORT_STATUS; X m_iPortControl = m_iPortBase + OFFSET_PORT_CONTROL; X+ X+ // if FreeBSD X+ #if defined(__FreeBSD__) X+ // Request direct access to memory addresses X+ int fd = open("/dev/io", O_RDONLY); X+ #endif X X // if linux X #if defined(__linux__) END-of-rio/patches/patch-aa echo c - rio/pkg mkdir -p rio/pkg > /dev/null 2>&1 echo x - rio/pkg/COMMENT sed 's/^X//' >rio/pkg/COMMENT << 'END-of-rio/pkg/COMMENT' XTool for transferring files to and from the Diamond Rio .mp3 player END-of-rio/pkg/COMMENT echo x - rio/pkg/DESCR sed 's/^X//' >rio/pkg/DESCR << 'END-of-rio/pkg/DESCR' XThis is a port of the Diamond Rio tool originally written for Linux, Win32 and XDOS. It consists of a single binary, 'rio', with which you can list those files Xcurrently on the Rio, transfer files to or from the device, delete files, etc. X Xhttp://www.world.co.uk/sba/rio.htm X XDermot McNally Xderm@ibm.net END-of-rio/pkg/DESCR echo x - rio/pkg/PLIST sed 's/^X//' >rio/pkg/PLIST << 'END-of-rio/pkg/PLIST' Xbin/rio END-of-rio/pkg/PLIST exit >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902071919.LAA00389>