4534a01030f74361d0b1a4c624c860fa4b2bc504
[openwrt/svn-archive/archive.git] / libs / libdvbpsi4 / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libdvbpsi4
12 PKG_VERSION:=0.1.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://download.videolan.org/pub/libdvbpsi/$(PKG_VERSION)/
17 PKG_MD5SUM:=407cd074b7d6eaf31b20b693ed924655
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libdvbpsi4
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=MPEG TS and DVB PSI tables decoding and generating
29 DESCRIPTION:=\
30 libdvbpsi is a simple library designed for MPEG TS and DVB PSI tables \\\
31 decoding and generating.
32 URL:=http://www.videolan.org/developers/libdvbpsi.html
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/Default, \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 install \
39 )
40 endef
41
42 define Build/InstallDev
43 mkdir -p $(STAGING_DIR)/usr/include
44 $(CP) $(PKG_INSTALL_DIR)/usr/include/dvbpsi $(STAGING_DIR)/usr/include/
45 mkdir -p $(STAGING_DIR)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvbpsi.{a,so*,la} $(STAGING_DIR)/usr/lib/
47 endef
48
49 define Build/UninstallDev
50 rm -rf \
51 $(STAGING_DIR)/usr/include/dvbpsi \
52 $(STAGING_DIR)/usr/lib/libdvbpsi.{a,so*,la}
53 endef
54
55 define Package/libdvbpsi4/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INTALL_DIR)/usr/lib/libdvbpsi.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libdvbpsi4))