File: local.cnf.in

package info (click to toggle)
cdrkit 9:1.1.11-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 7,464 kB
  • sloc: ansic: 107,182; perl: 968; sh: 481; makefile: 229; sed: 4
file content (141 lines) | stat: -rw-r--r-- 5,326 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# @(#)local.cnf.in       1.6 03/09/04 Copyright 1998-2002 Heiko Eissfeldt
#
# Makefile for cdda2wav, a sampling utility.
#

# ############ interface
# choose one of the following interfacing and device types.
# generic_scsi is for scsi cdrom devices.
# uncomment one INTERFACE and one DEF_DEVICE line
# (for details consult the README)
INTERFACE='"generic_scsi"'
#INTERFACE='"cooked_ioctl"'

# set the default cdrom device
SUN_OS_DEFAULT_DEV=	'"0,6,0"'
YOUR_DEFAULT_DEV=	'"yourSCSI_Bus,yourSCSI_ID,yourSCSI_LUN"'

_DEF_DEVICE=	$(_UNIQ)$(HAVE_SUN_OS)
__DEF_DEVICE=	$(_DEF_DEVICE:$(_UNIQ)=$(YOUR_DEFAULT_DEV))
DEF_DEVICE=	$(__DEF_DEVICE:$(_UNIQ)$(HAVE_SUN_OS)=$(SUN_OS_DEFAULT_DEV))

# optional matching device used for a MULTISESSION ioctl
LINUX_AUX_DEV=	'"/dev/cdrom"'

_AUX_DEVICE=	$(_UNIQ)$(HAVE_LINUX)
__AUX_DEVICE=	$(_AUX_DEVICE:$(_UNIQ)='""')
AUX_DEVICE=	$(__AUX_DEVICE:$(_UNIQ)$(HAVE_LINUX)=$(LINUX_AUX_DEV))

# number of sectors to request
# under BSD better use < 128 K of shared memory
SECTORS=75
BSD_SECTORS=27

_SECTORS=	$(_UNIQ)$(HAVE_BSD_OS)
__SECTORS=	$(_SECTORS:$(_UNIQ)=$(SECTORS))
NSECTORS=	$(__SECTORS:$(_UNIQ)$(HAVE_BSD_OS)=$(BSD_SECTORS))

# some architectures can use the ioctl() interface cooked_ioctl
HAVE_SUN_IOCTL=	@HAVE_SUN_IOCTL@
_HAVE_IOCTL=	$(_UNIQ)$(HAVE_BSD_OS)$(HAVE_SUN_IOCTL)$(HAVE_LINUX)
__HAVE_IOCTL=	$(_HAVE_IOCTL:$(_UNIQ)=)
HAVE_IOCTL=	$(__HAVE_IOCTL:$(_UNIQ)$(HAVE_BSD_OS)$(HAVE_SUN_IOCTL)$(HAVE_LINUX)=-DHAVE_IOCTL_INTERFACE)

############# Sound device support
#to disable sound support comment out the corresponding line with HAVE_SOUND
OSS_SOUND_DEV=	'"/dev/dsp"'
SUN_SOUND_DEV=	'"/dev/audio"'

HAVE_OSS=	@HAVE_OSS@
HAVE_SUNSOUND=	@HAVE_SUNSOUND@
HAVE_WINSOUND=	@HAVE_WINSOUND@
HAVE_OS2SOUND=	@HAVE_OS2SOUND@
HAVE_QNXSOUND=	@HAVE_SYS_ASOUNDLIB_H@
#_HAVE_SOUND=	$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)
_HAVE_SOUND=	$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)$(HAVE_WINSOUND)$(HAVE_OS2SOUND)$(HAVE_QNXSOUND)
__HAVE_SOUND=	$(_HAVE_SOUND:$(_UNIQ)=)
#HAVE_SOUND=	$(__HAVE_SOUND:$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)=-DECHO_TO_SOUNDCARD)
HAVE_SOUND=	$(__HAVE_SOUND:$(_UNIQ)$(HAVE_OSS)$(HAVE_SUNSOUND)$(HAVE_WINSOUND)$(HAVE_OS2SOUND)$(HAVE_QNXSOUND)=-DECHO_TO_SOUNDCARD)

_SOUND_DEVICE=	$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)$(HAVE_SUNSOUND)
__SOUND_DEVICE=	$(_SOUND_DEVICE:$(_UNIQ)='""')
___SOUND_DEVICE=	$(__SOUND_DEVICE:$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)=$(OSS_SOUND_DEV))
____SOUND_DEVICE=	$(___SOUND_DEVICE:$(_UNIQ)$(HAVE_SOUND)$(HAVE_SUNSOUND)=$(SUN_SOUND_DEV))
SOUND_DEVICE=	$(____SOUND_DEVICE:$(_UNIQ)$(HAVE_OSS)$(HAVE_SOUND)$(HAVE_SUNSOUND)=$(OSS_SOUND_DEV))

