packages/libs/zaptel/Makefile
pavlov bea42678c9 huge propset, fixes eol-style on everything and sets keywords and copyright on all Makefiles
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6500 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 04:19:46 +00:00

71 lines
1.8 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=zaptel
PKG_VERSION:=1.2.12
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.digium.com/pub/zaptel/releases/ ftp://ftp.digium.com/pub/zaptel/releases/
PKG_MD5SUM:=99b9f86556b903a32607b2751f920513
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/zaptel/Default
SECTION:=libs
CATEGORY:=Libraries
URL:=http://ftp.digium.com/pub/zaptel/releases
endef
define Package/zaptel-libtonezone
$(call Package/zaptel/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Zaptel tonezone library.
endef
define Build/Configure
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
HOSTCC="$(HOSTCC)" \
CFLAGS="$(TARGET_CFLAGS) -I. -DBUILDING_TONEZONE" \
KSRC="$(LINUX_DIR)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
install-tonezone
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include/linux
$(CP) $(PKG_INSTALL_DIR)/usr/include/linux/zaptel.h $(STAGING_DIR)/usr/include/linux/
$(CP) $(PKG_INSTALL_DIR)/usr/include/tonezone.h $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so* $(STAGING_DIR)/usr/lib/
endef
define Build/UninstallDev
rm -rf $(STAGING_DIR)/usr/include/linux/zaptel.h
rm -rf $(STAGING_DIR)/usr/include/tonezone.h
rm -rf $(STAGING_DIR)/usr/lib/libtonezone.so*
endef
define Package/zaptel-libtonezone/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,zaptel-libtonezone))