Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= lame
  5. PKG_VERSION:= 3.98.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 8e9866ad6b570c6c95c8cba48060473f
  8. PKG_DESCR:= LAME MP3 encoder
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= libncurses
  11. PKG_BUILDDEP:= ncurses
  12. PKG_URL:= http://lame.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=lame/}
  14. PKG_LIBNAME:= libmp3lame
  15. PKG_OPTS:= dev
  16. PKG_SUBPKGS:= LAME LIBMP3LAME
  17. PKGSD_LIBMP3LAME:= LAME MP3 encoding library
  18. PKGSC_LIBMP3LAME:= libs
  19. ifeq ($(ADK_STATIC),y)
  20. PKG_OPTS+= libmix
  21. endif
  22. include $(TOPDIR)/mk/package.mk
  23. $(eval $(call PKG_template,LAME,lame,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LIBMP3LAME,libmp3lame,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBMP3LAME},${PKGSC_LIBMP3LAME},${PKG_OPTS}))
  25. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  26. lame-install:
  27. $(INSTALL_DIR) $(IDIR_LAME)/usr/bin
  28. $(INSTALL_BIN) $(WRKINST)/usr/bin/lame $(IDIR_LAME)/usr/bin
  29. libmp3lame-install:
  30. $(INSTALL_DIR) $(IDIR_LIBMP3LAME)/usr/lib
  31. $(CP) $(WRKINST)/usr/lib/libmp3lame.so* $(IDIR_LIBMP3LAME)/usr/lib
  32. include ${TOPDIR}/mk/pkg-bottom.mk