diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-04-19 13:55:25 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-04-19 13:55:25 +0000 |
commit | 038f73a9e1e9ec9fbe8cd3c95a3707f3d4bcc8ac (patch) | |
tree | 755909b0d0f2772e11824c4029e2397822156c73 /audio/gogo | |
parent | Remove -funroll-loops from CFLAGS silently because (diff) |
- Use OPTIONS
- Nuke pkg-plist
- Minimize Makefile-patch
Notes
Notes:
svn path=/head/; revision=133667
Diffstat (limited to 'audio/gogo')
-rw-r--r-- | audio/gogo/Makefile | 15 | ||||
-rw-r--r-- | audio/gogo/files/patch-ac | 20 | ||||
-rw-r--r-- | audio/gogo/pkg-plist | 5 |
3 files changed, 10 insertions, 30 deletions
diff --git a/audio/gogo/Makefile b/audio/gogo/Makefile index 0182422a070f..e16debe54bc0 100644 --- a/audio/gogo/Makefile +++ b/audio/gogo/Makefile @@ -16,28 +16,31 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Very fast MP3 encoder using recent x86 processors' features +OPTIONS= THREADS "Use linuxthreads for increased SMP performance" off + # More than version 0.98 BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm USE_GMAKE= yes ALL_TARGET= gogo +MAKE_ARGS= CC="${CC}" LD="${CC}" RESTRICTED= Condition is not clear ONLY_FOR_ARCHS= i386 +PLIST_FILES= bin/cdda2mp3.gogo bin/gogo +PORTDOCS= cdda2mp3.gogo.en cdda2mp3.gogo.ja + # A sample of heavily optimized CFLAGS(typically used with pgcc). # Recommended ONLY for benchmarks. # CFLAGS=-march=pentiumpro -O6 -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -foptimize-register-move -ffast-math -fdefer-pop -mfancy-math-387 .include <bsd.port.pre.mk> -pre-fetch: -.if !defined(WITH_THREADS) - @${ECHO_MSG} "set WITH_THREADS to compile with linuxthreads." - @${ECHO_MSG} "It would increase performance in SMP environment." -MAKE_ENV+= "USE_MT=no" +.if defined(WITHOUT_THREADS) +MAKE_ARGS+= "USE_MT=no" .else -MAKE_ENV+= "USE_MT=yes" +MAKE_ARGS+= "USE_MT=yes" .if ${OSVERSION} >= 500035 LIB_DEPENDS= lthread.3:${PORTSDIR}/devel/linuxthreads .else diff --git a/audio/gogo/files/patch-ac b/audio/gogo/files/patch-ac index 7938493073cb..86d9e379437a 100644 --- a/audio/gogo/files/patch-ac +++ b/audio/gogo/files/patch-ac @@ -1,24 +1,6 @@ --- Makefile.orig Sat Jan 6 22:36:06 2001 +++ Makefile Sun Jan 7 06:15:55 2001 -@@ -12,7 +12,7 @@ - - #use multi-thread - #OS must be Linux with libc6, FreeBSD-4.0R with linuxthreads or BeOS --USE_MT=yes -+#USE_MT=yes - - #define if OS is BeOS - #OS=BeOS -@@ -30,15 +30,15 @@ - endif - - # common definition --LD=gcc -+LD=$(CC) - #LD=gcc -Wl,-Map,gogo.map - LIBS=-lm --CC=gcc -c -m486 -O3 -finline-functions -fomit-frame-pointer -funroll-loops -+#CC=gcc -c -m486 -O3 -finline-functions -fomit-frame-pointer -funroll-loops +@@ -12,8 +12,8 @@ # This option is available for gcc-2.8.x #CC=gcc -c -mcpu=pentiumpro -malign-double -O6 -fstrength-reduce -fexpensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops # This option is available for gcc-2.95.1, gcc-2.95.2, gcc-2.95.3,... on P6 or later diff --git a/audio/gogo/pkg-plist b/audio/gogo/pkg-plist deleted file mode 100644 index 8c181a48659d..000000000000 --- a/audio/gogo/pkg-plist +++ /dev/null @@ -1,5 +0,0 @@ -bin/cdda2mp3.gogo -bin/gogo -%%PORTDOCS%%%%DOCSDIR%%/cdda2mp3.gogo.en -%%PORTDOCS%%%%DOCSDIR%%/cdda2mp3.gogo.ja -%%PORTDOCS%%@dirrm %%DOCSDIR%% |