[packages] libdvbpsi: remove private libtool copy
[packages.git] / libs / libdvbpsi / Makefile
1 #
2 # Copyright (C) 2007-2008 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libdvbpsi5
11 PKG_VERSION:=0.1.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.videolan.org/pub/libdvbpsi/$(PKG_VERSION)/
16 PKG_MD5SUM:=bd2d9861be3311e1e03c91cd9345f542
17
18 PKG_FIXUP:=libtool
19 PKG_REMOVE_FILES:=acinclude.m4 aclocal.m4 autotools/ltmain.sh
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_INSTALL=1
24
25 define Package/libdvbpsi
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=MPEG TS and DVB PSI tables decoding and generating
29   URL:=http://www.videolan.org/developers/libdvbpsi.html
30 endef
31
32 define Package/libdvbpsi/description
33         libdvbpsi is a simple library designed for MPEG TS and DVB PSI tables
34         decoding and generating.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 define Build/InstallDev
40         $(INSTALL_DIR) $(1)/usr/include/dvbpsi
41         $(INSTALL_DATA) \
42                 $(PKG_INSTALL_DIR)/usr/include/dvbpsi/*.h \
43                 $(1)/usr/include/dvbpsi/
44         $(INSTALL_DIR) $(1)/usr/lib
45         $(CP) \
46                 $(PKG_INSTALL_DIR)/usr/lib/libdvbpsi.{so*,a,la} \
47                 $(1)/usr/lib/
48 endef
49
50 define Package/libdvbpsi/install
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(CP) \
53                 $(PKG_INSTALL_DIR)/usr/lib/libdvbpsi.so* \
54                 $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libdvbpsi))