diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-25 09:11:59 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-25 09:11:59 +0000 |
commit | 4908a0b6b7d0c622227b5be985ca63195634827a (patch) | |
tree | 4ded11f1077ba526f3aa40431f96630cdc524fba /multimedia/mplayer | |
parent | bfedb7dd4996ae8ff8b9a7917e6553515f525e15 (diff) | |
download | ports-4908a0b6b7d0c622227b5be985ca63195634827a.tar.gz ports-4908a0b6b7d0c622227b5be985ca63195634827a.zip |
Notes
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r-- | multimedia/mplayer/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index 7e1f721ae9ff..013a9a5b34a0 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -89,6 +89,13 @@ # defaulting to usleep() timing. This can improve cpu load as well # as run-time accuracy. # +# WITH_KERN_HZ +# default: 1024 +# This option allows you to control the default kern.hz when using RTC support. +# If you have a older/slower processor you may want to lower the default level. +# ie. 512 seems to produce better quality video on a PII 400MHz than 1024 does +# CAUTION: lower than 512 may produce jerky video. +# # Feature options: # These options influence, which libraries mplayer is linked to. # Note: The libraries are needed to play the particular files under @@ -567,6 +574,12 @@ DEFAULT_CDROM_DEVICE=/dev/acd0 .endif .endif +.if defined(WITH_KERN_HZ) +DEFAULT_KERN_HZ=${WITH_KERN_HZ} +.else +DEFAULT_KERN_HZ=1024 +.endif + # "enable" build for other archs .if ${ARCH} == "i386" .if !defined(WITHOUT_RUNTIME_CPUDETECTION) @@ -648,6 +661,9 @@ post-patch: @${REINPLACE_CMD} -e \ 's|rtc_fd|rtc|' \ ${WRKSRC}/mplayer.c + @${REINPLACE_CMD} -e \ + 's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ + ${WRKSRC}/mplayer.c .endif pre-configure: |