1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${TOPDIR}/rules.mk
9 PKG_MD5SUM
:= 19f27ddd2dda4b2d26a559a4f0f402a7
10 PKG_DESCR
:= An ID3v1
/ID3v2 tagging library
12 PKG_DEPENDS
:= zlib libiconv
13 PKG_BUILDDEP
:= zlib libiconv
14 PKG_URL
:= http
://id3lib.sourceforge.net
/
15 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=id3lib
/}
19 include ${TOPDIR}/mk
/package.mk
21 $(eval
$(call PKG_template
,ID3LIB
,id3lib
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 CONFIGURE_ARGS
+= --enable-cxx-warnings
=no
26 LIBRARIES
:=-nodefaultlibs
-luClibc
++ -lz
-lm
-lc
-lgcc
27 ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP
),y
)
28 LIBRARIES
+=-lssp
-fstack-protector
31 ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX
),y
)
32 TARGET_CXXFLAGS
+= -fno-builtin
-fno-rtti
-nostdinc
++ \
33 -I
${STAGING_TARGET_DIR}/usr
/include/uClibc
++
34 CONFIGURE_ENV
+= LIBS
="${LIBRARIES}"
36 TARGET_LDFLAGS
+= -shared
40 ${INSTALL_DIR} ${IDIR_ID3LIB}/usr
/lib
41 ${CP} ${WRKINST}/usr
/lib
/libid3-
*.so
* ${IDIR_ID3LIB}/usr
/lib
/
43 include ${TOPDIR}/mk
/pkg-bottom.mk