mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
+mozilla.org/mozjpeg (#1279)
* +mozilla.org/mozjpeg * remove unused * pic/pie flags I don't know why these don't make it through from CFLAGS et al. --------- Co-authored-by: James Reynolds <magnsuviri@me.com> Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
1dd4e4cdcd
commit
8225b2e987
2 changed files with 40 additions and 0 deletions
BIN
projects/mozilla.org/mozjpeg/fixture.jpeg
Normal file
BIN
projects/mozilla.org/mozjpeg/fixture.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 305 B |
40
projects/mozilla.org/mozjpeg/package.yml
Normal file
40
projects/mozilla.org/mozjpeg/package.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
distributable:
|
||||
url: https://github.com/mozilla/mozjpeg/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: mozilla/mozjpeg
|
||||
|
||||
dependencies:
|
||||
libpng.org: ^1
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/make: '*'
|
||||
tea.xyz/gx/cc: 'c99'
|
||||
cmake.org: ^3
|
||||
nasm.us: ^2
|
||||
libpng.org: ^1
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake .. $ARGS
|
||||
make install
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX={{ prefix }}
|
||||
linux/x86-64:
|
||||
ARGS:
|
||||
- -DCMAKE_C_FLAGS=-fPIC
|
||||
- -DCMAKE_CXX_FLAGS=-fPIC
|
||||
- -DCMAKE_EXE_LINKER_FLAGS=-pie
|
||||
|
||||
provides:
|
||||
- bin/cjpeg
|
||||
- bin/djpeg
|
||||
- bin/jpegtran
|
||||
- bin/rdjpgcom
|
||||
- bin/tjbench
|
||||
- bin/wrjpgcom
|
||||
|
||||
test:
|
||||
script: jpegtran -crop 1x1 -transpose -optimize -outfile out.jpg fixture.jpeg
|
Loading…
Reference in a new issue