| 1 | # Copyright 2009 OpenCSW |
|---|
| 2 | # Distributed under the terms of the GNU General Public License v2 |
|---|
| 3 | # $Id$ |
|---|
| 4 | # It builds fine. |
|---|
| 5 | # The Linker fix patch is from http://blogs.everycity.co.uk/alasdair/2009/05/ffmpeg-64bit-x86_64-amd64-on-solaris-10/ |
|---|
| 6 | # This also mentions that ffmpeg build static is way faster then shared. So this would need two builds |
|---|
| 7 | # one static for static ffmpeg and one shared to get the shared libs. |
|---|
| 8 | # Another thing is to see if it can be build with suncc see http://ftp.jaist.ac.jp/pub/pkgsrc/current/pkgsrc/multimedia/ffmpeg/Makefile.common |
|---|
| 9 | |
|---|
| 10 | NAME = ffmpeg |
|---|
| 11 | VERSION = 0.10.3 |
|---|
| 12 | CATEGORIES = lib |
|---|
| 13 | GARTYPE = v2 |
|---|
| 14 | |
|---|
| 15 | DESCRIPTION = Very fast video and audio converter (includes libavcodec) |
|---|
| 16 | define BLURB |
|---|
| 17 | FFmpeg is a complete, cross-platform solution to record, convert and stream |
|---|
| 18 | audio and video. It includes libavcodec - the leading audio/video codec library. |
|---|
| 19 | endef |
|---|
| 20 | |
|---|
| 21 | MASTER_SITES = http://ffmpeg.org/releases/ |
|---|
| 22 | DISTFILES = $(DISTNAME).tar.bz2 |
|---|
| 23 | |
|---|
| 24 | PATCHFILES += 0001-fix-version.sh.patch |
|---|
| 25 | PATCHFILES += 0002-change-linker-flags.patch |
|---|
| 26 | PATCHFILES += 0003-fix_a_few_shells.patch |
|---|
| 27 | |
|---|
| 28 | LICENSE = COPYING.GPLv3 |
|---|
| 29 | |
|---|
| 30 | PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 |
|---|
| 31 | |
|---|
| 32 | BUILD_DEP_PKGS += CSWlibtheora-dev |
|---|
| 33 | BUILD_DEP_PKGS += CSWlibvorbis-dev |
|---|
| 34 | BUILD_DEP_PKGS += CSWlibx264-dev |
|---|
| 35 | |
|---|
| 36 | PACKAGES += CSWlibavcodec53 |
|---|
| 37 | SPKG_DESC_CSWlibavcodec53 = FFMPEG library libavcodec.so.53 |
|---|
| 38 | PKGFILES_CSWlibavcodec53 += $(call pkgfiles_lib,libavcodec.so.53) |
|---|
| 39 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibbz2-1-0 |
|---|
| 40 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibvorbisenc2 |
|---|
| 41 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibavutil51 |
|---|
| 42 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibavfilter2 |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibsdl1-2-0 |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibz1 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibogg0 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibfreetype6 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibvorbis0 |
|---|
| 48 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibmp3lame0 |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibtheoradec1 |
|---|
| 50 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibtheoraenc1 |
|---|
| 51 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibspeex1 |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWlibavcodec53 += CSWlibx264-124 |
|---|
| 53 | |
|---|
| 54 | PACKAGES += CSWlibavdevice53 |
|---|
| 55 | SPKG_DESC_CSWlibavdevice53 = FFMPEG library libavdevice.so.53 |
|---|
| 56 | PKGFILES_CSWlibavdevice53 += $(call pkgfiles_lib,libavdevice.so.53) |
|---|
| 57 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibavformat53 |
|---|
| 58 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibbz2-1-0 |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibvorbisenc2 |
|---|
| 60 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibavutil51 |
|---|
| 61 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibsdl1-2-0 |
|---|
| 62 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibz1 |
|---|
| 63 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibogg0 |
|---|
| 64 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibavcodec53 |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibvorbis0 |
|---|
| 66 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibmp3lame0 |
|---|
| 67 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibtheoradec1 |
|---|
| 68 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibtheoraenc1 |
|---|
| 69 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibfreetype6 |
|---|
| 70 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibspeex1 |
|---|
| 71 | RUNTIME_DEP_PKGS_CSWlibavdevice53 += CSWlibx264-124 |
|---|
| 72 | |
|---|
| 73 | PACKAGES += CSWlibavfilter2 |
|---|
| 74 | SPKG_DESC_CSWlibavfilter2 = FFMPEG library libavfilter.so.2 |
|---|
| 75 | PKGFILES_CSWlibavfilter2 += $(call pkgfiles_lib,libavfilter.so.2) |
|---|
| 76 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibavformat53 |
|---|
| 77 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibbz2-1-0 |
|---|
| 78 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibvorbisenc2 |
|---|
| 79 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibswscale2 |
|---|
| 80 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibavutil51 |
|---|
| 81 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibsdl1-2-0 |
|---|
| 82 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibz1 |
|---|
| 83 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibogg0 |
|---|
| 84 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibavcodec53 |
|---|
| 85 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibswresample0 |
|---|
| 86 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibvorbis0 |
|---|
| 87 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibfreetype6 |
|---|
| 88 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibmp3lame0 |
|---|
| 89 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibtheoradec1 |
|---|
| 90 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibspeex1 |
|---|
| 91 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibtheoraenc1 |
|---|
| 92 | RUNTIME_DEP_PKGS_CSWlibavfilter2 += CSWlibx264-124 |
|---|
| 93 | |
|---|
| 94 | PACKAGES += CSWlibavformat53 |
|---|
| 95 | SPKG_DESC_CSWlibavformat53 = FFMPEG library libavformat.so.53 |
|---|
| 96 | PKGFILES_CSWlibavformat53 += $(call pkgfiles_lib,libavformat.so.53) |
|---|
| 97 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibbz2-1-0 |
|---|
| 98 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibvorbisenc2 |
|---|
| 99 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibvorbis0 |
|---|
| 100 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibavutil51 |
|---|
| 101 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibsdl1-2-0 |
|---|
| 102 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibz1 |
|---|
| 103 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibogg0 |
|---|
| 104 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibfreetype6 |
|---|
| 105 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibavcodec53 |
|---|
| 106 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibmp3lame0 |
|---|
| 107 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibtheoradec1 |
|---|
| 108 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibtheoraenc1 |
|---|
| 109 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibspeex1 |
|---|
| 110 | RUNTIME_DEP_PKGS_CSWlibavformat53 += CSWlibx264-124 |
|---|
| 111 | |
|---|
| 112 | PACKAGES += CSWlibavutil51 |
|---|
| 113 | SPKG_DESC_CSWlibavutil51 = FFMPEG library libavutil.so.51 |
|---|
| 114 | PKGFILES_CSWlibavutil51 += $(call pkgfiles_lib,libavutil.so.51) |
|---|
| 115 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibbz2-1-0 |
|---|
| 116 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibvorbisenc2 |
|---|
| 117 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibsdl1-2-0 |
|---|
| 118 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibz1 |
|---|
| 119 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibogg0 |
|---|
| 120 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibvorbis0 |
|---|
| 121 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibfreetype6 |
|---|
| 122 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibmp3lame0 |
|---|
| 123 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibtheoradec1 |
|---|
| 124 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibspeex1 |
|---|
| 125 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibtheoraenc1 |
|---|
| 126 | RUNTIME_DEP_PKGS_CSWlibavutil51 += CSWlibx264-124 |
|---|
| 127 | |
|---|
| 128 | PACKAGES += CSWlibpostproc52 |
|---|
| 129 | SPKG_DESC_CSWlibpostproc52 = FFMPEG library libpostproc.so.52 |
|---|
| 130 | PKGFILES_CSWlibpostproc52 += $(call pkgfiles_lib,libpostproc.so.52) |
|---|
| 131 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibbz2-1-0 |
|---|
| 132 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibvorbisenc2 |
|---|
| 133 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibavutil51 |
|---|
| 134 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibsdl1-2-0 |
|---|
| 135 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibz1 |
|---|
| 136 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibogg0 |
|---|
| 137 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibfreetype6 |
|---|
| 138 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibvorbis0 |
|---|
| 139 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibmp3lame0 |
|---|
| 140 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibtheoradec1 |
|---|
| 141 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibtheoraenc1 |
|---|
| 142 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibspeex1 |
|---|
| 143 | RUNTIME_DEP_PKGS_CSWlibpostproc52 += CSWlibx264-124 |
|---|
| 144 | |
|---|
| 145 | PACKAGES += CSWlibswscale2 |
|---|
| 146 | SPKG_DESC_CSWlibswscale2 = FFMPEG library libswscale.so.2 |
|---|
| 147 | PKGFILES_CSWlibswscale2 += $(call pkgfiles_lib,libswscale.so.2) |
|---|
| 148 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibbz2-1-0 |
|---|
| 149 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibvorbisenc2 |
|---|
| 150 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibavutil51 |
|---|
| 151 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibsdl1-2-0 |
|---|
| 152 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibz1 |
|---|
| 153 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibogg0 |
|---|
| 154 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibfreetype6 |
|---|
| 155 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibvorbis0 |
|---|
| 156 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibmp3lame0 |
|---|
| 157 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibtheoradec1 |
|---|
| 158 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibtheoraenc1 |
|---|
| 159 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibspeex1 |
|---|
| 160 | RUNTIME_DEP_PKGS_CSWlibswscale2 += CSWlibx264-124 |
|---|
| 161 | |
|---|
| 162 | PACKAGES += CSWlibswresample0 |
|---|
| 163 | SPKG_DESC_CSWlibswresample0 = FFMPEG library libswresample.so.0 |
|---|
| 164 | PKGFILES_CSWlibswresample0 += $(call pkgfiles_lib,libswresample.so.0) |
|---|
| 165 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibbz2-1-0 |
|---|
| 166 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibvorbisenc2 |
|---|
| 167 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibavutil51 |
|---|
| 168 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibsdl1-2-0 |
|---|
| 169 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibz1 |
|---|
| 170 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibogg0 |
|---|
| 171 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibfreetype6 |
|---|
| 172 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibvorbis0 |
|---|
| 173 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibmp3lame0 |
|---|
| 174 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibtheoradec1 |
|---|
| 175 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibtheoraenc1 |
|---|
| 176 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibspeex1 |
|---|
| 177 | RUNTIME_DEP_PKGS_CSWlibswresample0 += CSWlibx264-124 |
|---|
| 178 | |
|---|
| 179 | |
|---|
| 180 | PACKAGES += CSWffmpeg-dev |
|---|
| 181 | SPKG_DESC_CSWffmpeg-dev = Development files for several FFMPEG shared libraries |
|---|
| 182 | PKGFILES_CSWffmpeg-dev += $(PKGFILES_DEVEL) |
|---|
| 183 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibavcodec53 |
|---|
| 184 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibavdevice53 |
|---|
| 185 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibavfilter2 |
|---|
| 186 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibavformat53 |
|---|
| 187 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibavutil51 |
|---|
| 188 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibpostproc52 |
|---|
| 189 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibswscale2 |
|---|
| 190 | RUNTIME_DEP_PKGS_CSWffmpeg-dev += CSWlibswresample0 |
|---|
| 191 | |
|---|
| 192 | |
|---|
| 193 | PACKAGES += CSWffmpeg |
|---|
| 194 | SPKG_DESC_CSWffmpeg = Very fast video and audio converter |
|---|
| 195 | # PKGFILES is catchall |
|---|
| 196 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibavformat53 |
|---|
| 197 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibbz2-1-0 |
|---|
| 198 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibvorbisenc2 |
|---|
| 199 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibswscale2 |
|---|
| 200 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibavutil51 |
|---|
| 201 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibsdl1-2-0 |
|---|
| 202 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibz1 |
|---|
| 203 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibogg0 |
|---|
| 204 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibavcodec53 |
|---|
| 205 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibfreetype6 |
|---|
| 206 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibavdevice53 |
|---|
| 207 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibswresample0 |
|---|
| 208 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibvorbis0 |
|---|
| 209 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibmp3lame0 |
|---|
| 210 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibtheoradec1 |
|---|
| 211 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibtheoraenc1 |
|---|
| 212 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibavfilter2 |
|---|
| 213 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibspeex1 |
|---|
| 214 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibpostproc52 |
|---|
| 215 | RUNTIME_DEP_PKGS_CSWffmpeg += CSWlibx264-124 |
|---|
| 216 | |
|---|
| 217 | # These are all examples |
|---|
| 218 | CHECKPKG_OVERRIDES_CSWffmpeg += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/ffmpeg.1 |
|---|
| 219 | CHECKPKG_OVERRIDES_CSWffmpeg += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/ffplay.1 |
|---|
| 220 | CHECKPKG_OVERRIDES_CSWffmpeg += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/ffmpeg.1 |
|---|
| 221 | CHECKPKG_OVERRIDES_CSWffmpeg += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/ffplay.1 |
|---|
| 222 | |
|---|
| 223 | #EXTRA_MODULATORS = SHARED |
|---|
| 224 | #MODULATIONS_SHARED = yes no |
|---|
| 225 | |
|---|
| 226 | BUILD64_LIBS_ONLY = 1 |
|---|
| 227 | |
|---|
| 228 | GARCOMPILER = GNU |
|---|
| 229 | |
|---|
| 230 | NODIRPATHS += --exec_prefix |
|---|
| 231 | NODIRPATHS += --sbindir |
|---|
| 232 | NODIRPATHS += --libexecdir |
|---|
| 233 | NODIRPATHS += --sysconfdir |
|---|
| 234 | NODIRPATHS += --sharedstatedir |
|---|
| 235 | |
|---|
| 236 | #EXTRA_CFLAGS-64 += -xcode=pic32 |
|---|
| 237 | #EXTRA_CFLAGS-64 += -fPIC |
|---|
| 238 | #EXTRA_CFLAGS += $(EXTRA_CFLAGS-$(MEMORYMODEL)) |
|---|
| 239 | |
|---|
| 240 | #EXTRA_CXXFLAGS-64 += -fPIC |
|---|
| 241 | #EXTRA_CXXFLAGS += $(EXTRA_CXXFLAGS-$(MEMORYMODEL)) |
|---|
| 242 | |
|---|
| 243 | CONFIGURE_ARGS += --prefix=$(prefix) |
|---|
| 244 | CONFIGURE_ARGS += --bindir=$(bindir) |
|---|
| 245 | CONFIGURE_ARGS += --datadir=$(datadir) |
|---|
| 246 | CONFIGURE_ARGS += --libdir=$(libdir) |
|---|
| 247 | CONFIGURE_ARGS += --shlibdir=$(libdir) |
|---|
| 248 | CONFIGURE_ARGS += --incdir=$(includedir) |
|---|
| 249 | CONFIGURE_ARGS += --mandir=$(mandir) |
|---|
| 250 | CONFIGURE_ARGS += --disable-debug |
|---|
| 251 | CONFIGURE_ARGS += --enable-gpl |
|---|
| 252 | CONFIGURE_ARGS += --enable-version3 |
|---|
| 253 | CONFIGURE_ARGS += --enable-runtime-cpudetect |
|---|
| 254 | |
|---|
| 255 | #Needs sse to get asm stuff to work on x86 |
|---|
| 256 | CONFIGURE_ARGS_i386 += --extra-cflags="-mfpmath=sse -msse" |
|---|
| 257 | CONFIGURE_ARGS_i386 += --extra-cxxflags="-mfpmath=sse -msse" |
|---|
| 258 | #no asm on sparc |
|---|
| 259 | CONFIGURE_ARGS_sparc = --disable-asm |
|---|
| 260 | |
|---|
| 261 | #sparcv9 needs --enable-pic |
|---|
| 262 | CONFIGURE_ARGS_sparcv9 += --enable-pic |
|---|
| 263 | |
|---|
| 264 | CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(GARCH)) |
|---|
| 265 | CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(ISA)) |
|---|
| 266 | |
|---|
| 267 | # Needs two builds one shared one static maybe in the future |
|---|
| 268 | #CONFIGURE_ARGS-SHARED-yes += --enable-shared |
|---|
| 269 | #CONFIGURE_ARGS += $(CONFIGURE_ARGS-SHARED-$(SHARED)) |
|---|
| 270 | |
|---|
| 271 | CONFIGURE_ARGS += --enable-shared |
|---|
| 272 | |
|---|
| 273 | #externel libs: |
|---|
| 274 | # libfaac is not free |
|---|
| 275 | #CONFIGURE_ARGS += --enable-libfaac |
|---|
| 276 | CONFIGURE_ARGS += --enable-libfreetype |
|---|
| 277 | CONFIGURE_ARGS += --enable-libmp3lame |
|---|
| 278 | CONFIGURE_ARGS += --enable-libspeex |
|---|
| 279 | # No libtheora |
|---|
| 280 | CONFIGURE_ARGS += --enable-libtheora |
|---|
| 281 | CONFIGURE_ARGS += --enable-libvorbis |
|---|
| 282 | CONFIGURE_ARGS += --enable-libx264 |
|---|
| 283 | |
|---|
| 284 | # Tests only work with static build |
|---|
| 285 | #SKIPTEST-SHARED-yes = 1 |
|---|
| 286 | #SKIPTEST ?= $(SKIPTEST-SHARED-$(SHARED)) |
|---|
| 287 | |
|---|
| 288 | SKIPTEST ?= 1 |
|---|
| 289 | |
|---|
| 290 | include gar/category.mk |
|---|
| 291 | |
|---|
| 292 | # For 'grep -q' |
|---|
| 293 | PATH := /opt/csw/gnu:$(PATH) |
|---|