arc-toolchain: update to rc1
[openadk.git] / package / jack2 / Makefile
blob3e1e0cf0207752f35b0577a1f3034018104689e9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= jack2
7 PKG_VERSION:= 7bdad4966b29f721c384bdfe6921a1e5c1d84561
8 PKG_RELEASE:= 1
9 PKG_GIT:= hash
10 PKG_DESCR:= audio connection kit (v2)
11 PKG_SECTION:= mm/audio
12 PKG_DEPENDS:= alsa-lib libsndfile libsamplerate
13 PKG_BUILDDEP:= python2-host alsa-lib libsndfile libsamplerate
14 PKG_NEEDS:= threads c++
15 PKG_URL:= http://jackaudio.org
16 PKG_SITES:= https://github.com/jackaudio/jack2.git
18 include $(ADK_TOPDIR)/mk/package.mk
20 $(eval $(call PKG_template,JACK2,jack2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
22 CONFIG_STYLE:= manual
23 BUILD_STYLE:= manual
24 INSTALL_STYLE:= manual
26 do-configure:
27 cd $(WRKBUILD) && PATH='$(HOST_PATH)' ./waf configure --alsa --prefix=/usr
29 do-build:
30 cd $(WRKBUILD) && PATH='$(HOST_PATH)' ./waf build
32 do-install:
33 cd $(WRKBUILD) && PATH='$(HOST_PATH)' ./waf install --destdir=$(WRKINST)
35 jack2-install:
36 $(INSTALL_DIR) $(IDIR_JACK2)/usr/bin
37 $(CP) $(WRKINST)/usr/bin/jack* \
38 $(IDIR_JACK2)/usr/bin
39 $(INSTALL_DIR) $(IDIR_JACK2)/usr/lib/jack
40 $(CP) $(WRKINST)/usr/lib/libjack{,server,net}.so* \
41 $(IDIR_JACK2)/usr/lib
42 $(CP) $(WRKINST)/usr/lib/jack/*.so \
43 $(IDIR_JACK2)/usr/lib/jack
44 $(CP) ./files/jack.pc.in $(WRKINST)/usr/lib/pkgconfig/jack.pc
45 $(SED) "s#@INCLUDEDIR@#$(STAGING_TARGET_DIR)/usr/include#" \
46 -e "s#@LIBDIR@#$(STAGING_TARGET_DIR)/usr/lib#" \
47 -e "s#@PREFIX@#$(STAGING_TARGET_DIR)/usr#" \
48 $(WRKINST)/usr/lib/pkgconfig/jack.pc
51 include ${ADK_TOPDIR}/mk/pkg-bottom.mk