mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+libpng+pixman+gperf+pcre+pixman+bison (#77)
This commit is contained in:
parent
42816e4c0b
commit
2540f4e031
|
@ -39,6 +39,10 @@ If you have a website you can host your own `package.yml` there and we will
|
|||
build binaries for you. This feature is coming soon and will require
|
||||
signed, versioned tags and signed source tarballs.
|
||||
|
||||
# Packaging Knowledgebase
|
||||
|
||||
Our [wiki](/wiki) is our knowledgebase. Fill it with the fruits of your
|
||||
knowledge. Please keep it tidy.
|
||||
|
||||
# Dependencies
|
||||
|
||||
|
|
28
projects/pixman.org/package.yml
Normal file
28
projects/pixman.org/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
distributable:
|
||||
url: https://cairographics.org/releases/pixman-{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: freedesktop/pixman/tags
|
||||
strip: /^pixman-/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure --prefix={{ prefix }} --disable-debug
|
||||
make --jobs {{ hw.concurrency }}
|
||||
make install
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: ^0.29
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
cc {{ pkg.pantry-prefix }}/test.c -lpixman-1 $CFLAGS
|
||||
./a.out
|
||||
env:
|
||||
# using pkg-config as pixman puts its headers in `include/pixman-1`
|
||||
LDFLAGS: $(pkg-config --libs pixman-1)
|
||||
CFLAGS: $(pkg-config --cflags pixman-1)
|
8
projects/pixman.org/test.c
Normal file
8
projects/pixman.org/test.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include <pixman.h>
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
pixman_color_t white = { 0xffff, 0xffff, 0xffff, 0xffff };
|
||||
pixman_image_t *image = pixman_image_create_solid_fill(&white);
|
||||
pixman_image_unref(image);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue