mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
freedesktop.org/xcb-util-image (#3426)
* new file: projects/freedesktop.org/xcb-util-image/package.yml new file: projects/freedesktop.org/xcb-util-image/test.c * .
This commit is contained in:
parent
d71e112da6
commit
697dd4be09
2 changed files with 44 additions and 0 deletions
35
projects/freedesktop.org/xcb-util-image/package.yml
Normal file
35
projects/freedesktop.org/xcb-util-image/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
distributable:
|
||||||
|
url: https://xcb.freedesktop.org/dist/xcb-util-image-{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
url: https://xcb.freedesktop.org/dist/
|
||||||
|
match: /xcb-util-image-\d+\.\d+\.\d+\.tar\.gz/
|
||||||
|
strip:
|
||||||
|
- /^xcb-util-image-/
|
||||||
|
- /\.tar\.gz/
|
||||||
|
dependencies:
|
||||||
|
x.org/xcb: '*'
|
||||||
|
freedesktop.org/xcb-util: '*'
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script:
|
||||||
|
- ./configure $CONFIGURE_ARGS
|
||||||
|
- make --jobs {{ hw.concurrency }}
|
||||||
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
CONFIGURE_ARGS:
|
||||||
|
- --disable-debug
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
- --prefix="{{prefix}}"
|
||||||
|
- --libdir="{{prefix}}/lib"
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script:
|
||||||
|
- cc test.c -o test
|
||||||
|
- ./test
|
||||||
|
- pkg-config --modversion xcb-image | grep {{version}}
|
9
projects/freedesktop.org/xcb-util-image/test.c
Normal file
9
projects/freedesktop.org/xcb-util-image/test.c
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#include <xcb/xcb.h>
|
||||||
|
#include <xcb/xcb_util.h>
|
||||||
|
#include <xcb/xcb_bitops.h>
|
||||||
|
#include <xcb/xcb_image.h>
|
||||||
|
#include <xcb/xcb_pixel.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue