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
35 lines
1.3 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../djv/djv.conf |
|
# Copyright (C) 2006 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# fixing the wrong openexr, xorg locations, hardcoded paths, and collision |
|
# with djvulibre's djview |
|
|
|
djv_build() { |
|
|
|
[[ $libdir != *lib ]] && \ |
|
sed -i -e 's,$(INSTALL_PATH)/lib,$(INSTALL_PATH)/lib64,g' \ |
|
-e 's,$(INSTALL_PATH)/plugin,$(INSTALL_PATH)/lib64,g' config.mk |
|
|
|
sed -i -e 's,/usr/local/djv,'$root/$prefix',g' \ |
|
-e 's,INSTALL_PATH_SHORTCUT = /usr/bin, ,g' \ |
|
-e 's,-I$(EXR_PATH)/include/OpenEXR,`pkg-config OpenEXR --cflags`,g' \ |
|
-e 's,-L$(EXR_PATH)/lib,`pkg-config OpenEXR --libs-only-L`,g' \ |
|
-e 's,-I/usr/X11R6/include,`pkg-config x11 --cflags-only-I`,g' \ |
|
-e 's,-L/usr/X11R6/lib -lX11,`pkg-config x11 --libs`,g' config.mk |
|
} |
|
|
|
hook_add premake 3 "djv_build" |
|
|
|
var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,/usr/bin/djview,/usr/bin/djv,'" |
|
|
|
|