diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-11-18 20:30:28 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-11-18 20:30:28 +0000 |
commit | 47aa970a1f3ccf691edb08561ec143857df0835e (patch) | |
tree | fbaea65a697e9dfa8db4a705210743e06ae7c734 | |
parent | Update to 2.6.3 (diff) |
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>
Notes
Notes:
svn path=/head/; revision=148745
-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 62c4c80051e9..90586a147f07 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> |