mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
add cd io to aqulang
This commit is contained in:
16
media/dagrab/Makefile
Normal file
16
media/dagrab/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Created by: Chia-liang Kao <clkao@CirX.ORG>
|
||||
# $FreeBSD: head/audio/dagrab/Makefile 386312 2015-05-14 10:15:04Z mat $
|
||||
|
||||
PORTNAME= dagrab
|
||||
PORTVERSION= 0.3.5
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= SUNSITE/apps/sound/cdrom
|
||||
|
||||
MAINTAINER= clkao@CirX.ORG
|
||||
COMMENT= Read audio tracks from a CD into wav sound files
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dagrab ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/dagrab.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
media/dagrab/distinfo
Normal file
2
media/dagrab/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (dagrab-0.3.5.tar.gz) = e7505047e36b0520f6bd1b4ffb5bbf03dd2d85c46591677e0fb105b73f66878c
|
||||
SIZE (dagrab-0.3.5.tar.gz) = 22209
|
||||
14
media/dagrab/files/patch-Makefile
Normal file
14
media/dagrab/files/patch-Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
--- Makefile.orig 2000-02-19 15:41:30 UTC
|
||||
+++ Makefile
|
||||
@@ -1,8 +1,8 @@
|
||||
-CC=gcc
|
||||
+#CC=gcc
|
||||
#uncomment the following line for linux 2.0.x (and maybe 2.1.x or 1.x too ...)
|
||||
#UCD=-DUSE_UCDROM
|
||||
-PREFIX=/usr/local
|
||||
-CFLAGS=-Wall -g ${UCD}
|
||||
+PREFIX?=/usr/local
|
||||
+CFLAGS+=${UCD} -DCDDB_PATH=\"${LOCALBASE}/lib/X11/xmcd/cddb\"
|
||||
all:dagrab
|
||||
|
||||
dagrab:dagrab.o
|
||||
262
media/dagrab/files/patch-dagrab.c
Normal file
262
media/dagrab/files/patch-dagrab.c
Normal file
@@ -0,0 +1,262 @@
|
||||
--- dagrab.c.orig 2000-02-19 16:32:46 UTC
|
||||
+++ dagrab.c
|
||||
@@ -94,26 +94,21 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
-#include <getopt.h>
|
||||
#include <dirent.h>
|
||||
#include <netdb.h>
|
||||
-#include <unistd.h>
|
||||
#include <pwd.h>
|
||||
#include <ctype.h>
|
||||
-#define __need_timeval /* needed by glibc */
|
||||
-#include <time.h>
|
||||
-#include <linux/cdrom.h>
|
||||
-#ifdef USE_UCDROM
|
||||
-#include <linux/ucdrom.h>
|
||||
-#endif
|
||||
-#include <sys/vfs.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
+#include <sys/cdio.h>
|
||||
+#include <sys/cdrio.h>
|
||||
+#include <sys/param.h>
|
||||
+#include <sys/mount.h>
|
||||
#define CDDEVICE "/dev/cdrom"
|
||||
-#define N_BUF 8
|
||||
+#define N_BUF 12
|
||||
#define OVERLAP 2
|
||||
#define KEYLEN 12
|
||||
#define OFS 12
|
||||
@@ -123,12 +118,18 @@
|
||||
#define D_MODE 0660
|
||||
#define CDDB_MAX 65535
|
||||
#define CDDB_PORT 888
|
||||
+#ifndef CDDB_PATH
|
||||
#define CDDB_PATH "/usr/lib/X11/xmcd/cddb"
|
||||
+#endif
|
||||
#define CDDB_HOST "freedb.freedb.org"
|
||||
//#define USE_CDDB (opt_save||opt_name)
|
||||
#define USE_CDDB opt_cddb
|
||||
#define PROGNAME "dagrab"
|
||||
#define VERSION "0.3.5"
|
||||
+#define CD_MSF_OFFSET 150
|
||||
+#define CDROM_DATA_TRACK 4
|
||||
+#define CDROM_LEADOUT 0xaa
|
||||
+#define CD_FRAMESIZE_RAW 2352
|
||||
#define KW_TRACK 0
|
||||
#define KW_FULLD 1
|
||||
#define KW_AUTHOR 2
|
||||
@@ -206,16 +207,20 @@ struct kword kwords[]={
|
||||
|
||||
struct Wavefile cd_newave(unsigned size)
|
||||
{
|
||||
- struct Wavefile dummy={{'R','I','F','F'},0x24+size,{'W','A','V','E'},
|
||||
- {'f','m','t',' '},0x10,1,2,44100,4*44100,4,16,
|
||||
- {'d','a','t','a'},size };
|
||||
- /*dummy.Dlen=size;
|
||||
- dummy.Rlen=0x24+size;*/
|
||||
- dummy.sample_rate = opt_srate;
|
||||
- dummy.channel = 2 - opt_mono;
|
||||
- dummy.byte_rate = opt_srate << dummy.channel;
|
||||
- dummy.align = dummy.channel * dummy.sample >> 3;
|
||||
- dummy.Dlen >>= opt_mono;
|
||||
+ struct Wavefile dummy={{'R','I','F','F'}, /* Rid */
|
||||
+ 0x24 + (size >> opt_mono), /* Rlen */
|
||||
+ {'W','A','V','E'}, /* Wid */
|
||||
+ {'f','m','t',' '}, /* Fid */
|
||||
+ 0x10, /* Flen */
|
||||
+ 1, /* tag */
|
||||
+ 2 - opt_mono, /* channel */
|
||||
+ opt_srate, /* sample_rate */
|
||||
+ opt_srate << (2 - opt_mono), /* byte_rate */
|
||||
+ 16 * (2 - opt_mono) >> 3, /* align */
|
||||
+ 16, /* sample */
|
||||
+ {'d','a','t','a'}, /* Did */
|
||||
+ size >> opt_mono /* Dlen */
|
||||
+ };
|
||||
return dummy;
|
||||
}
|
||||
|
||||
@@ -226,16 +231,16 @@ char *resttime(int sec)
|
||||
return buf;
|
||||
}
|
||||
|
||||
-int cd_get_tochdr(struct cdrom_tochdr *Th)
|
||||
+int cd_get_tochdr(struct ioc_toc_header *Th)
|
||||
{
|
||||
- return ioctl(cdrom_fd,CDROMREADTOCHDR,Th);
|
||||
+ return ioctl(cdrom_fd,CDIOREADTOCHEADER,Th);
|
||||
}
|
||||
|
||||
-int cd_get_tocentry(int trk,struct cdrom_tocentry *Te,int mode)
|
||||
+int cd_get_tocentry(int trk,struct ioc_read_toc_single_entry *Te,int mode)
|
||||
{
|
||||
- Te->cdte_track=trk;
|
||||
- Te->cdte_format=mode;
|
||||
- return ioctl(cdrom_fd,CDROMREADTOCENTRY,Te);
|
||||
+ Te->track=trk;
|
||||
+ Te->address_format=mode;
|
||||
+ return ioctl(cdrom_fd,CDIOREADTOCENTRY,Te);
|
||||
}
|
||||
|
||||
void cd_read_audio(int lba,int num,char *buf)
|
||||
@@ -244,16 +249,27 @@ void cd_read_audio(int lba,int num,char
|
||||
/*NOTE: if num>CDROM_NBLOCKS_BUFFER as defined in ide_cd.c (8 in linux 2.0.32)
|
||||
jitter correction may be required inside the block. */
|
||||
{
|
||||
- struct cdrom_read_audio ra;
|
||||
+/* CDIOCREADAUDIO has been removed in FreeBSD 5.1-CURRENT */
|
||||
+#if defined (__FreeBSD__) && (__FreeBSD_version >= 501106)
|
||||
+ int bsize = 2352;
|
||||
+ if(ioctl(cdrom_fd,CDRIOCSETBLOCKSIZE,&bsize) == -1) {
|
||||
+ fprintf(stderr, "setblocksize");
|
||||
+ exit(1);
|
||||
+ }
|
||||
+ if (pread(cdrom_fd, buf, num*bsize, lba*bsize) != num*bsize){
|
||||
+ fprintf(stderr,"\n%s: read device at lba %d length %d: %s\n",
|
||||
+ progname,lba,num,strerror(errno));
|
||||
+#else
|
||||
+ struct ioc_read_audio ra;
|
||||
|
||||
- ra.addr.lba=lba;
|
||||
- ra.addr_format=CDROM_LBA;
|
||||
+ ra.address.lba=lba;
|
||||
+ ra.address_format=CD_LBA_FORMAT;
|
||||
ra.nframes=num;
|
||||
- ra.buf=buf;
|
||||
- if(ioctl(cdrom_fd,CDROMREADAUDIO,&ra)){
|
||||
- /*fprintf(stderr,"%s: read raw ioctl failed \n",progname);*/
|
||||
+ ra.buffer=buf;
|
||||
+ if(ioctl(cdrom_fd,CDIOCREADAUDIO,&ra)){
|
||||
fprintf(stderr,"\n%s: read raw ioctl failed at lba %d length %d: %s\n",
|
||||
progname,lba,num,strerror(errno));
|
||||
+#endif
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
@@ -471,7 +487,7 @@ int cddb_main(struct cd_trk_list *tl)
|
||||
DIR *d;
|
||||
struct dirent *e;
|
||||
char *id2,*p,*cddb,*loc;
|
||||
- int i,cddbs,locs;
|
||||
+ int i,cddbs,locs=0;
|
||||
char id[12];
|
||||
char *path;
|
||||
char path2[500];
|
||||
@@ -645,10 +661,10 @@ void ExpandTempl (char *templ,char *out,
|
||||
int cd_getinfo(char *cd_dev,struct cd_trk_list *tl)
|
||||
{
|
||||
int i;
|
||||
- struct cdrom_tochdr Th;
|
||||
- struct cdrom_tocentry Te;
|
||||
+ struct ioc_toc_header Th;
|
||||
+ struct ioc_read_toc_single_entry Te;
|
||||
|
||||
- if ((cdrom_fd=open(cd_dev,O_RDONLY|O_NONBLOCK))==-1){
|
||||
+ if ((cdrom_fd=open(cd_dev,O_RDONLY))==-1){
|
||||
fprintf(stderr,"%s: error opening device %s\n",progname,cd_dev);
|
||||
exit(1);
|
||||
}
|
||||
@@ -656,7 +672,7 @@ int cd_getinfo(char *cd_dev,struct cd_tr
|
||||
fprintf(stderr,"%s: read TOC ioctl failed: %s\n",progname,strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
- tl->min=Th.cdth_trk0;tl->max=Th.cdth_trk1;
|
||||
+ tl->min=Th.starting_track;tl->max=Th.ending_track;
|
||||
if((tl->starts=(int *)malloc((tl->max-tl->min+2)*sizeof(int)))==NULL){
|
||||
fprintf(stderr,"%s: list data allocation failed\n",progname);
|
||||
exit(1);
|
||||
@@ -668,21 +684,21 @@ int cd_getinfo(char *cd_dev,struct cd_tr
|
||||
|
||||
for (i=tl->min;i<=tl->max;i++)
|
||||
{
|
||||
- if(cd_get_tocentry(i,&Te,CDROM_LBA)){
|
||||
+ if(cd_get_tocentry(i,&Te,CD_LBA_FORMAT)){
|
||||
fprintf(stderr,"%s: read TOC entry ioctl failed: %s\n",
|
||||
progname,strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
- tl->starts[i-tl->min]=Te.cdte_addr.lba;
|
||||
- tl->types[i-tl->min]=Te.cdte_ctrl&CDROM_DATA_TRACK;
|
||||
+ tl->starts[i-tl->min]=ntohl(Te.entry.addr.lba);
|
||||
+ tl->types[i-tl->min]=Te.entry.control&CDROM_DATA_TRACK;
|
||||
}
|
||||
i=CDROM_LEADOUT;
|
||||
- if(cd_get_tocentry(i,&Te,CDROM_LBA)){
|
||||
+ if(cd_get_tocentry(i,&Te,CD_LBA_FORMAT)){
|
||||
fprintf(stderr,"%s: read TOC entry ioctl failed: %s\n",progname,strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
- tl->starts[tl->max-tl->min+1]=Te.cdte_addr.lba;
|
||||
- tl->types[tl->max-tl->min+1]=Te.cdte_ctrl&CDROM_DATA_TRACK;
|
||||
+ tl->starts[tl->max-tl->min+1]=ntohl(Te.entry.addr.lba);
|
||||
+ tl->types[tl->max-tl->min+1]=Te.entry.control&CDROM_DATA_TRACK;
|
||||
|
||||
i=cddb_main(tl);
|
||||
if(i==-1) {
|
||||
@@ -796,6 +812,7 @@ int cd_read_track(char *basename,int tn,
|
||||
struct Wavefile header;
|
||||
int fd,bytes,i,n,q,space;
|
||||
int bcount, sc, missing, speed = 0, ldp, now;
|
||||
+ ssize_t wlen;
|
||||
|
||||
if(tn<tl->min || tn>tl->max) return (-1);
|
||||
space = ((tl->starts[tn-tl->min+1]-tl->starts[tn-tl->min]) *
|
||||
@@ -879,8 +896,10 @@ int cd_read_track(char *basename,int tn,
|
||||
d = p1[c];
|
||||
buf3[c] = ((short)(d&65535) + (short)(d>>16)) >> 1;
|
||||
}
|
||||
- write(fd,buf3,n>>1);
|
||||
- } else if(write(fd,p1,n)==-1){
|
||||
+ wlen = write(fd,buf3,n>>1);
|
||||
+ } else
|
||||
+ wlen = write(fd,p1,n);
|
||||
+ if (wlen == -1){
|
||||
fprintf(stderr,"%s: error writing wave file %s: %s\n",
|
||||
progname,nam,strerror(errno));
|
||||
exit(1);
|
||||
@@ -896,7 +915,17 @@ int cd_read_track(char *basename,int tn,
|
||||
/* dump last bytes */
|
||||
if (bytes<(tl->starts[tn+1]-tl->starts[tn])*CD_FRAMESIZE_RAW){
|
||||
n=(tl->starts[tn+1]-tl->starts[tn])*CD_FRAMESIZE_RAW-bytes;
|
||||
- if(write(fd,p1,n)==-1){
|
||||
+ if(opt_mono) {
|
||||
+ register int c, d;
|
||||
+ for(c = 0; c < (n>>2); c++) {
|
||||
+ d = p1[c];
|
||||
+ buf3[c] = ((short)(d&65535) + (short)(d>>16)) >> 1;
|
||||
+ }
|
||||
+ wlen = write(fd,buf3,n>>1);
|
||||
+ } else
|
||||
+ wlen = write(fd,p1,n);
|
||||
+
|
||||
+ if(wlen==-1){
|
||||
fprintf(stderr,"%s: error writing wave file %s: %s\n",progname,nam,strerror(errno));
|
||||
exit(1);
|
||||
};
|
||||
@@ -961,7 +990,7 @@ void usage(void)
|
||||
int main(int ac,char **av)
|
||||
{
|
||||
int i,l,disp_TOC=0;
|
||||
- char c;
|
||||
+ int c;
|
||||
int all_tracks=0;
|
||||
struct cd_trk_list tl;
|
||||
char cd_dev[BLEN+1]=CDDEVICE;
|
||||
@@ -969,10 +998,8 @@ int main(int ac,char **av)
|
||||
char filter[BLEN+1] = "";
|
||||
char path[500];
|
||||
FILE *f;
|
||||
-
|
||||
progname=av[0];
|
||||
- optind=0;
|
||||
- while((c=getopt(ac,av,"d:f:n:o:k:r:t:m:e:H:P:D:pshaivCSN"))!=EOF){
|
||||
+ while((c=getopt(ac,av,"pshaivCSNd:f:n:o:k:r:t:m:e:H:P:D:"))!=-1){
|
||||
switch(c){
|
||||
case 'h':usage();break;
|
||||
case 'd':CPARG(cd_dev);break;
|
||||
4
media/dagrab/pkg-descr
Normal file
4
media/dagrab/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
DAGRAB is a program for reading audio tracks from a CD into wav sound
|
||||
files. An IDE CD-rom drive that supports digital audio is required.
|
||||
|
||||
WWW: http://web.tiscalinet.it/marcellou/dagrab.html
|
||||
2
media/dagrab/pkg-plist
Normal file
2
media/dagrab/pkg-plist
Normal file
@@ -0,0 +1,2 @@
|
||||
bin/dagrab
|
||||
man/man1/dagrab.1.gz
|
||||
28
media/libcdio-paranoia/Makefile
Normal file
28
media/libcdio-paranoia/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
# $FreeBSD: head/sysutils/libcdio-paranoia/Makefile 520632 2019-12-22 14:38:57Z pkubaj $
|
||||
|
||||
PORTNAME= libcdio-paranoia
|
||||
PORTVERSION= 10.2+2.0.1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= GNU/libcdio
|
||||
|
||||
MAINTAINER= jhale@FreeBSD.org
|
||||
COMMENT= Read audio from the CDROM directly as data
|
||||
|
||||
|
||||
LIB_DEPENDS= libcdio.so:media/libcdio
|
||||
|
||||
USES= compiler:c11 gmake localbase perl5 pkgconfig tar:bzip2
|
||||
USE_LDCONFIG= yes
|
||||
USE_PERL5= build
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= check
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|/jp/man1|/ja/man1|' \
|
||||
${WRKSRC}/doc/ja/Makefile.in
|
||||
${REINPLACE_CMD} -e 's|freebsd10\.\*|freebsd[1-9][0-9].*|' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
media/libcdio-paranoia/distinfo
Normal file
3
media/libcdio-paranoia/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1575762071
|
||||
SHA256 (libcdio-paranoia-10.2+2.0.1.tar.bz2) = 33b1cf305ccfbfd03b43936975615000ce538b119989c4bec469577570b60e8a
|
||||
SIZE (libcdio-paranoia-10.2+2.0.1.tar.bz2) = 589075
|
||||
36
media/libcdio-paranoia/files/patch-x-ltmain.sh
Normal file
36
media/libcdio-paranoia/files/patch-x-ltmain.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
--- ./ltmain.sh~ 2019-01-21 00:15:44.000000000 +0200
|
||||
+++ ./ltmain.sh 2020-08-10 21:38:27.782213000 +0200
|
||||
@@ -8811,13 +8811,13 @@
|
||||
#
|
||||
case $version_type in
|
||||
# correct linux to gnu/linux during the next big refactor
|
||||
- darwin|freebsd-elf|linux|osf|windows|none)
|
||||
+ darwin|linux|osf|windows|none)
|
||||
func_arith $number_major + $number_minor
|
||||
current=$func_arith_result
|
||||
age=$number_minor
|
||||
revision=$number_revision
|
||||
;;
|
||||
- freebsd-aout|qnx|sunos)
|
||||
+ freebsd*|qnx|sunos)
|
||||
current=$number_major
|
||||
revision=$number_minor
|
||||
age=0
|
||||
@@ -8900,15 +8900,9 @@
|
||||
esac
|
||||
;;
|
||||
|
||||
- freebsd-aout)
|
||||
+ freebsd*)
|
||||
major=.$current
|
||||
- versuffix=.$current.$revision
|
||||
- ;;
|
||||
-
|
||||
- freebsd-elf)
|
||||
- func_arith $current - $age
|
||||
- major=.$func_arith_result
|
||||
- versuffix=$major.$age.$revision
|
||||
+ versuffix=.$current
|
||||
;;
|
||||
|
||||
irix | nonstopux)
|
||||
5
media/libcdio-paranoia/pkg-descr
Normal file
5
media/libcdio-paranoia/pkg-descr
Normal file
@@ -0,0 +1,5 @@
|
||||
This CDDA reader distribution reads audio from the
|
||||
CDROM directly as data, with no analog step between, and writes the
|
||||
data to a file or pipe as .wav, .aifc or as raw 16 bit linear PCM.
|
||||
|
||||
WWW: http://www.gnu.org/software/libcdio/
|
||||
17
media/libcdio-paranoia/pkg-plist
Normal file
17
media/libcdio-paranoia/pkg-plist
Normal file
@@ -0,0 +1,17 @@
|
||||
bin/cd-paranoia
|
||||
include/cdio/paranoia/cdda.h
|
||||
include/cdio/paranoia/paranoia.h
|
||||
include/cdio/paranoia/toc.h
|
||||
lib/libcdio_cdda.a
|
||||
lib/libcdio_cdda.la
|
||||
lib/libcdio_cdda.so
|
||||
lib/libcdio_cdda.so.2
|
||||
lib/libcdio_paranoia.a
|
||||
lib/libcdio_paranoia.la
|
||||
lib/libcdio_paranoia.so
|
||||
lib/libcdio_paranoia.so.2
|
||||
lib/pkgconfig/libcdio_cdda.pc
|
||||
lib/pkgconfig/libcdio_paranoia.pc
|
||||
man/man1/cd-paranoia.1.gz
|
||||
@dir include/cdio/paranoia
|
||||
@dir include/cdio
|
||||
27
media/libcdio/Makefile
Normal file
27
media/libcdio/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
# Created by: arved
|
||||
# $FreeBSD: head/sysutils/libcdio/Makefile 520233 2019-12-16 09:11:34Z pkubaj $
|
||||
|
||||
PORTNAME= libcdio
|
||||
PORTVERSION= 2.1.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= GNU
|
||||
|
||||
MAINTAINER= jhale@FreeBSD.org
|
||||
COMMENT= Compact Disc Input and Control Library
|
||||
|
||||
#LIB_DEPENDS= libcddb.so:audio/libcddb
|
||||
#TEST_DEPENDS= genisoimage:sysutils/genisoimage
|
||||
|
||||
USES= compiler:c11 cpe gmake localbase perl5 pkgconfig tar:bzip2
|
||||
USE_PERL5= build
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
|
||||
LIBS+= ${ICONV_LIB}
|
||||
|
||||
INFO= libcdio
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= check
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
media/libcdio/distinfo
Normal file
3
media/libcdio/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1575761653
|
||||
SHA256 (libcdio-2.1.0.tar.bz2) = 8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b
|
||||
SIZE (libcdio-2.1.0.tar.bz2) = 1759040
|
||||
26
media/libcdio/files/patch-lib_iso9660_iso9660.c
Normal file
26
media/libcdio/files/patch-lib_iso9660_iso9660.c
Normal file
@@ -0,0 +1,26 @@
|
||||
Fix build on GCC older than 4.6.0 which does not allow #pragma GCC diagnostic
|
||||
inside of functions.
|
||||
|
||||
PR: 242693
|
||||
|
||||
--- lib/iso9660/iso9660.c.orig 2019-04-13 15:15:15 UTC
|
||||
+++ lib/iso9660/iso9660.c
|
||||
@@ -373,12 +373,18 @@ iso9660_set_ltime_with_timezone(const struct tm *p_tm,
|
||||
|
||||
if (!p_tm) return;
|
||||
|
||||
+#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
+#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-truncation"
|
||||
+#endif
|
||||
snprintf(_pvd_date, 17,
|
||||
"%4.4d%2.2d%2.2d" "%2.2d%2.2d%2.2d" "%2.2d",
|
||||
p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday,
|
||||
p_tm->tm_hour, p_tm->tm_min, p_tm->tm_sec,
|
||||
0 /* 1/100 secs */ );
|
||||
+#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
+#pragma GCC diagnostic pop
|
||||
+#endif
|
||||
|
||||
/* Set time zone in 15-minute interval encoding. */
|
||||
pvd_date->lt_gmtoff -= (time_zone / 15);
|
||||
13
media/libcdio/files/patch-test_driver_mmc__read.c
Normal file
13
media/libcdio/files/patch-test_driver_mmc__read.c
Normal file
@@ -0,0 +1,13 @@
|
||||
Fix segmentation fault
|
||||
|
||||
--- test/driver/mmc_read.c.orig 2018-03-30 10:52:05 UTC
|
||||
+++ test/driver/mmc_read.c
|
||||
@@ -136,7 +136,7 @@ handle_outcome(CdIo_t *p_cdio, driver_return_code_t i_
|
||||
print_status_sense(i_status, *pi_sense_avail, p_temp_sense_reply, i_flag & 1);
|
||||
if (18 <= *pi_sense_avail) {
|
||||
memset(p_sense_reply, 0, sizeof(cdio_mmc_request_sense_t));
|
||||
- memcpy(p_sense_reply, p_temp_sense_reply, *pi_sense_avail);
|
||||
+ memcpy(p_sense_reply, p_temp_sense_reply, sizeof(cdio_mmc_request_sense_t));
|
||||
} else
|
||||
memset(p_sense_reply, 0, sizeof(cdio_mmc_request_sense_t));
|
||||
cdio_free(p_temp_sense_reply);
|
||||
13
media/libcdio/files/patch-test_driver_mmc__write.c
Normal file
13
media/libcdio/files/patch-test_driver_mmc__write.c
Normal file
@@ -0,0 +1,13 @@
|
||||
Fix segmentation fault
|
||||
|
||||
--- test/driver/mmc_write.c.orig 2018-03-30 10:51:54 UTC
|
||||
+++ test/driver/mmc_write.c
|
||||
@@ -118,7 +118,7 @@ handle_outcome(CdIo_t *p_cdio, driver_return_code_t i_
|
||||
print_status_sense(i_status, *pi_sense_avail, p_temp_sense_reply, i_flag & 1);
|
||||
if (18 <= *pi_sense_avail) {
|
||||
memset(p_sense_reply, 0, sizeof(cdio_mmc_request_sense_t));
|
||||
- memcpy(p_sense_reply, p_temp_sense_reply, *pi_sense_avail);
|
||||
+ memcpy(p_sense_reply, p_temp_sense_reply, sizeof(cdio_mmc_request_sense_t));
|
||||
} else
|
||||
memset(p_sense_reply, 0, sizeof(cdio_mmc_request_sense_t));
|
||||
cdio_free(p_temp_sense_reply);
|
||||
36
media/libcdio/files/patch-x-ltmain.sh
Normal file
36
media/libcdio/files/patch-x-ltmain.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
--- ./ltmain.sh~ 2019-01-21 00:15:44.000000000 +0200
|
||||
+++ ./ltmain.sh 2020-08-10 21:38:27.782213000 +0200
|
||||
@@ -8811,13 +8811,13 @@
|
||||
#
|
||||
case $version_type in
|
||||
# correct linux to gnu/linux during the next big refactor
|
||||
- darwin|freebsd-elf|linux|osf|windows|none)
|
||||
+ darwin|linux|osf|windows|none)
|
||||
func_arith $number_major + $number_minor
|
||||
current=$func_arith_result
|
||||
age=$number_minor
|
||||
revision=$number_revision
|
||||
;;
|
||||
- freebsd-aout|qnx|sunos)
|
||||
+ freebsd*|qnx|sunos)
|
||||
current=$number_major
|
||||
revision=$number_minor
|
||||
age=0
|
||||
@@ -8900,15 +8900,9 @@
|
||||
esac
|
||||
;;
|
||||
|
||||
- freebsd-aout)
|
||||
+ freebsd*)
|
||||
major=.$current
|
||||
- versuffix=.$current.$revision
|
||||
- ;;
|
||||
-
|
||||
- freebsd-elf)
|
||||
- func_arith $current - $age
|
||||
- major=.$func_arith_result
|
||||
- versuffix=$major.$age.$revision
|
||||
+ versuffix=.$current
|
||||
;;
|
||||
|
||||
irix | nonstopux)
|
||||
5
media/libcdio/pkg-descr
Normal file
5
media/libcdio/pkg-descr
Normal file
@@ -0,0 +1,5 @@
|
||||
The libcdio package contains a library which encapsulates CD-ROM reading
|
||||
and control. Applications wishing to be oblivious of the OS- and
|
||||
device-dependant properties of a CD-ROM can use this library.
|
||||
|
||||
WWW: http://www.gnu.org/software/libcdio/
|
||||
82
media/libcdio/pkg-plist
Normal file
82
media/libcdio/pkg-plist
Normal file
@@ -0,0 +1,82 @@
|
||||
bin/cd-drive
|
||||
bin/cd-info
|
||||
bin/cd-read
|
||||
bin/cdda-player
|
||||
bin/iso-info
|
||||
bin/iso-read
|
||||
bin/mmc-tool
|
||||
include/cdio/audio.h
|
||||
include/cdio/bytesex_asm.h
|
||||
include/cdio/bytesex.h
|
||||
include/cdio/cd_types.h
|
||||
include/cdio/cdio_config.h
|
||||
include/cdio/cdio.h
|
||||
include/cdio/cdtext.h
|
||||
include/cdio/device.h
|
||||
include/cdio/disc.h
|
||||
include/cdio/ds.h
|
||||
include/cdio/dvd.h
|
||||
include/cdio/ecma_167.h
|
||||
include/cdio/iso9660.h
|
||||
include/cdio/logging.h
|
||||
include/cdio/memory.h
|
||||
include/cdio/mmc_cmds.h
|
||||
include/cdio/mmc_hl_cmds.h
|
||||
include/cdio/mmc_ll_cmds.h
|
||||
include/cdio/mmc_util.h
|
||||
include/cdio/mmc.h
|
||||
include/cdio/posix.h
|
||||
include/cdio/read.h
|
||||
include/cdio/rock.h
|
||||
include/cdio/sector.h
|
||||
include/cdio/track.h
|
||||
include/cdio/types.h
|
||||
include/cdio/udf_file.h
|
||||
include/cdio/udf_time.h
|
||||
include/cdio/udf.h
|
||||
include/cdio/utf8.h
|
||||
include/cdio/util.h
|
||||
include/cdio/version.h
|
||||
include/cdio/xa.h
|
||||
include/cdio++/cdio.hpp
|
||||
include/cdio++/cdtext.hpp
|
||||
include/cdio++/device.hpp
|
||||
include/cdio++/devices.hpp
|
||||
include/cdio++/disc.hpp
|
||||
include/cdio++/enum.hpp
|
||||
include/cdio++/iso9660.hpp
|
||||
include/cdio++/mmc.hpp
|
||||
include/cdio++/read.hpp
|
||||
include/cdio++/track.hpp
|
||||
lib/libcdio.a
|
||||
lib/libcdio.la
|
||||
lib/libcdio.so
|
||||
lib/libcdio.so.19
|
||||
lib/libcdio++.a
|
||||
lib/libcdio++.la
|
||||
lib/libcdio++.so
|
||||
lib/libcdio++.so.1
|
||||
lib/libiso9660.a
|
||||
lib/libiso9660.la
|
||||
lib/libiso9660.so
|
||||
lib/libiso9660.so.11
|
||||
lib/libiso9660++.a
|
||||
lib/libiso9660++.la
|
||||
lib/libiso9660++.so
|
||||
lib/libiso9660++.so.0
|
||||
lib/libudf.a
|
||||
lib/libudf.la
|
||||
lib/libudf.so
|
||||
lib/libudf.so.0
|
||||
lib/pkgconfig/libcdio.pc
|
||||
lib/pkgconfig/libcdio++.pc
|
||||
lib/pkgconfig/libiso9660.pc
|
||||
lib/pkgconfig/libiso9660++.pc
|
||||
lib/pkgconfig/libudf.pc
|
||||
man/man1/cd-drive.1.gz
|
||||
man/man1/cd-info.1.gz
|
||||
man/man1/cd-read.1.gz
|
||||
man/man1/iso-info.1.gz
|
||||
man/man1/iso-read.1.gz
|
||||
@dir include/cdio
|
||||
@dir include/cdio++
|
||||
Reference in New Issue
Block a user