diff options
author | lioux <lioux@FreeBSD.org> | 2005-11-19 04:30:28 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-11-19 04:30:28 +0800 |
commit | 43906183b6b4719be7eb6eaa4d2559e823977396 (patch) | |
tree | d73a78b2f5318d66230fe33d39acf646de3c2d22 /multimedia/ogle | |
parent | 78f7989c7c737dc05169d68ec93c205ba22886c3 (diff) | |
download | freebsd-ports-graphics-43906183b6b4719be7eb6eaa4d2559e823977396.tar.gz freebsd-ports-graphics-43906183b6b4719be7eb6eaa4d2559e823977396.tar.zst freebsd-ports-graphics-43906183b6b4719be7eb6eaa4d2559e823977396.zip |
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>
Diffstat (limited to 'multimedia/ogle')
-rw-r--r-- | multimedia/ogle/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/multimedia/ogle/Makefile b/multimedia/ogle/Makefile index 62c4c80051e..90586a147f0 100644 --- a/multimedia/ogle/Makefile +++ b/multimedia/ogle/Makefile @@ -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> |