Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libmad
  5. PKG_VERSION:= 0.15.1b
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 1be543bc30c56fb6bea1d7bf6a64e66c
  8. PKG_DESCR:= An high-quality MPEG audio decoding library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://sourceforge.net/projects/mad
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/}
  12. PKG_SUBPKGS:= LIBMAD LIBMAD_DEV
  13. PKGSD_LIBMAD_DEV:= development files for libmad
  14. PKGSC_LIBMAD_DEV:= devel
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBMAD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LIBMAD_DEV,libmad-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBMAD_DEV},${PKGSC_LIBMAD_DEV}))
  18. FPM:=default
  19. ifeq (${ARCH},i386)
  20. FPM:=intel
  21. endif
  22. # MIPS optimization is broken for gcc 4.4 (removed h constraint)
  23. #ifeq (${ARCH},mips)
  24. #FPM:=mips
  25. #endif
  26. SUB_INSTALLS-y:=
  27. SUB_INSTALLS-m:=
  28. SUB_INSTALLS-${ADK_PACKAGE_LIBMAD_DEV}+= libmad-dev-install
  29. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  30. --disable-debugging \
  31. --enable-speed
  32. pre-install:
  33. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  34. ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
  35. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  36. ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libmad.so* ${IDIR_LIBMAD}/usr/lib/
  38. libmad-dev-install:
  39. ${INSTALL_DIR} ${IDIR_LIBMAD_DEV}/usr/include
  40. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBMAD_DEV}/usr/include/
  41. include ${TOPDIR}/mk/pkg-bottom.mk