diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-06-15 14:54:51 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-06-15 14:54:51 -0400 |
| commit | e81f04fa53e7e01afdc834d9c22b5c982c98f59b (patch) | |
| tree | 763d6d68516ca9d184ddd2402978adcc4027a99d /graphics/ffmpeg/Makefile | |
| parent | 92e45e47c29ec037842c4a34ebc0c14143d413ff (diff) | |
This is due to the following two reasons:
1. it's very out of date compared with current ports tree (like by 2+
years!)
- some of the ports here were mainly just updates I didn't upstream,
which have since now been part of openbsd, like verilator
2. removing dependencies is a lot of headache to stay in sync and/or for
ports I no longer use
- e.g. dbus is very difficult to remove in a desktop while patching
to remove from gtk and downstream
- I don't want to spend more time reducing number of dependencies
when I can be working instead. I no longer have as much free time
as I did in high school :(
Diffstat (limited to 'graphics/ffmpeg/Makefile')
| -rw-r--r-- | graphics/ffmpeg/Makefile | 215 |
1 files changed, 0 insertions, 215 deletions
diff --git a/graphics/ffmpeg/Makefile b/graphics/ffmpeg/Makefile deleted file mode 100644 index f1cb349..0000000 --- a/graphics/ffmpeg/Makefile +++ /dev/null | |||
| @@ -1,215 +0,0 @@ | |||
| 1 | COMMENT= audio/video converter and streamer | ||
| 2 | |||
| 3 | V= 4.4.4 | ||
| 4 | DISTNAME= ffmpeg-${V} | ||
| 5 | EPOCH= 1 | ||
| 6 | REVISION= 3 | ||
| 7 | CATEGORIES= graphics multimedia | ||
| 8 | SITES= https://ffmpeg.org/releases/ | ||
| 9 | EXTRACT_SUFX= .tar.xz | ||
| 10 | |||
| 11 | USE_NOBTCFI-amd64= Yes | ||
| 12 | |||
| 13 | SHARED_LIBS= avcodec 25.0 \ | ||
| 14 | avdevice 13.0 \ | ||
| 15 | avfilter 11.0 \ | ||
| 16 | avformat 22.0 \ | ||
| 17 | avutil 15.0 \ | ||
| 18 | postproc 19.0 \ | ||
| 19 | swresample 4.0 \ | ||
| 20 | swscale 7.0 | ||
| 21 | |||
| 22 | HOMEPAGE= https://ffmpeg.org/ | ||
| 23 | |||
| 24 | MAINTAINER= Brad Smith <brad@comstyle.com> | ||
| 25 | |||
| 26 | # LGPLv2.1 and GPLv2 | ||
| 27 | PERMIT_PACKAGE= Yes | ||
| 28 | |||
| 29 | WANTLIB+= SDL2 X11 Xext Xv aom ass bz2 c crypto dav1d fontconfig | ||
| 30 | WANTLIB+= freetype fribidi gsm iconv lzma m mp3lame opus | ||
| 31 | WANTLIB+= pthread sndio speex ssl theoradec theoraenc v4l2 | ||
| 32 | WANTLIB+= vorbis vorbisenc vpx x264 x265 xcb xcb-shape xcb-shm | ||
| 33 | WANTLIB+= xcb-xfixes xml2 xvidcore vidstab z zimg | ||
| 34 | |||
| 35 | COMPILER= base-clang ports-gcc | ||
| 36 | COMPILER_LANGS= c | ||
| 37 | |||
| 38 | DEBUG_PACKAGES= ${BUILD_PACKAGES} | ||
| 39 | |||
| 40 | BUILD_DEPENDS= audio/ladspa \ | ||
| 41 | textproc/texi2html \ | ||
| 42 | multimedia/frei0r-plugins | ||
| 43 | .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" | ||
| 44 | BUILD_DEPENDS+= devel/nasm | ||
| 45 | .endif | ||
| 46 | LIB_DEPENDS= archivers/bzip2 \ | ||
| 47 | archivers/xz \ | ||
| 48 | audio/lame \ | ||
| 49 | audio/libvorbis \ | ||
| 50 | audio/opus \ | ||
| 51 | audio/speex \ | ||
| 52 | audio/gsm \ | ||
| 53 | converters/libiconv \ | ||
| 54 | devel/sdl2 \ | ||
| 55 | graphics/zimg \ | ||
| 56 | multimedia/aom \ | ||
| 57 | multimedia/dav1d \ | ||
| 58 | multimedia/libass \ | ||
| 59 | multimedia/libtheora \ | ||
| 60 | multimedia/libv4l \ | ||
| 61 | multimedia/libvidstab \ | ||
| 62 | multimedia/libvpx \ | ||
| 63 | multimedia/x264 \ | ||
| 64 | multimedia/x265 \ | ||
| 65 | multimedia/xvidcore \ | ||
| 66 | textproc/libxml | ||
| 67 | |||
| 68 | # inter-library dependencies for the current configuration | ||
| 69 | LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -laom -ldav1d -lgsm -liconv -llzma -lmp3lame -lopus -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lx265 -lxvidcore -lm -lz -pthread | ||
| 70 | LIBavdevice_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -lXv -lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb -lsndio -lv4l2 -lm | ||
| 71 | LIBavfilter_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lass -lfontconfig -lfreetype -lfribidi -lvidstab -lm -lz -lzimg -pthread | ||
| 72 | LIBavformat_EXTRALIBS=-L${LOCALBASE}/lib -lbz2 -lxml2 -lssl -lcrypto -lm -lz | ||
| 73 | LIBavutil_EXTRALIBS=-lm -pthread | ||
| 74 | LIBpostproc_EXTRALIBS=-lm | ||
| 75 | LIBswresample_EXTRALIBS=-lm | ||
| 76 | LIBswscale_EXTRALIBS=-lm | ||
| 77 | |||
| 78 | .if ${MACHINE_ARCH} == i386 | ||
| 79 | LDLIBFLAGS+= -Wl,-znotext | ||
| 80 | .endif | ||
| 81 | |||
| 82 | OPTFLAGS= ${CFLAGS} | ||
| 83 | |||
| 84 | # until the system headers are fixed properly. | ||
| 85 | OPTFLAGS+= -Wno-redundant-decls | ||
| 86 | |||
| 87 | FIX_EXTRACT_PERMISSIONS= Yes | ||
| 88 | SEPARATE_BUILD= Yes | ||
| 89 | USE_GMAKE= Yes | ||
| 90 | CONFIGURE_STYLE= simple | ||
| 91 | CONFIGURE_ARGS+=--enable-shared \ | ||
| 92 | --arch=${MACHINE_ARCH} \ | ||
| 93 | --cc=${CC} \ | ||
| 94 | --enable-debug \ | ||
| 95 | --disable-stripping \ | ||
| 96 | --disable-indev=jack \ | ||
| 97 | --disable-outdev=sdl2 \ | ||
| 98 | --enable-fontconfig \ | ||
| 99 | --enable-frei0r \ | ||
| 100 | --enable-gpl \ | ||
| 101 | --enable-ladspa \ | ||
| 102 | --enable-libaom \ | ||
| 103 | --enable-libass \ | ||
| 104 | --enable-libdav1d \ | ||
| 105 | --enable-libfreetype \ | ||
| 106 | --enable-libfribidi \ | ||
| 107 | --enable-libgsm \ | ||
| 108 | --enable-libmp3lame \ | ||
| 109 | --enable-libopus \ | ||
| 110 | --enable-libspeex \ | ||
| 111 | --enable-libtheora \ | ||
| 112 | --enable-libv4l2 \ | ||
| 113 | --enable-libvorbis \ | ||
| 114 | --enable-libvpx \ | ||
| 115 | --enable-libx264 \ | ||
| 116 | --enable-libx265 \ | ||
| 117 | --enable-libxml2 \ | ||
| 118 | --enable-libxvid \ | ||
| 119 | --enable-libzimg \ | ||
| 120 | --enable-nonfree \ | ||
| 121 | --enable-openssl \ | ||
| 122 | --enable-libvidstab \ | ||
| 123 | --extra-cflags="-I${LOCALBASE}/include -I${X11BASE}/include" \ | ||
| 124 | --extra-libs="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ | ||
| 125 | --extra-ldsoflags="${LDLIBFLAGS}" \ | ||
| 126 | --mandir=${PREFIX}/man \ | ||
| 127 | --objcc="/usr/bin/false" \ | ||
| 128 | --optflags="${OPTFLAGS}" | ||
| 129 | |||
| 130 | .if ${MACHINE_ARCH} == "arm" | ||
| 131 | CONFIGURE_ARGS+=--disable-asm | ||
| 132 | .endif | ||
| 133 | .if ${MACHINE_ARCH} == "powerpc" | ||
| 134 | CONFIGURE_ARGS+=--disable-altivec | ||
| 135 | .endif | ||
| 136 | .if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" | ||
| 137 | CONFIGURE_ARGS+=--disable-mipsdsp \ | ||
| 138 | --disable-mipsdspr2 \ | ||
| 139 | --disable-mipsfpu \ | ||
| 140 | --disable-mmi \ | ||
| 141 | --disable-msa | ||
| 142 | .endif | ||
| 143 | |||
| 144 | CONFIGURE_ENV+= TERM=${TERM} \ | ||
| 145 | TMPDIR=${WRKBUILD} \ | ||
| 146 | X86ASMFLAGS="${DEBUG}" | ||
| 147 | |||
| 148 | MAKE_ENV+= V=1 \ | ||
| 149 | libavcodec_extralibs="${LIBavcodec_EXTRALIBS}" \ | ||
| 150 | libavdevice_extralibs="${LIBavdevice_EXTRALIBS}" \ | ||
| 151 | libavfilter_extralibs="${LIBavfilter_EXTRALIBS}" \ | ||
| 152 | libavformat_extralibs="${LIBavformat_EXTRALIBS}" \ | ||
| 153 | libavutil_extralibs="${LIBavutil_EXTRALIBS}" \ | ||
| 154 | libpostproc_extralibs="${LIBpostproc_EXTRALIBS}" \ | ||
| 155 | libswresample_extralibs="${LIBswresample_EXTRALIBS}" \ | ||
| 156 | libswscale_extralibs="${LIBswscale_EXTRALIBS}" \ | ||
| 157 | libavcodec_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib" \ | ||
| 158 | libavdevice_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib:${X11BASE}/lib" \ | ||
| 159 | libavfilter_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib:${X11BASE}/lib" \ | ||
| 160 | libavformat_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib" \ | ||
| 161 | libavutil_linkflags="" \ | ||
| 162 | libpostproc_linkflags="" \ | ||
| 163 | libswresample_linkflags="" \ | ||
| 164 | libswscale_linkflags="" \ | ||
| 165 | libavcodec_requires="libswresample libavutil" \ | ||
| 166 | libavdevice_requires="libavfilter libswscale libpostproc libavformat libavcodec libswresample libavutil" \ | ||
| 167 | libavfilter_requires="libswscale libpostproc libavformat libavcodec libswresample libavutil" \ | ||
| 168 | libavformat_requires="libavcodec libswresample libavutil" \ | ||
| 169 | libavutil_requires="" \ | ||
| 170 | libpostproc_requires="libavutil" \ | ||
| 171 | libswresample_requires="libavutil" \ | ||
| 172 | libswscale_requires="libavutil" | ||
| 173 | |||
| 174 | VERSION_FLAGS= libavcodec_VERSION=${LIBavcodec_VERSION} \ | ||
| 175 | libavdevice_VERSION=${LIBavdevice_VERSION} \ | ||
| 176 | libavfilter_VERSION=${LIBavfilter_VERSION} \ | ||
| 177 | libavformat_VERSION=${LIBavformat_VERSION} \ | ||
| 178 | libavutil_VERSION=${LIBavutil_VERSION} \ | ||
| 179 | libpostproc_VERSION=${LIBpostproc_VERSION} \ | ||
| 180 | libswresample_VERSION=${LIBswresample_VERSION} \ | ||
| 181 | libswscale_VERSION=${LIBswscale_VERSION} | ||
| 182 | |||
| 183 | MAKE_FLAGS= ${VERSION_FLAGS} \ | ||
| 184 | LIBavcodec_EXTRALIBS="-lswresample -lavutil ${LIBavcodec_EXTRALIBS}" \ | ||
| 185 | LIBavdevice_EXTRALIBS="-lavfilter -lswscale -lpostproc -lavformat -lavcodec -lswresample -lavutil ${LIBavdevice_EXTRALIBS}" \ | ||
| 186 | LIBavfilter_EXTRALIBS="-lswscale -lpostproc -lavformat -lavcodec -lswresample -lavutil ${LIBavfilter_EXTRALIBS}" \ | ||
| 187 | LIBavformat_EXTRALIBS="-lavcodec -lswresample -lavutil ${LIBavformat_EXTRALIBS}" \ | ||
| 188 | LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \ | ||
| 189 | LIBpostproc_EXTRALIBS="-lavutil ${LIBpostproc_EXTRALIBS}" \ | ||
| 190 | LIBswresample_EXTRALIBS="-lavutil ${LIBswresample_EXTRALIBS}" \ | ||
| 191 | LIBswscale_EXTRALIBS="-lavutil ${LIBswscale_EXTRALIBS}" | ||
| 192 | FAKE_FLAGS= ${VERSION_FLAGS} \ | ||
| 193 | LDCONFIG=true | ||
| 194 | |||
| 195 | ALL_TARGET= all tools/qt-faststart | ||
| 196 | TEST_TARGET= check | ||
| 197 | |||
| 198 | .for _l in avutil avfilter avcodec avformat avdevice swscale swresample postproc | ||
| 199 | TEST_LIB_PATH:= ${TEST_LIB_PATH}:${WRKBUILD}/lib${_l} | ||
| 200 | .endfor | ||
| 201 | TEST_ENV+= LD_LIBRARY_PATH=${TEST_LIB_PATH:C/^://} | ||
| 202 | |||
| 203 | HTML_DOCS= developer faq ffmpeg ffplay ffprobe general libavfilter | ||
| 204 | |||
| 205 | post-install: | ||
| 206 | ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg | ||
| 207 | ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ffmpeg | ||
| 208 | ${INSTALL_PROGRAM} ${WRKBUILD}/tools/qt-faststart ${PREFIX}/bin | ||
| 209 | .for doc in ${HTML_DOCS} | ||
| 210 | ${INSTALL_DATA} ${WRKBUILD}/doc/${doc}.html ${PREFIX}/share/doc/ffmpeg | ||
| 211 | .endfor | ||
| 212 | mv -f ${PREFIX}/share/ffmpeg/examples/* ${PREFIX}/share/examples/ffmpeg | ||
| 213 | -rmdir ${PREFIX}/share/ffmpeg/examples | ||
| 214 | |||
| 215 | .include <bsd.port.mk> | ||
