- Use /dev/acd0[c] as a default CD/DVD device
- Allow people to override default device with DEFAULT_CDROM_DEVICE and DEFAULT_DVD_DEVICE knobs PR: ports/65059 Submitted by: michael johnson <ahze@ahze.net> Approved by: maintainer
This commit is contained in:
parent
bf0e764510
commit
edc0522e0e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106050
@ -91,6 +91,17 @@
|
||||
# WITH_DVD
|
||||
# default: autodetect
|
||||
#
|
||||
# WITH_DVD_DEVICE
|
||||
# default 5.x: /dev/acd0
|
||||
# default 4.x: /dev/acd0c
|
||||
# change the default dvd device
|
||||
#
|
||||
# WITH_CDROM_DEVICE
|
||||
# default 5.x: /dev/acd0
|
||||
# default 4.x: /dev/acd0c
|
||||
# change the default cdrom device
|
||||
# useful for VCD's
|
||||
#
|
||||
# WITH_LIBDVDREAD
|
||||
# default: disabled
|
||||
# define this if you prefer the use of libdvdread instead of the
|
||||
@ -518,6 +529,26 @@ CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim
|
||||
CONFIGURE_ARGS+=--disable-xanim
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DVD_DEVICE)
|
||||
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
|
||||
.else
|
||||
.if ${OSVERSION} < 500000
|
||||
DEFAULT_DVD_DEVICE=/dev/acd0c
|
||||
.else
|
||||
DEFAULT_DVD_DEVICE=/dev/acd0
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CDROM_DEVICE)
|
||||
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
|
||||
.else
|
||||
.if ${OSVERSION} < 500000
|
||||
DEFAULT_CDROM_DEVICE=/dev/acd0c
|
||||
.else
|
||||
DEFAULT_CDROM_DEVICE=/dev/acd0
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# "enable" build for other archs
|
||||
.if ${ARCH} == "i386"
|
||||
.if !defined(WITHOUT_RUNTIME_CPUDETECTION)
|
||||
@ -583,6 +614,9 @@ post-patch:
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \
|
||||
s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
|
||||
${WRKSRC}/configure
|
||||
.if defined(WITH_RTC)
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|<linux/rtc.h>|<rtc.h>|' \
|
||||
|
Loading…
Reference in New Issue
Block a user