summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-04-18 02:26:16 +0000
committerlioux <lioux@FreeBSD.org>2002-04-18 02:26:16 +0000
commitec86ef24bbcbcb5137a6ca6633cc251a7b96b55f (patch)
treeb1faa953e88e599f12067784a070a2e704fdbc0b /multimedia
parent54090885129fa22ffd37d8fb025aa01afb81451f (diff)
downloadFreeBSD-ports-ec86ef24bbcbcb5137a6ca6633cc251a7b96b55f.zip
FreeBSD-ports-ec86ef24bbcbcb5137a6ca6633cc251a7b96b55f.tar.gz
o Enable WITH_OPTIMIZED_BYTESWAP if CPUTYPE was set properly
o Re-arrange a bit so that this affects the whole port Reviewed by: kris
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/ogle/Makefile36
1 files changed, 21 insertions, 15 deletions
diff --git a/multimedia/ogle/Makefile b/multimedia/ogle/Makefile
index 84f1354..9a8f745 100644
--- a/multimedia/ogle/Makefile
+++ b/multimedia/ogle/Makefile
@@ -33,20 +33,6 @@ MAN5= oglerc.5
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
-pre-everything::
-.ifndef(WITH_DVD_DEVICE)
- @${ECHO_MSG} '===> The default DVD device is /dev/acd0c'
- @${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\"'"
-.endif
-.ifndef(WITH_OPTIMIZED_BYTESWAP)
- @${ECHO_MSG} '===>'
- @${ECHO_MSG} '===> Define WITH_OPTIMIZED_BYTESWAP to use optimized byteswap'
- @${ECHO_MSG} '===> routines. This works only in the i386 architecture but'
- @${ECHO_MSG} '===> only with 486 processors and above.'
-.endif
-
post-patch:
.ifdef(WITH_DVD_DEVICE)
@${PERL} -pi.orig -e \
@@ -69,8 +55,28 @@ post-install:
.include <bsd.port.pre.mk>
-.if ${ARCH} == "i386" && defined(WITH_OPTIMIZED_BYTESWAP)
+.if ${ARCH} == "i386"
+. if (defined(MACHINE_CPU) && ${MACHINE_CPU:Mi486} == "i486")
+WITH_OPTIMIZED_BYTESWAP=yes
+. endif
+
+. if defined(WITH_OPTIMIZED_BYTESWAP)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-include:ogle_endian.h
+. endif
+.endif
+
+pre-everything::
+.ifndef(WITH_DVD_DEVICE)
+ @${ECHO_MSG} '===> The default DVD device is /dev/acd0c'
+ @${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\"'"
+.endif
+.ifndef(WITH_OPTIMIZED_BYTESWAP)
+ @${ECHO_MSG} '===>'
+ @${ECHO_MSG} '===> Define WITH_OPTIMIZED_BYTESWAP to use optimized byteswap'
+ @${ECHO_MSG} '===> routines. This works only in the i386 architecture, and'
+ @${ECHO_MSG} '===> only with 486 processors and above.'
.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud