Ravenports generated: 14 Jan 2021 15:57
[ravenports.git] / bucket_1F / x264
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               x264
4 VERSION=                0.161.3020
5 KEYWORDS=               multimedia
6 VARIANTS=               standard
7 SDESC[standard]=        H.264/MPEG-4 AVC Video Encoder
8 HOMEPAGE=               https://www.videolan.org/developers/x264.html
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://code.videolan.org/videolan/x264/-/archive/d198931/
13 DISTFILE[1]=            d198931.tar.bz2:main
14 DIST_SUBDIR=            x264
15 DF_INDEX=               1
16 SPKGS[standard]=        program
17                         library
18
19 OPTIONS_AVAILABLE=      H10P ASM
20 OPTIONS_STANDARD=       H10P ASM
21 OPT_ON[x86_64]=         ASM
22 OPT_ON[i386]=           ASM
23
24 BUILD_DEPENDS=          bash:primary:standard
25 BUILDRUN_DEPENDS=       libav:single:standard
26                         l-smash:single:standard
27
28 USES=                   pkgconfig gmake shebangfix
29
30 DISTNAME=               x264-d198931-d198931a63049db1f2c92d96c34904c69fde8117
31
32 LICENSE=                GPLv2+:library
33 LICENSE_TERMS=          library:{{WRKDIR}}/TERMS
34 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/COPYING
35 LICENSE_AWK=            TERMS:"^$$"
36 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/x264.h
37 LICENSE_SCHEME=         solo
38
39 FPC_EQUIVALENT=         multimedia/x264
40 SHEBANG_FILES=          configure
41
42 MUST_CONFIGURE=         yes
43 CONFIGURE_ARGS=         --prefix="{{PREFIX}}"
44                         --host="{{CONFIGURE_TARGET}}"
45                         --extra-cflags="{{CPPFLAGS}} {{CFLAGS}}"
46                         --extra-ldflags="{{LDFLAGS}}"
47                         --enable-static
48                         --enable-shared
49                         --enable-strip
50                         --disable-bashcompletion
51                         --disable-gpac
52                         --disable-ffms
53                         --disable-avs
54
55 INSTALL_REQ_TOOLCHAIN=  yes
56 PLIST_SUB=              X264_BUILD=161
57
58 CFLAGS=                 -I{{LOCALBASE}}/include/libav
59 LDFLAGS=                -L{{LOCALBASE}}/lib/libav
60                         -Wl,-rpath,{{LOCALBASE}}/lib/libav
61
62 [ASM].BUILD_DEPENDS_ON=                 nasm:primary:standard
63 [ASM].CONFIGURE_ARGS_OFF=               --disable-asm
64
65 [H10P].DESCRIPTION=                     Enable High 10 Profile 10-bit encoding
66 [H10P].BUILD_DEPENDS_OFF=               opencl-headers:single:standard
67 [H10P].CONFIGURE_ARGS_ON=               --bit-depth=10
68
69 post-patch:
70         ${REINPLACE_CMD} -e ' \
71                 s|gpac_static|gpac|g' \
72                 ${WRKSRC}/configure
73         ${REINPLACE_CMD} -e ' \
74                 s|bash|sh|; \
75                 s|VER="x"|VER="3020 d198931"|; \
76                 s|VERSION=""|VERSION=" r3020 d198931"|' \
77                 ${WRKSRC}/version.sh
78
79 [FILE:210:descriptions/desc.program]
80 x264 is a free software library and application for encoding video streams
81 into the H.264/MPEG-4 AVC compression format, and is released under the
82 terms of the GNU GPL.
83
84 This package contains the x264 program.
85
86
87 [FILE:807:descriptions/desc.library]
88 x264 is a free software library and application for encoding video streams
89 into the H.264/MPEG-4 AVC compression format, and is released under the
90 terms of the GNU GPL.
91
92 Features Overview
93  * Provides best-in-class performance, compression, and features.
94  * Achieves dramatic performance, encoding 4 or more 1080p streams in
95    realtime on a single consumer-level computer.
96  * Gives the best quality, having the most advanced psychovisual
97    optimizations.
98  * Support features necessary for many different applications, such as
99    television broadcast, Blu-ray low-latency video applications, and web
100    video.
101  * x264 forms the core of many web video services, such as Youtube,
102    Facebook, Vimeo, and Hulu. It is widely used by television broadcasters
103    and ISPs.
104
105 This package contains the x264 library.
106
107
108 [FILE:99:distinfo]
109 91d251edaf17350992aff3cac96e9faf6291ff17fd74577e8e4a4ada6e69fe06       768142 x264/d198931.tar.bz2
110
111
112 [FILE:57:manifests/plist.program]
113 @comment share/bash-completion/completions/x264
114 bin/x264
115
116
117 [FILE:109:manifests/plist.library]
118 include/
119  x264.h
120  x264_config.h
121 lib/
122  libx264.a
123  libx264.so
124  libx264.so.%%X264_BUILD%%
125 lib/pkgconfig/x264.pc
126
127
128 [FILE:469:patches/patch-Makefile]
129 -T (treat DEST as a normal file) is not supported by BSD install(1)
130
131 --- Makefile.orig       2020-09-12 17:23:57 UTC
132 +++ Makefile
133 @@ -413,7 +413,7 @@ endif
134  install-bashcompletion:
135  ifneq ($(BASHCOMPLETIONSDIR),)
136         $(INSTALL) -d $(DESTDIR)$(BASHCOMPLETIONSDIR)
137 -       $(INSTALL) -m 644 -T $(SRCPATH)/tools/bash-autocomplete.sh $(DESTDIR)$(BASHCOMPLETIONSDIR)/x264
138 +       $(INSTALL) -m 644 $(SRCPATH)/tools/bash-autocomplete.sh $(DESTDIR)$(BASHCOMPLETIONSDIR)/x264
139  endif
140  
141  uninstall:
142
143
144 [FILE:771:patches/patch-common_cpu.c]
145 --- common/cpu.c.orig   2020-09-12 17:23:57 UTC
146 +++ common/cpu.c
147 @@ -33,7 +33,7 @@
148  #if SYS_BEOS
149  #include <kernel/OS.h>
150  #endif
151 -#if SYS_MACOSX || SYS_FREEBSD
152 +#if SYS_MACOSX || SYS_FREEBSD || SYS_DRAGONFLY
153  #include <sys/types.h>
154  #include <sys/sysctl.h>
155  #endif
156 @@ -325,6 +325,13 @@ uint32_t x264_cpu_detect( void )
157      return cpu;
158  }
159  
160 +#elif SYS_DRAGONFLY
161 +
162 +uint32_t x264_cpu_detect( void )
163 +{
164 +    return 0;
165 +}
166 +
167  #elif SYS_LINUX
168  
169  uint32_t x264_cpu_detect( void )
170 @@ -460,7 +467,7 @@ int x264_cpu_num_processors( void )
171      get_system_info( &info );
172      return info.cpu_count;
173  
174 -#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD
175 +#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD || SYS_DRAGONFLY
176      int ncpu;
177      size_t length = sizeof( ncpu );
178  #if SYS_OPENBSD
179
180
181 [FILE:604:patches/patch-configure]
182 --- configure.orig      2020-09-12 17:23:57 UTC
183 +++ configure
184 @@ -659,6 +659,10 @@ case $host_os in
185              cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
186          fi
187          ;;
188 +    dragonfly*)
189 +        SYS="DRAGONFLY"
190 +        LDFLAGS="$LDFLAGS -lm"
191 +        ;;
192      freebsd*)
193          SYS="FREEBSD"
194          libm="-lm"
195 @@ -1386,6 +1390,9 @@ if [ "$opencl" = "yes" ]; then
196          opencl="yes"
197          define HAVE_OPENCL "(BIT_DEPTH==8)"
198          libdl="-ldl"
199 +    else
200 +        opencl="yes"
201 +        define HAVE_OPENCL "(BIT_DEPTH==8)"
202      fi
203      LDFLAGS="$LDFLAGS $libdl"
204  fi
205