Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.2.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 478646358c49f34aedcce58948793619
  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_SUBPKGS:= LIBVORBIS LIBVORBISENC LIBVORBIS_DEV
  14. PKGSD_LIBVORBIS_DEV:= development files for libvorbis
  15. PKGSC_LIBVORBIS_DEV:= devel
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBVORBIS,libvorbis,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,LIBVORBISENC,libvorbisenc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBVORBIS_DEV,libvorbis-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBVORBIS_DEV},${PKGSC_LIBVORBIS_DEV}))
  20. CONFIGURE_ENV+= LIBS="-lm -logg"
  21. CONFIGURE_ARGS+= --with-ogg="${STAGING_TARGET_DIR}/usr" \
  22. --with-ogg-includes="${STAGING_TARGET_DIR}/usr/include" \
  23. --with-ogg-libraries="${STAGING_TARGET_DIR}/usr/lib"
  24. libvorbis-install:
  25. ${INSTALL_DIR} ${IDIR_LIBVORBIS}/usr/lib
  26. ${CP} ${WRKINST}/usr/lib/libvorbis.so* ${IDIR_LIBVORBIS}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libvorbisfile.so* ${IDIR_LIBVORBIS}/usr/lib
  28. libvorbisenc-install:
  29. ${INSTALL_DIR} ${IDIR_LIBVORBISENC}/usr/lib
  30. ${CP} ${WRKINST}/usr/lib/libvorbisenc.so* ${IDIR_LIBVORBISENC}/usr/lib
  31. libvorbis-dev-install:
  32. ${INSTALL_DIR} ${IDIR_LIBVORBIS_DEV}/usr/include/vorbis
  33. ${CP} ${WRKINST}/usr/include/vorbis/*.h ${IDIR_LIBVORBIS_DEV}/usr/include/vorbis
  34. include ${TOPDIR}/mk/pkg-bottom.mk