Ignore:
Timestamp:
2011-10-24T09:58:26+02:00 (5 years ago)
Author:
nico
Message:

packages/ffmpeg: install dev files when any libffmeg variant is selected (closes: #10266)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/multimedia/ffmpeg/Makefile

    r28523 r28548  
    358358endef 
    359359 
    360 ifeq ($(BUILD_VARIANT),full) 
    361   define Build/InstallDev 
     360define Build/InstallDev/custom 
     361        $(INSTALL_DIR) $(1)/usr/include 
     362        $(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avformat,avutil} $(1)/usr/include/ 
     363        $(INSTALL_DIR) $(1)/usr/lib 
     364        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avformat,avutil}.{a,so*} $(1)/usr/lib/ 
     365        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
     366        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avformat,avutil}.pc $(1)/usr/lib/pkgconfig/ 
     367endef 
     368 
     369define Build/InstallDev/full 
    362370        $(INSTALL_DIR) $(1)/usr/include 
    363371        $(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale} $(1)/usr/include/ 
     
    366374        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
    367375        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.pc $(1)/usr/lib/pkgconfig/ 
    368   endef 
     376endef 
     377 
     378Build/InstallDev/mini = $(Build/InstallDev/custom) 
     379 
     380# XXX: attempt at installing "best" dev files available 
     381ifeq ($(BUILD_VARIANT),custom) 
     382  # XXX: only install "custom" dev files if -full & -mini are not selected 
     383  ifeq ($(CONFIG_PACKAGE_libffmpeg-full)$(CONFIG_PACKAGE_libffmpeg-mini),) 
     384    Build/InstallDev = $(Build/InstallDev/custom) 
     385  endif 
     386endif 
     387ifeq ($(BUILD_VARIANT),full) 
     388  # XXX: always install "full" dev files if -full is selected 
     389  Build/InstallDev = $(Build/InstallDev/full) 
     390endif 
     391ifeq ($(BUILD_VARIANT),mini) 
     392  # XXX: only install "mini" dev files if -full is not selected 
     393  ifeq ($(CONFIG_PACKAGE_libffmpeg-full),) 
     394    Build/InstallDev = $(Build/InstallDev/mini) 
     395  endif 
    369396endif 
    370397 
     
    394421endef 
    395422 
    396 define Package/libffmpeg-mini/install 
    397         $(INSTALL_DIR) $(1)/usr/lib 
    398         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avformat,avutil}.so.* $(1)/usr/lib/ 
    399 endef 
     423Package/libffmpeg-mini/install = $(Package/libffmpeg-custom/install) 
    400424 
    401425$(eval $(call BuildPackage,ffmpeg)) 
Note: See TracChangeset for help on using the changeset viewer.