Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[openwrt/svn-archive/archive.git] / libs / libdvbpsi4 / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libdvbpsi4
12 PKG_VERSION:=0.1.5
13 PKG_RELEASE:=2
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_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 define Package/libdvbpsi4
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=MPEG TS and DVB PSI tables decoding and generating
28 URL:=http://www.videolan.org/developers/libdvbpsi.html
29 endef
30
31 define Package/libdvbpsi4/description
32 libdvbpsi is a simple library designed for MPEG TS and DVB PSI tables
33 decoding and generating.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/include/dvbpsi
40 $(INSTALL_DATA) \
41 $(PKG_INSTALL_DIR)/usr/include/dvbpsi/*.h \
42 $(1)/usr/include/dvbpsi/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) \
45 $(PKG_INSTALL_DIR)/usr/lib/libdvbpsi.{so*,a,la} \
46 $(1)/usr/lib/
47 endef
48
49 define Package/libdvbpsi4/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/lib/libdvbpsi.so* \
53 $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libdvbpsi4))