Ticket #31185: no_no_variants.patch
File no_no_variants.patch, 4.3 KB (added by neverpanic (Clemens Lang), 13 years ago) |
---|
-
Portfile
9 9 conflicts ffmpeg-devel 10 10 epoch 1 11 11 version 0.7.3 12 license nonfree GPL-2+LGPL-2.1+12 license LGPL-2.1+ 13 13 categories multimedia 14 14 maintainers devans openmaintainer 15 15 … … 63 63 port:libtheora \ 64 64 port:dirac \ 65 65 port:schroedinger \ 66 port:faac \67 port:faad2 \68 66 path:lib/libspeex.dylib:speex \ 69 port:XviD \70 port:x264 \71 67 port:libvpx \ 72 68 path:lib/pkgconfig/sdl.pc:libsdl \ 73 69 port:bzip2 \ … … 103 99 104 100 configure.cflags-append -DHAVE_LRINTF ${configure.cppflags} 105 101 configure.args \ 106 --enable-gpl \107 --enable-postproc \108 102 --enable-swscale --enable-avfilter \ 109 103 --enable-libmp3lame \ 110 104 --enable-libvorbis \ 111 105 --enable-libtheora \ 112 106 --enable-libdirac --enable-libschroedinger \ 113 --enable-libfaac \114 --enable-libxvid \115 --enable-libx264 \116 107 --enable-libvpx \ 117 108 --enable-libspeex \ 118 --enable-nonfree \119 109 --mandir=${prefix}/share/man \ 120 110 --enable-shared --enable-pthreads \ 121 111 --disable-indevs \ 112 --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext \ 122 113 --cc=${configure.cc} 123 114 124 115 #add --enable-libopenjpeg when problems with openjpeg.h are resolved … … 165 156 } 166 157 } 167 158 168 variant no_mmx description {disable all x86 asm optimizations} {169 configure.args- append--disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext159 variant mmx description {enable all x86 asm optimizations} { 160 configure.args-delete --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext 170 161 } 171 162 172 variant no_gpl description {disallow use of GPL code, license will be LGPL} {173 configure.args- delete--enable-gpl \163 variant gpl description {allow use of GPL code, license will be GPL} { 164 configure.args-append --enable-gpl \ 174 165 --enable-postproc \ 175 --enable-libfaad \176 166 --enable-libx264 \ 177 --enable-libxvid 178 depends_lib-delete port:faad2 \ 167 --enable-libxvid \ 168 #--enable-libfaad 169 depends_lib-append port:faad2 \ 179 170 port:XviD 180 depends_build- deleteport:x264181 license- deleteGPL-2+171 depends_build-append port:x264 172 license-append GPL-2+ 182 173 } 183 174 184 variant no _nonfree description {disallow use of nonfree code, libraries and binaries will be redistributable under GPL/LGPL} {185 configure.args- delete--enable-nonfree \175 variant nonfree description {allow use of nonfree code, libraries and binaries will not be redistributable} { 176 configure.args-append --enable-nonfree \ 186 177 --enable-libfaac 187 depends_lib- deleteport:faac188 license- deletenonfree178 depends_lib-append port:faac 179 license-append nonfree 189 180 } 190 181 # the build server uses the default variants, and we want distributable binaries 191 default_variants + no_nonfree182 default_variants +gpl +mmx 192 183 193 184 # 194 185 # jack indev support is currently broken … … 201 192 depends_lib-append port:jack 202 193 } 203 194 204 if { ![variant_isset no_nonfree]} {195 if {[variant_isset nonfree]} { 205 196 notes " 206 197 ******* 207 198 ******* This build of ${name} includes nonfree code as follows: … … 217 208 ******* libavformat 218 209 ******* libavutil 219 210 ******* 220 ******* To remove this restriction use variant +no_nonfree211 ******* To remove this restriction use variant -nonfree 221 212 ******* 222 213 " 223 } elseif { ![variant_isset no_gpl]} {214 } elseif {[variant_isset gpl]} { 224 215 notes " 225 216 ******* 226 217 ******* This build of ${name} includes GPLed code and … … 233 224 ******* libx264 234 225 ******* libxvid 235 226 ******* 236 ******* To include only LGPLed code use variant +no_gpl +no_nonfree227 ******* To include only LGPLed code use variant -gpl -nonfree 237 228 ******* 238 229 " 239 230 } else {