Last active
March 21, 2016 10:08
-
-
Save taka-wang/305f6c3356dc8b4e1e74 to your computer and use it in GitHub Desktop.
zmq recipe
This file contains hidden or 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
DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like a concurrency framework" | |
HOMEPAGE = "http://www.zeromq.org" | |
LICENSE = "LGPLv3+" | |
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=66ea8704398d7996daeacd2fbd2b9dbd" | |
PR = "r001" | |
DEPENDS += "libtool" | |
DEPENDS += "util-linux" | |
SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz" | |
SRC_URI[md5sum] = "1b11aae09b19d18276d0717b2ea288f6" | |
SRC_URI[sha256sum] = "43904aeb9ea6844f72ca02e4e53bf1d481a1a0264e64979da761464e88604637" | |
S = "${WORKDIR}/zeromq-${PV}" | |
inherit autotools | |
do_configure_prepend() { | |
./autogen.sh | |
} | |
do_install() { | |
install -d ${D}${libdir} | |
install -m 0644 ${S}/src/.libs/libzmq.so ${D}${libdir} | |
install -d ${D}${includedir} | |
install -m 0644 ${S}/include/*.h ${D}${includedir} | |
install -m 0644 ${S}/include/*.hpp ${D}${includedir} | |
install -d ${D}${libdir}/pkgconfig/ | |
install -m 0644 ${S}/src/libzmq.pc ${D}${libdir}/pkgconfig/ | |
} | |
pkg_postinst() { | |
#!/bin/sh | |
ln -s /usr/lib/libzmq.so.1 /usr/lib/libzmq.so | |
} | |
pkg_prerm() { | |
#!/bin/sh | |
rm /usr/lib/libzmq.so | |
} | |
FILES_${PN} = "${libdir}/libzmq.so" | |
FILES_${PN} += "${includedir}/*.h" | |
FILES_${PN} += "${includedir}/*.hpp" | |
FILES_${PN}-dev = "${libdir}/libzmq.so" | |
FILES_${PN}-dev += "${includedir}/*.h" | |
FILES_${PN}-dev += "${includedir}/*.hpp" | |
FILES_${PN}-dev += "${libdir}/pkgconfig/libzmq.pc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment