mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
f4fdd3ee78
commit
d3d7bc68fd
|
@ -1,12 +1,14 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://downloads.sourceforge.net/project/netpbm/super_stable/{{version}}/netpbm-{{version}}.tgz
|
url: https://downloads.sourceforge.net/project/netpbm/super_stable/{{version}}/netpbm-{{version}}.tgz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
url: https://sourceforge.net/projects/netpbm/files/super_stable/
|
url: https://sourceforge.net/projects/netpbm/files/super_stable/
|
||||||
match: /super_stable\/\d+\.\d+\.\d+\//
|
match: /super_stable\/\d+\.\d+\.\d+\//
|
||||||
strip:
|
strip:
|
||||||
- /^super_stable\//
|
- /^super_stable\//
|
||||||
- /\//
|
- /\//
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
github.com/jasper-software/jasper: '*'
|
github.com/jasper-software/jasper: '*'
|
||||||
libjpeg-turbo.org: '*'
|
libjpeg-turbo.org: '*'
|
||||||
|
@ -14,9 +16,11 @@ dependencies:
|
||||||
simplesystems.org/libtiff: '*'
|
simplesystems.org/libtiff: '*'
|
||||||
gnome.org/libxml2: '*'
|
gnome.org/libxml2: '*'
|
||||||
zlib.net: '*'
|
zlib.net: '*'
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
RGBDEF: "{{prefix}}/misc/rgb.txt"
|
RGBDEF: '{{prefix}}/misc/rgb.txt'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
gnu.org/make: '*'
|
gnu.org/make: '*'
|
||||||
|
@ -32,16 +36,15 @@ build:
|
||||||
-e 's|JASPERLIB = NONE|JASPERLIB = -ljasper|g' \
|
-e 's|JASPERLIB = NONE|JASPERLIB = -ljasper|g' \
|
||||||
config.mk.in >config.mk
|
config.mk.in >config.mk
|
||||||
- run: |
|
- run: |
|
||||||
sed -i.bak \
|
sed -i \
|
||||||
-e 's|CFLAGS_SHLIB = |CFLAGS_SHLIB = -fno-common|g' \
|
-e 's|CFLAGS_SHLIB = |CFLAGS_SHLIB = -fno-common|g' \
|
||||||
-e 's|NETPBMLIBTYPE = unixshared|NETPBMLIBTYPE = dylib|g' \
|
-e 's|NETPBMLIBTYPE = unixshared|NETPBMLIBTYPE = dylib|g' \
|
||||||
-e 's|NETPBMLIBSUFFIX = so|NETPBMLIBSUFFIX = dylib|g' \
|
-e 's|NETPBMLIBSUFFIX = so|NETPBMLIBSUFFIX = dylib|g' \
|
||||||
-e 's|LDSHLIB = -shared -Wl,-soname,$(SONAME)|LDSHLIB = --shared -o $(SONAME)|g' \
|
-e 's|LDSHLIB = -shared -Wl,-soname,$(SONAME)|LDSHLIB = --shared -o $(SONAME)|g' \
|
||||||
config.mk
|
config.mk
|
||||||
if: darwin
|
if: darwin
|
||||||
- run: sed -i.bak 's|CFLAGS_SHLIB = |CFLAGS_SHLIB = -fPIC|g' config.mk
|
- run: sed -i 's|CFLAGS_SHLIB = |CFLAGS_SHLIB = -fPIC|g' config.mk
|
||||||
if: linux
|
if: linux
|
||||||
- rm config.mk.bak
|
|
||||||
|
|
||||||
- make --jobs {{hw.concurrency}}
|
- make --jobs {{hw.concurrency}}
|
||||||
- make --jobs {{hw.concurrency}} package pkgdir=$SRCROOT/stage
|
- make --jobs {{hw.concurrency}} package pkgdir=$SRCROOT/stage
|
||||||
|
@ -64,7 +67,10 @@ build:
|
||||||
Libs: -L${libdir} -lmylibrary
|
Libs: -L${libdir} -lmylibrary
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
env:
|
env:
|
||||||
CFLAGS: "-Wno-implicit-function-declaration $CFLAGS"
|
CFLAGS: '-Wno-implicit-function-declaration $CFLAGS'
|
||||||
|
darwin:
|
||||||
|
LDFLAGS: '$LDFLAGS -Wl,-headerpad_max_install_names'
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/411toppm
|
- bin/411toppm
|
||||||
- bin/asciitopgm
|
- bin/asciitopgm
|
||||||
|
@ -381,6 +387,7 @@ provides:
|
||||||
- bin/yuvtoppm
|
- bin/yuvtoppm
|
||||||
- bin/yuy2topam
|
- bin/yuy2topam
|
||||||
- bin/zeisstopnm
|
- bin/zeisstopnm
|
||||||
|
|
||||||
test:
|
test:
|
||||||
dependencies:
|
dependencies:
|
||||||
freedesktop.org/pkg-config: '*'
|
freedesktop.org/pkg-config: '*'
|
||||||
|
|
Loading…
Reference in a new issue