Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 1999 13:45:02 +0200 (EET)
From:      serg@bcs.zp.ua
To:        ports@freebsd.org
Subject:   3DNOW support for mpg123
Message-ID:  <199911111145.NAA64401@bcs3.bcs.zp.ua>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:   current-users
>Originator:     Sergey Shkonda
>Organization:   Business Computer Service
>Confidential:   no
>Synopsis:       3DNOW support for mpg123
>Severity:       non-critical
>Priority:       low
>Category:       ports
>Release:        FreeBSD 3.3-STABLE i386
>Class:          change-request
>Environment: 

>Description: 

	3DNOW code can't compile with 3.3-STABLE binutils

>How-To-Repeat: 

	Use precompiled files (from the same source distribution)

>Fix: 

Add the following lines to port's Makefile

	.if defined(USE_3DNOW)
	MAKE_ARGS+=	USE_3DNOW=$(USE_3DNOW)
	post-extract:
		${CP} ${WRKSRC}/precompiled/linux-i386/*.o ${WRKSRC}
	.endif


Here's the patch (place it to patches)


--- Makefile.orig	Thu Nov 11 13:09:32 1999
+++ Makefile	Thu Nov 11 13:11:26 1999
@@ -292,10 +292,15 @@
 .if defined(OPT_ARCH)
 .if (${OPT_ARCH} == "i486")
 ARCHOPT = -DI486_OPT
-ARCHFILES = decode_i486.o dct64_i486.o
+ARCHFILES = decode_i486.o dct64_i486.o dct64_i386.o
 .elif (${OPT_ARCH} == "i586")
+.if !defined(USE_3DNOW)
 ARCHOPT = -DPENTIUM_OPT
-ARCHFILES = decode_i586.o
+ARCHFILES = decode_i586.o dct64_i386.o
+.else
+ARCHOPT = -DPENTIUM_OPT -DUSE_3DNOW
+ARCHFILES = dct64_3dnow.o decode_3dnow.o
+.endif
 .endif
 .endif
 
@@ -305,7 +310,7 @@
 	-DI386_ASSEM ${ARCHOPT} -DREAL_IS_FLOAT -DUSE_MMAP -DOSS -DTERM_CONTROL
 
 freebsd:
-	${MAKE}	OBJECTS='decode_i386.o ${ARCHFILES} dct64_i386.o audio_oss.o term.o' \
+	${MAKE}	OBJECTS='decode_i386.o ${ARCHFILES} audio_oss.o term.o' \
  		mpg123-make
 
 freebsd-esd:
@@ -321,7 +326,7 @@
 		mpg123-make
 
 freebsd-frontend:
-	$(MAKE) OBJECTS='decode_i386.o ${ARCHFILES} dct64_i386.o audio_oss.o \
+	$(MAKE) OBJECTS='decode_i386.o ${ARCHFILES} audio_oss.o \
 			control_sajber.o control_tk3play.o' \
 		$(FRONTEND)
  


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911111145.NAA64401>