summaryrefslogtreecommitdiff
path: root/package/brutefir/Makefile
blob: 23577ad239e73d929e5ee5f3027f322494a273aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		brutefir
PKG_VERSION:=		1.0m
PKG_RELEASE:=		4
PKG_HASH:=		23b80500fc8687be338bc2654ecc509eccc06fe9372815361b65ed9b1807ccca
PKG_DESCR:=		convulution engine
PKG_SECTION:=		mm/audio
PKG_DEPENDS:=		fftw alsa-lib jack2
PKG_BUILDDEP:=		flex-host fftw alsa-lib jack2
PKG_URL:=		http://www.ludd.luth.se/~torger/brutefir.html
PKG_SITES:=		http://www.ludd.luth.se/~torger/files/	

DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.gz

MAKE_ENV+= 		FLEX=$(STAGING_HOST_DIR)/usr/bin/flex UNAME_M=$(ADK_TARGET_ARCH)

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,BRUTEFIR,brutefir,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

ifeq ($(ADK_TARGET_ARCH_X86)$(ADK_TARGET_ARCH_X86_64),y)
TARGET_CFLAGS+=		-msse
endif

GCCPATH:=		$(subst libgcc.a,,$(shell $(TARGET_CC) -print-libgcc-file-name))
XAKE_FLAGS+=		LIBPATHS="-L$(GCCPATH)"

CONFIG_STYLE=		manual

brutefir-install:
	$(INSTALL_DIR) $(IDIR_BRUTEFIR)/usr/bin
	$(INSTALL_DIR) $(IDIR_BRUTEFIR)/usr/lib
	$(INSTALL_BIN) $(WRKINST)/usr/bin/brutefir \
		$(IDIR_BRUTEFIR)/usr/bin
	$(CP) $(WRKINST)/usr/lib/* \
		$(IDIR_BRUTEFIR)/usr/lib/

include $(ADK_TOPDIR)/mk/pkg-bottom.mk