cleanups and fixes for libsamplerate and libsndfile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@9516 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-11-08 21:31:59 +00:00
parent 26ce1ccb19
commit 2565c0e9e7
3 changed files with 15986 additions and 16 deletions

View File

@ -37,20 +37,17 @@ define Build/Configure
$(call Build/Configure/Default, \ $(call Build/Configure/Default, \
--disable-fftw \ --disable-fftw \
) )
$(call libtool_disable_rpath)
endef endef
define Build/Compile define Build/Compile
$(call Build/Compile/Default,\ $(MAKE) -C $(PKG_BUILD_DIR) all
DESTDIR="$(PKG_INSTALL_DIR)" \ $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
all install \ $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
)
endef endef
define Build/InstallDev define Build/InstallDev
mkdir -p $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/* $(1)/
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
mkdir -p $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.* $(1)/usr/lib/
endef endef
define Build/UninstallDev define Build/UninstallDev

File diff suppressed because it is too large Load Diff

View File

@ -37,16 +37,21 @@ CONFIGURE_ARGS += \
--disable-flac --disable-flac
MAKE_FLAGS += \ MAKE_FLAGS += \
DESTDIR="$(PKG_INSTALL_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)"
all install
define Build/Configure
$(call Build/Configure/Default)
$(call libtool_disable_rpath)
endef
define Build/Compile
$(call Build/Compile/Default,all)
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
$(call Build/Compile/Default,install)
endef
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/* $(1)/
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sndfile.pc $(1)/usr/lib/pkgconfig/
endef endef
define Build/UninstallDev define Build/UninstallDev