source: packages/libs/spandsp/Makefile @ 23523

Last change on this file since 23523 was 23523, checked in by mb, 6 years ago

From: Roman Yeryomin <leroi.lists@…>
add spandsp library package

File size: 1007 bytes
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=spandsp
12PKG_VERSION:=0.0.6
13PKG_RELEASE:=17
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)pre17.tgz
16PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
17PKG_MD5SUM:=cc860f77270cf3b881f8ccd42d2d0238
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libspandsp
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=spandsp library
27  DEPENDS:=+libtiff
28endef
29
30CONFIGURE_ARGS+= LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
31TARGET_CFLAGS += $(FPIC)
32
33define Build/InstallDev
34        $(INSTALL_DIR) $(1)/usr/{lib,include}
35        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib
36        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
37endef
38
39define Package/libspandsp/install
40        $(INSTALL_DIR) $(1)/usr/lib
41        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
42endef
43
44$(eval $(call BuildPackage,libspandsp))
Note: See TracBrowser for help on using the repository browser.