From owner-freebsd-ports Thu Nov 11 3:45:37 1999 Delivered-To: freebsd-ports@freebsd.org Received: from relay1.bcs.zp.ua (bcs-zyx-eth.marka.net.ua [195.248.171.202]) by hub.freebsd.org (Postfix) with ESMTP id 6C37E14D05 for ; Thu, 11 Nov 1999 03:45:08 -0800 (PST) (envelope-from serg@bcs3.bcs.zp.ua) Received: from bcs3.bcs.zp.ua (bcs3.bcs.zp.ua [212.8.35.73]) by relay1.bcs.zp.ua (8.9.3/8.9.3) with ESMTP id NAA11379 for ; Thu, 11 Nov 1999 13:45:04 +0200 (EET) Received: (from serg@localhost) by bcs3.bcs.zp.ua (8.9.3/8.9.3) id NAA64401; Thu, 11 Nov 1999 13:45:02 +0200 (EET) (envelope-from serg) Date: Thu, 11 Nov 1999 13:45:02 +0200 (EET) Message-Id: <199911111145.NAA64401@bcs3.bcs.zp.ua> To: ports@freebsd.org Subject: 3DNOW support for mpg123 From: serg@bcs.zp.ua Reply-To: serg@bcs.zp.ua X-send-pr-version: 3.2 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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