-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recipes: Add libevent. [skip appveyor]
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Needed to ensure our OpenSSL and | ||
# not the system one is used on OS X. | ||
export LIBRARY_PATH="${PREFIX}/lib" | ||
|
||
export CFLAGS="-I${PREFIX}/include ${CFLAGS}" | ||
export CPPFLAGS="-I${PREFIX}/include ${CPPFLAGS}" | ||
export LDFLAGS="-L${PREFIX}/lib ${LDFLAGS}" | ||
|
||
# Set the fallback library environment variable. | ||
if [[ `uname` == 'Darwin' ]]; | ||
then | ||
export LIBRARY_SEARCH_VAR=DYLD_FALLBACK_LIBRARY_PATH | ||
else | ||
export LIBRARY_SEARCH_VAR=LD_LIBRARY_PATH | ||
fi | ||
|
||
|
||
chmod +x ./autogen.sh | ||
|
||
./autogen.sh | ||
./configure --prefix="${PREFIX}" | ||
make | ||
|
||
# | ||
# Seems to hand on Mac builds. So have commented it for now. | ||
# | ||
#eval ${LIBRARY_SEARCH_VAR}="${PREFIX}/lib" make check | ||
|
||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% set version = "2.0.22" %} | ||
|
||
package: | ||
name: libevent | ||
version: {{ version }} | ||
|
||
source: | ||
fn: libevent-{{ version }}.tar.gz | ||
url: https://github.com/libevent/libevent/archive/release-{{ version }}-stable.tar.gz | ||
sha256: ab89639b0819befb1d8b293d52047c6955f8d1c9150c2b22a0e6247930eb9128 | ||
|
||
build: | ||
number: 0 | ||
skip: True # [win] | ||
|
||
requirements: | ||
build: | ||
- toolchain | ||
- autoconf | ||
- automake | ||
- libtool | ||
- pkg-config | ||
- openssl 1.0.* | ||
|
||
run: | ||
- openssl 1.0.* | ||
|
||
test: | ||
commands: | ||
{% set libs = [ | ||
"libevent", | ||
"libevent_core", | ||
"libevent_extra", | ||
"libevent_openssl", | ||
"libevent_pthreads" | ||
] %} | ||
|
||
{% for each_lib in libs %} | ||
- test -f "${PREFIX}/lib/{{ each_lib }}.a" | ||
- test -f "${PREFIX}/lib/{{ each_lib }}.dylib" # [osx] | ||
- test -f "${PREFIX}/lib/{{ each_lib }}.so" # [linux] | ||
- test -f "${PREFIX}/lib/{{ each_lib }}.la" | ||
{% endfor %} | ||
|
||
{% set pkgconfigs = [ | ||
"libevent", | ||
"libevent_openssl", | ||
"libevent_pthreads" | ||
] %} | ||
|
||
{% for each_pkgconfig in pkgconfigs %} | ||
- test -f "${PREFIX}/lib/pkgconfig/{{ each_pkgconfig }}.pc" | ||
{% endfor %} | ||
|
||
about: | ||
home: http://libevent.org/ | ||
license: BSD 3-Clause | ||
license_file: LICENSE | ||
summary: A terminal multiplexer. | ||
|
||
extra: | ||
recipe-maintainers: | ||
- jakirkham |