imlib2.mk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ################################################################################
  2. #
  3. # imlib2
  4. #
  5. ################################################################################
  6. IMLIB2_VERSION = 1.7.3
  7. IMLIB2_SOURCE = imlib2-$(IMLIB2_VERSION).tar.bz2
  8. IMLIB2_SITE = http://downloads.sourceforge.net/project/enlightenment/imlib2-src/$(IMLIB2_VERSION)
  9. IMLIB2_LICENSE = Imlib2
  10. IMLIB2_LICENSE_FILES = COPYING COPYING-PLAIN
  11. IMLIB2_CPE_ID_VENDOR = enlightenment
  12. IMLIB2_INSTALL_STAGING = YES
  13. IMLIB2_DEPENDENCIES = host-pkgconf freetype
  14. IMLIB2_CONF_OPTS = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
  15. IMLIB2_CONFIG_SCRIPTS = imlib2-config
  16. ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
  17. IMLIB2_CONF_OPTS += --with-x
  18. IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext
  19. else
  20. IMLIB2_CONF_OPTS += --without-x
  21. endif
  22. ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y)
  23. IMLIB2_CONF_OPTS += --with-jpeg
  24. IMLIB2_DEPENDENCIES += jpeg
  25. else
  26. IMLIB2_CONF_OPTS += --without-jpeg
  27. endif
  28. ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y)
  29. IMLIB2_CONF_OPTS += --with-png
  30. IMLIB2_DEPENDENCIES += libpng
  31. else
  32. IMLIB2_CONF_OPTS += --without-png
  33. endif
  34. ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y)
  35. IMLIB2_CONF_OPTS += --with-gif
  36. IMLIB2_DEPENDENCIES += giflib
  37. else
  38. IMLIB2_CONF_OPTS += --without-gif
  39. endif
  40. ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y)
  41. IMLIB2_CONF_OPTS += --with-tiff
  42. IMLIB2_DEPENDENCIES += tiff
  43. else
  44. IMLIB2_CONF_OPTS += --without-tiff
  45. endif
  46. ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y)
  47. IMLIB2_CONF_OPTS += --with-id3
  48. IMLIB2_DEPENDENCIES += libid3tag
  49. else
  50. IMLIB2_CONF_OPTS += --without-id3
  51. endif
  52. # drop -L<dir> from linker flags
  53. define IMLIB2_FIXUP_IMLIB2_CONFIG
  54. $(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
  55. endef
  56. IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
  57. $(eval $(autotools-package))