Skip to content

Commit e69a66d

Browse files
mftsmxcl
andauthored
+x.org/xpm (#1363)
* +x.org/xpm --------- Co-authored-by: Max Howell <[email protected]>
1 parent 4ab6fb3 commit e69a66d

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

projects/x.org/xpm/package.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
distributable:
2+
url: https://www.x.org/archive/individual/lib/libXpm-{{version}}.tar.gz
3+
strip-components: 1
4+
5+
versions:
6+
- 3.5.15
7+
8+
dependencies:
9+
x.org/x11: '*'
10+
zlib.net: ^1.2
11+
12+
build:
13+
dependencies:
14+
tea.xyz/gx/cc: c99
15+
tea.xyz/gx/make: '*'
16+
freedesktop.org/pkg-config: ~0.29
17+
gnu.org/gettext: 0.21
18+
script: |
19+
./configure \
20+
--prefix="{{prefix}}" \
21+
--sysconfdir="$SHELF"/etc \
22+
--localstatedir="$SHELF"/var \
23+
--disable-open-zfile
24+
make --jobs {{ hw.concurrency }} install
25+
env:
26+
SHELF: ${{tea.prefix}}/x.org
27+
28+
test:
29+
dependencies:
30+
tea.xyz/gx/cc: c99
31+
script: |
32+
mv $FIXTURE test.c
33+
cc test.c
34+
./a.out
35+
fixture: |
36+
#include "X11/Xlib.h"
37+
#include "X11/xpm.h"
38+
39+
int main(int argc, char* argv[]) {
40+
XpmColor color;
41+
return 0;
42+
}

0 commit comments

Comments
 (0)