_EXTRALIB=	$(_UNIQ)$(HAVE_WINSOUND)$(HAVE_OS2SOUND)$(HAVE_QNXSOUND)
__EXTRALIB=	$(_EXTRALIB:$(_UNIQ)=@EXTRALIBS@)
___EXTRALIB=	$(__EXTRALIB:$(_UNIQ)$(HAVE_WINSOUND)=@EXTRALIBS@ -lwinmm)
____EXTRALIB=	$(___EXTRALIB:$(_UNIQ)$(HAVE_QNXSOUND)=@EXTRALIBS@ -lasound)
EXTRALIB=	$(____EXTRALIB:$(_UNIQ)$(HAVE_OS2SOUND)=@EXTRALIBS@ -los2me)

############# sound file defaults
# Defaults for wav/au/cdr output file formats
# default divider for 44.1 KHz
DEF_UNDERSAMPLING=1

# 16, 12 or 8 bits per sample
DEF_BITS=16
# 1 = mono, 2 = stereo
DEF_CHANNELS=2

DEF_TIME=0                      # number of seconds to record

DEF_SPEED=0			# default reading speed
#DEF_SPEED=0xFFFF		# default reading speed

############## output file types: wav, aiff, aifc, sun au or cdr ###########
# enable one DEF_TYPE and one DEF_FILE
# first are for wav sound files, second are for sun au pcm sound files,
# third are for headerless sound files (raw samples in bigendian format)
# default audio file type

_DEF_TYPE=	$(_UNIQ)$(HAVE_SUN_OS)
__DEF_TYPE=	$(_DEF_TYPE:$(_UNIQ)='"wav"')
DEF_TYPE=	$(__DEF_TYPE:$(_UNIQ)$(HAVE_SUN_OS)='"au"')
#DEF_TYPE=	"wav"
#DEF_TYPE=	"au"
#DEF_TYPE=	"cdr"
#DEF_TYPE=	"aiff"
#DEF_TYPE=	"aifc"

# default file name for sound file
DEF_FILE='"audio"'

############## enable/disable info files ####################################
# Info files contain date/time, track, recording time, ISRC, optional MD5 
# signature and more, each item in one line. These files are generated one
# per track.
# Comment out if you don't want this.
WANT_INFOFILES=-DINFOFILES

############## enable/disable MD5 signatures in info files ##################
# Comment out if you don't want this.
WANT_MD5=-DMD5_SIGNATURES
MD5OBJECTS=md5c.o

# CDINDEX server support
# Comment out if you don't want a disk description file for the cdindex server
WANT_CDINDEX_SUPPORT=-DCDINDEX_SUPPORT

# CDDB server support
# Comment out if you don't want a network access to the cddb server
WANT_CDDB_SUPPORT=-DCDDB_SUPPORT
CDDB_SERVERHOST='"freedb.freedb.org"'
CDDB_SERVERPORT=8880

# end of tunable parameters
#
CDDA2WAVDEFS=-DCD_DEVICE=$(DEF_DEVICE) -DFILENAME=$(DEF_FILE) \
-DUNDERSAMPLING=$(DEF_UNDERSAMPLING) -DVERSION=$(CUR_VERSION) \
-DBITS_P_S=$(DEF_BITS) -DCHANNELS=$(DEF_CHANNELS) -DAUDIOTYPE=$(DEF_TYPE) \
-DDURATION=$(DEF_TIME) -DDEF_INTERFACE=$(INTERFACE) -DUSE_PARANOIA=1 \
-DDEFAULT_SPEED=$(DEF_SPEED) $(WANT_CDINDEX_SUPPORT) $(WANT_CDDB_SUPPORT) \
-DCDDBHOST=$(CDDB_SERVERHOST) -DCDDBPORT=$(CDDB_SERVERPORT) $(HAVE_IOCTL) \
$(HAVE_SOUND) -DSOUND_DEV=$(SOUND_DEVICE) -DNSECTORS=$(NSECTORS) \
$(WANT_INFOFILES) $(WANT_MD5) -DAUX_DEVICE=$(AUX_DEVICE)

LIBS +=	@LIBS@

VERSION_OS=@CDRTOOLS_VERSION@_$(O_ARCH)_$(OSREL)_$(K_ARCH)_$(P_ARCH)
CUR_VERSION='"$(VERSION_OS)"'