OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../djv/djv.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # fixing the wrong openexr, xorg locations, hardcoded paths, and collision
  15. # with djvulibre's djview
  16. djv_build() {
  17. [[ $libdir != *lib ]] && \
  18. sed -i -e 's,$(INSTALL_PATH)/lib,$(INSTALL_PATH)/lib64,g' \
  19. -e 's,$(INSTALL_PATH)/plugin,$(INSTALL_PATH)/lib64,g' config.mk
  20. sed -i -e 's,/usr/local/djv,'$root/$prefix',g' \
  21. -e 's,INSTALL_PATH_SHORTCUT = /usr/bin, ,g' \
  22. -e 's,-I$(EXR_PATH)/include/OpenEXR,`pkg-config OpenEXR --cflags`,g' \
  23. -e 's,-L$(EXR_PATH)/lib,`pkg-config OpenEXR --libs-only-L`,g' \
  24. -e 's,-I/usr/X11R6/include,`pkg-config x11 --cflags-only-I`,g' \
  25. -e 's,-L/usr/X11R6/lib -lX11,`pkg-config x11 --libs`,g' config.mk
  26. }
  27. hook_add premake 3 "djv_build"
  28. var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,/usr/bin/djview,/usr/bin/djv,'"