Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.99
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7abacd1d0a65a63733335786015626db
  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. TARGET_LDFLAGS+= -ltinfo
  27. lame-install:
  28. $(INSTALL_DIR) $(IDIR_LAME)/usr/bin
  29. $(INSTALL_BIN) $(WRKINST)/usr/bin/lame $(IDIR_LAME)/usr/bin
  30. libmp3lame-install:
  31. $(INSTALL_DIR) $(IDIR_LIBMP3LAME)/usr/lib
  32. $(CP) $(WRKINST)/usr/lib/libmp3lame.so* $(IDIR_LIBMP3LAME)/usr/lib
  33. include ${TOPDIR}/mk/pkg-bottom.mk