mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
+lzo
This commit is contained in:
parent
daae918d60
commit
4ef8ac05b7
1 changed files with 38 additions and 0 deletions
38
projects/oberhumer.com/lzo/package.yml
Normal file
38
projects/oberhumer.com/lzo/package.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
distributable:
|
||||
url: https://www.oberhumer.com/opensource/lzo/download/lzo-{{ version.major }}.{{ version.minor }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
- 2.10.0
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make
|
||||
make check
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --disable-dependency-tracking
|
||||
- --enable-shared
|
||||
- --prefix="{{prefix}}"
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
mv $FIXTURE test.c
|
||||
gcc test.c -o test
|
||||
test "$(./test)" = 'Testing LZO v{{ version.major }}.{{ version.minor }} in tea.'
|
||||
fixture: |
|
||||
#include <lzo/lzoconf.h>
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
printf("Testing LZO v%s in tea.",
|
||||
LZO_VERSION_STRING);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue