View | Details | Raw Unified | Return to bug 159422
Collapse All | Expand All

(-)audio/gogo/Makefile (-32 / +26 lines)
Lines 6-62 Link Here
6
#
6
#
7
7
8
PORTNAME=	gogo
8
PORTNAME=	gogo
9
PORTVERSION=	2.39b
9
PORTVERSION=	3.13
10
PORTREVISION=	1
11
CATEGORIES=	audio
10
CATEGORIES=	audio
12
MASTER_SITES=	ftp://ftp.csie.ncu.edu.tw/FreeBSD/ports/distfiles/ \
11
MASTER_SITES=	http://homepage2.nifty.com/kei-i/petit/
13
		ftp://ftp.thu.edu.tw/FreeBSD/ports/distfiles/ \
12
DISTNAME=	petit313
14
		ftp://ftp.42.org/pub/FreeBSD/distfiles/
15
16
DISTNAME=	gogo239b
17
EXTRACT_SUFX=	.tgz
13
EXTRACT_SUFX=	.tgz
18
14
19
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
20
COMMENT=	Very fast MP3 encoder using recent x86 processors' features
16
COMMENT=	Very fast MP3 encoder using recent x86 processors' features
21
17
22
OPTIONS=	THREADS "Use linuxthreads for increased SMP performance" off
18
LICENSE=	LGPL20
19
LICENSE_FILE=	${WRKSRC}/COPYING
23
20
24
# More than version 0.98
21
# More than version 0.98
25
BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
22
BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
26
23
27
USE_GMAKE=	yes
28
ALL_TARGET=	gogo
29
MAKE_ARGS=	CC="${CC}" LD="${CC}"
30
31
RESTRICTED=	Condition is not clear
24
RESTRICTED=	Condition is not clear
32
ONLY_FOR_ARCHS=	i386
25
ONLY_FOR_ARCHS=	i386
33
26
34
PLIST_FILES=	bin/cdda2mp3.gogo bin/gogo
27
USE_GMAKE=	yes
28
GNU_CONFIGURE=	yes
29
30
CFLAGS+=	-fomit-frame-pointer -ffast-math -funroll-loops
31
35
PORTDOCS=	cdda2mp3.gogo.en cdda2mp3.gogo.ja
32
PORTDOCS=	cdda2mp3.gogo.en cdda2mp3.gogo.ja
33
PLIST_FILES=	bin/cdda2mp3.gogo bin/gogo
36
34
37
# A sample of heavily optimized CFLAGS(typically used with pgcc).
35
post-extract:
38
# Recommended ONLY for benchmarks.
36
	@${TOUCH} ${WRKSRC}/readme.txt
39
# CFLAGS=-march=pentiumpro -O6 -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -foptimize-register-move -ffast-math -fdefer-pop -mfancy-math-387
37
40
38
post-patch:
41
.include <bsd.port.pre.mk>
39
	@${REINPLACE_CMD} -e \
42
40
		's|-lpthread|${PTHREAD_LIBS}|g ; \
43
.if defined(WITHOUT_THREADS)
41
		 s| -pipe| $${CFLAGS}|g ; \
44
MAKE_ARGS+=	"USE_MT=no"
42
		 s|^CFLAGS|#CFLAGS|g' ${WRKSRC}/configure
45
.else
46
MAKE_ARGS+=	"USE_MT=yes"
47
LIB_DEPENDS=	lthread.3:${PORTSDIR}/devel/linuxthreads
48
.endif
49
43
50
do-install:
44
do-install:
51
	${INSTALL_PROGRAM} ${WRKSRC}/gogo ${PREFIX}/bin
45
	${INSTALL_PROGRAM} ${WRKSRC}/gogo ${PREFIX}/bin
52
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/cdda2mp3.bsd \
46
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/cdda2mp3/cdda2mp3.bsd \
53
		${PREFIX}/bin/cdda2mp3.gogo
47
		${PREFIX}/bin/cdda2mp3.gogo
54
.if !defined(NOPORTDOCS)
48
.if !defined(NOPORTDOCS)
55
	${MKDIR} ${PREFIX}/share/doc/gogo
49
	@${MKDIR} ${DOCSDIR}
56
	${INSTALL_DATA} ${WRKSRC}/contrib/cdda2mp3.txt \
50
	${INSTALL_DATA} ${WRKSRC}/contrib/cdda2mp3/cdda2mp3.txt \
57
		${PREFIX}/share/doc/gogo/cdda2mp3.gogo.en
51
		${DOCSDIR}/cdda2mp3.gogo.en
58
	${INSTALL_DATA} ${WRKSRC}/contrib/cdda2mp3.euc \
52
	${INSTALL_DATA} ${WRKSRC}/contrib/cdda2mp3/cdda2mp3.euc \
59
		${PREFIX}/share/doc/gogo/cdda2mp3.gogo.ja
53
		${DOCSDIR}/cdda2mp3.gogo.ja
60
.endif
54
.endif
61
55
62
.include <bsd.port.post.mk>
56
.include <bsd.port.mk>
(-)audio/gogo/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gogo239b.tgz) = 4e6e5e78d9f33b4baad5107ef506d978d99891b0fee9df83ac1dfb7ba49c359d
1
SHA256 (petit313.tgz) = 8dfb28f0af57c3b442cf9ceafdab903358e27a7a1aa905b5cebd66df804c71f1
2
SIZE (gogo239b.tgz) = 293494
2
SIZE (petit313.tgz) = 389322
(-)audio/gogo/files/patch-ac (-32 lines)
Lines 1-32 Link Here
1
--- Makefile.orig	Sat Jan  6 22:36:06 2001
2
+++ Makefile	Sun Jan  7 06:15:55 2001
3
@@ -12,8 +12,8 @@
4
 # This option is available for gcc-2.8.x
