diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/id3lib/Makefile |
Initial import
Diffstat (limited to 'package/id3lib/Makefile')
-rw-r--r-- | package/id3lib/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/id3lib/Makefile b/package/id3lib/Makefile new file mode 100644 index 000000000..bb821c4ca --- /dev/null +++ b/package/id3lib/Makefile @@ -0,0 +1,42 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= id3lib +PKG_VERSION:= 3.8.3 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 19f27ddd2dda4b2d26a559a4f0f402a7 +MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=id3lib/} + +PKG_DEPEND:= zlib libiconv +ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX),y) +PKG_DEPEND+= uclibc++ +else +PKG_DEPEND+= libstdcxx +endif + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,ID3LIB,id3lib,${PKG_VERSION}-${PKG_RELEASE},${ARCH},${PKG_DEPEND})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ARGS+= --enable-cxx-warnings=no +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX),y) +TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ \ + -I${STAGING_DIR}/usr/include/uClibc++ +CONFIGURE_ENV+= LIBS="-nodefaultlibs -luClibc++ -lz -lm -lc" +else +TLDFLAGS+= -shared +endif + +post-install: + ${INSTALL_DIR} ${IDIR_ID3LIB}/usr/lib + ${CP} ${WRKINST}/usr/lib/libid3-*.so.* ${IDIR_ID3LIB}/usr/lib/ + +include ${TOPDIR}/mk/pkg-bottom.mk |