Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:= libvorbis
  5. PKG_VERSION:= 1.3.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6b1a36f0d72332fae5130688e65efe1f
  8. PKG_DESCR:= Vorbis General Audio Compression Codec library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libogg
  11. PKG_URL:= http://www.xiph.org/vorbis/
  12. PKG_SITES:= http://downloads.xiph.org/releases/vorbis/
  13. PKG_OPTS:= dev
  14. PKG_SUBPKGS:= LIBVORBIS LIBVORBISENC
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBVORBIS,libvorbis,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. $(eval $(call PKG_template,LIBVORBISENC,libvorbisenc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ENV+= LIBS="-lm -logg"
  19. CONFIGURE_ARGS+= --with-ogg="${STAGING_TARGET_DIR}/usr" \
  20. --with-ogg-includes="${STAGING_TARGET_DIR}/usr/include" \
  21. --with-ogg-libraries="${STAGING_TARGET_DIR}/usr/lib"
  22. libvorbis-install:
  23. ${INSTALL_DIR} ${IDIR_LIBVORBIS}/usr/lib
  24. ${CP} ${WRKINST}/usr/lib/libvorbis.so* ${IDIR_LIBVORBIS}/usr/lib
  25. ${CP} ${WRKINST}/usr/lib/libvorbisfile.so* ${IDIR_LIBVORBIS}/usr/lib
  26. libvorbisenc-install:
  27. ${INSTALL_DIR} ${IDIR_LIBVORBISENC}/usr/lib
  28. ${CP} ${WRKINST}/usr/lib/libvorbisenc.so* ${IDIR_LIBVORBISENC}/usr/lib
  29. include ${TOPDIR}/mk/pkg-bottom.mk