Skip to content

Commit

Permalink
Add executables for OSX and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Dec 25, 2020
1 parent 0649882 commit 1420c42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ export C_INCLUDE_PATH=${PREFIX}/include
export LIBRARY_PATH=${PREFIX}/lib

make
mkdir -p $PREFIX/lib
mkdir -p $PREFIX/include

# Note to the wise: we're just copying over the library part of libdeflate
# Excluding the "gzip" replacements, which would clobber the traditional zlib packages if installed.
mv libdeflate.h $PREFIX/include/
cp libdeflate.* $PREFIX/lib/
# The make script uses the $PREFIX env variable to install the application.
# The 'gzip' application (which is not gzip) will be renamed libdeflate-gzip.
make install


# Redundant for linux. Necessary for Mac OS X.
cp libdeflate.* $PREFIX/lib/
6 changes: 4 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source:
sha256: {{ sha256 }}

build:
number: 1
number: 2
skip: true # [win]
run_exports:
- {{ pin_subpackage('libdeflate', max_pin='x.x') }}
Expand All @@ -24,6 +24,8 @@ test:
commands:
- test -f ${PREFIX}/lib/libdeflate.a # [unix]
- test -f ${PREFIX}/lib/libdeflate${SHLIB_EXT} # [unix]
- libdeflate-gzip -h
- libdeflate-gunzip -h

about:
home: https://github.com/ebiggers/libdeflate
Expand All @@ -34,5 +36,5 @@ about:
extra:
recipe-maintainers:
- dpryan79
- rhpvorderman
- rhpvorderman
- hmaarrfk

0 comments on commit 1420c42

Please sign in to comment.