diff options
author | vs <vs@FreeBSD.org> | 2005-04-19 13:55:25 +0000 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-04-19 13:55:25 +0000 |
commit | 989601a533a3a4f035be069d61517a1a62383177 (patch) | |
tree | 97aa6b40a985f1ea4b6340b26815b0805251e37c /audio | |
parent | 5e8cdc1562c31e2cefe5260bb10aa946f8e85b0e (diff) | |
download | FreeBSD-ports-989601a533a3a4f035be069d61517a1a62383177.zip FreeBSD-ports-989601a533a3a4f035be069d61517a1a62383177.tar.gz |
- Use OPTIONS
- Nuke pkg-plist
- Minimize Makefile-patch
Diffstat (limited to 'audio')
-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 0182422..e16debe 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 7938493..86d9e37 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 8c181a4..0000000 --- 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%% |