2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://developer.kde.org
/~wheeler
/files
/src
/
17 PKG_MD5SUM
:=dcd50ddb2544faeae77f194804559404
19 include $(INCLUDE_DIR
)/package.mk
24 DEPENDS
:= +uclibcxx
+zlib
25 TITLE
:=Audio output library
26 URL
:=http
://developer.kde.org
/~wheeler
/taglib.html
35 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
36 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
37 LDFLAGS
="$$$$LDFLAGS" \
38 LIBS
="-nodefaultlibs -lz -luClibc++" \
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 DESTDIR
="$(PKG_INSTALL_DIR)" \
46 define Build
/InstallDev
48 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/taglib-config
$(1)/usr
/bin
/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtag.
{a
,so
*} $(1)/usr
/lib
/
51 mkdir
-p
$(1)/usr
/include/taglib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/taglib
/* $(1)/usr
/include/taglib
/
55 define Build
/UninstallDev
56 rm -rf
$(STAGING_DIR
)/usr
/bin
/taglib-config \
57 $(STAGING_DIR
)/usr
/include/taglib \
58 $(STAGING_DIR
)/usr
/lib
/libtag.
{a
,so
*}
61 define Package
/taglib
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtag.so.
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,taglib
))