5
 #CC=gcc -c -mcpu=pentiumpro -malign-double -O6 -fstrength-reduce -fexpensive-optimizations  -finline-functions -fomit-frame-pointer -funroll-loops
6
 # This option is available for gcc-2.95.1, gcc-2.95.2, gcc-2.95.3,... on P6 or later
7
 #CC=gcc -c -mcpu=pentiumpro -march=pentiumpro -O9 -fstrength-reduce -fexpensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -foptimize-register-move -fdefer-pop -mfancy-math-387
8
-CFLAGS=-Wall $(PROF) -DNDEBUG $(E3DN) $(VBR) -DRAW_INPUT
9
+CFLAGS+=-Wall $(PROF) -DNDEBUG $(E3DN) $(VBR) -DRAW_INPUT
10
 
11
 
12
 # OS specific definition
13
@@ -62,8 +62,8 @@
14
 ifeq ($(OS),FreeBSD)
15
 	CFLAGS+= -DDISPLAY_REALTIME
16
 	ifeq ($(USE_MT),yes)
17
-		LIBS+= -L/usr/local/lib -llthread -llgcc_r
18
-		CFLAGS+= -DUSE_PTHREAD -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads
19
+		LIBS+= -L${LOCALBASE}/lib -llthread -llgcc_r
20
+		CFLAGS+= -DUSE_PTHREAD -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
21
 	endif
22
 endif
23
 ifeq ($(OS),OpenBSD)
24
@@ -110,7 +110,7 @@
25
 #	$(AS) $(ASFLAGS) $< -o $@
26
 
27
 .c.o:
28
-	$(CC) $(CFLAGS) $<
29
+	$(CC) -c $(CFLAGS) $<
30
 
31
 
32
 clean:
(-)audio/gogo/files/patch-engine__i386__cpu.c (+10 lines)
Line 0 Link Here
1
--- engine/i386/cpu.c.orig	2003-10-05 09:50:36.000000000 +0900
2
+++ engine/i386/cpu.c	2011-08-02 21:40:31.000000000 +0900
3
@@ -12,6 +12,7 @@
4
 	#include <pthread.h>
5
 	#include <semaphore.h>
6
 	#if defined(__FreeBSD__)
7
+		#include <sys/types.h>
8
 		#include <sys/sysctl.h>
9
 	#endif
10
 #endif
(-)audio/gogo/files/patch-engine__i386__fftsse.nas (+25 lines)
Line 0 Link Here
1
--- engine/i386/fftsse.nas.orig	2003-10-05 09:50:37.000000000 +0900
2
+++ engine/i386/fftsse.nas	2011-08-02 21:49:00.000000000 +0900
3
@@ -23,14 +23,14 @@
4
 Q_SQRT2	dd	1.41421356237, 1.41421356237, 1.41421356237, 1.41421356237
5
 
6
 Q_1		dd	1.0, 1.0, 1.0, 1.0
7
-costab	dd	9.238795325112867e-01F, 9.238795325112867e-01F, 9.238795325112867e-01F, 9.238795325112867e-01F
8
-		dd	3.826834323650898e-01F, 3.826834323650898e-01F, 3.826834323650898e-01F, 3.826834323650898e-01F
9
-		dd	9.951847266721969e-01F, 9.951847266721969e-01F, 9.951847266721969e-01F, 9.951847266721969e-01F
10
-		dd	9.801714032956060e-02F, 9.801714032956060e-02F, 9.801714032956060e-02F, 9.801714032956060e-02F
11
-		dd	9.996988186962042e-01F, 9.996988186962042e-01F, 9.996988186962042e-01F, 9.996988186962042e-01F
12
-		dd	2.454122852291229e-02F, 2.454122852291229e-02F, 2.454122852291229e-02F, 2.454122852291229e-02F
13
-		dd	9.999811752826011e-01F, 9.999811752826011e-01F, 9.999811752826011e-01F, 9.999811752826011e-01F
14
-		dd	6.135884649154475e-03F, 6.135884649154475e-03F, 6.135884649154475e-03F, 6.135884649154475e-03F
15
+costab	dd	9.238795325112867e-01, 9.238795325112867e-01, 9.238795325112867e-01, 9.238795325112867e-01
16
+		dd	3.826834323650898e-01, 3.826834323650898e-01, 3.826834323650898e-01, 3.826834323650898e-01
17
+		dd	9.951847266721969e-01, 9.951847266721969e-01, 9.951847266721969e-01, 9.951847266721969e-01
18
+		dd	9.801714032956060e-02, 9.801714032956060e-02, 9.801714032956060e-02, 9.801714032956060e-02
19
+		dd	9.996988186962042e-01, 9.996988186962042e-01, 9.996988186962042e-01, 9.996988186962042e-01
20
+		dd	2.454122852291229e-02, 2.454122852291229e-02, 2.454122852291229e-02, 2.454122852291229e-02
21
+		dd	9.999811752826011e-01, 9.999811752826011e-01, 9.999811752826011e-01, 9.999811752826011e-01
22
+		dd	6.135884649154475e-03, 6.135884649154475e-03, 6.135884649154475e-03, 6.135884649154475e-03
23
 
24
 	align	32
25
 revLongInit	db 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80
(-)audio/gogo/pkg-descr (-1 / +1 lines)
Lines 9-12 Link Here
9
Overclocking may cause serious internal errors and crazy results.
9
Overclocking may cause serious internal errors and crazy results.
10
Or you need gigantic heatsink and extra-noisy fans. :-)
10
Or you need gigantic heatsink and extra-noisy fans. :-)
11
11
12
WWW: http://homepage1.nifty.com/herumi/gogo_e.html
12
WWW: http://www.marinecat.net/free/windows/mct_free.htm

Return to bug 159422