mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
o Properly set default dvd device based on OSVERSION unless one is
picked by the user via WITH_DVD_DEVICE o Bump PORTREVISION PR: 88539 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
This commit is contained in:
parent
29e4502313
commit
47aa970a1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148745
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ogle
|
||||
PORTVERSION= 0.9.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/
|
||||
|
||||
@ -35,10 +35,15 @@ INSTALLS_SHLIB= yes
|
||||
MAN1= ogle.1
|
||||
MAN5= oglerc.5
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.ifdef(WITH_DVD_DEVICE)
|
||||
@${REINPLACE_CMD} -E -e "s|(DEFAULT_DVD_DEVICE=\")/dev/acd0c(\")|\1${WITH_DVD_DEVICE}\2|" \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.else
|
||||
@${REINPLACE_CMD} -E -e "s|(DEFAULT_DVD_DEVICE=\")/dev/acd0c(\")|\1${DEFAULT_DVD_DEVICE}\2|" \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|" ${WRKSRC}/scripts/ogle.in
|
||||
# hack to make ogle work with liba52 + djbfft
|
||||
@ -51,7 +56,6 @@ pre-configure:
|
||||
@${TOUCH} `${FIND} -E ${WRKSRC} -regex ".*Makefile\.(am|in)"`
|
||||
@${TOUCH} ${WRKSRC}/configure.in ${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# XXX due to gcc-3.4 (20040706) bug in preprocessing of inline functions,
|
||||
# this needs at least -O2 to compile. Fails with -O
|
||||
@ -78,7 +82,7 @@ EXTRA_PATCHES= ${FILESDIR}/extra-patch-include:ogle_endian.h
|
||||
|
||||
pre-everything::
|
||||
.ifndef(WITH_DVD_DEVICE)
|
||||
@${ECHO_MSG} '===> The default DVD device is /dev/acd0c'
|
||||
@${ECHO_MSG} '===> The default DVD device is ${DEFAULT_DVD_DEVICE}'
|
||||
@${ECHO_MSG} "===> You can choose any DVD device at Ogle's command line"
|
||||
@${ECHO_MSG} '===> Define WITH_DVD_DEVICE if you want to change the default'
|
||||
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
|
||||
@ -90,4 +94,11 @@ pre-everything::
|
||||
@${ECHO_MSG} '===> only with 486 processors and above.'
|
||||
.endif
|
||||
|
||||
# default DVD devices
|
||||
.if ${OSVERSION} >= 500000
|
||||
DEFAULT_DVD_DEVICE?= /dev/acd0
|
||||
.else
|
||||
DEFAULT_DVD_DEVICE?= /dev/acd0c
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user