+libpng+pixman+gperf+pcre+pixman+bison (#77)

This commit is contained in:
Max Howell 2022-08-05 16:22:53 -04:00 committed by GitHub
parent 42816e4c0b
commit 2540f4e031
3 changed files with 40 additions and 0 deletions

View file

@ -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

View 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)

View 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;
}