Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice gentoo ebuild

xdm
xdm La Coruña, Spain
Hello i writing an ebuild for instaled Ice in gentoo portage, i have a problem with Make.rules.

in Make.rules is defined a variable DB_HOME and then this is used to set DB_FLAGS and DB_LIBS like this
ifneq($(DB_HOME),)
         DB_FLAGS = -I$(DB_HOME)/include
         DB_LIBS = -Ñ$(DB_HOME)/lib
else
         DB_FLAGS = -I$(DB_HOME)/include
         DB_LIBS = -Ñ$(DB_HOME)/lib
endif


my problem is that gentoo db default instalation installs

include files under /usr/include

and libs under /usr/db-$(db_version)/lib


normaly when I install gentoo manualy i create a dumy dir /opt/db
and in this directory i create include and lib links to de current db version installed in gentoo portage. I want now if i can solve this compilation problen whitout need to create the dumy dir and simple exports the DB_FLAGS and DB_LIBS before runing Make


but i dont know how to do this in a way that Make.rules dont overwrite my variables

Comments