yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00035
Packages for Gentoo Linux
Hi
I'm trying to make packages for Gentoo Linux. While trying this, I
encountered some problems with the current build-system and I would like
to make some suggestions. I already reported a bug in the
berlios-bugtracker about that.
a) Instead of a handwritten Makefile in the top-folder of each
package/lib/whatever, you can just put a .pro-file with the following
content:
TEMPLATE=subdirs
SUBDIRS=src/yade-lib-wm3-math
CONFIG += release thread warn_on
b) Instead of using the YADE_QMAKE_PATH, you can use a variable PREFIX
as follows (in src/yade-lib-wm3-math/yade-lib-wm3-math.pro):
isEmpty ( PREFIX ) {
PREFIX = /usr/local
}
c) ... and together with the following, you get the "install"-target in
the makefile (in src/yade-lib-wm3-math/yade-lib-wm3-math.pro),
which can again be controlled by passing INSTALL_ROOT to make.
INCLUDEPATH += $${PREFIX}/include
LIBS += -L$${PREFIX}/lib/yade
target.path += $${PREFIX}/lib/yade
headers.path += $${PREFIX}/include/yade/yade-lib-wm3-math
headers.files = $${HEADERS}
INSTALLS += target headers
d) ... and to pass additional INCLUDES and/or LIBS variables to ALL
.pro-files, you can create a ".qmake.cache" file in the top-folder of
each project or the AllInOne-package with the needed variables, which
will be passed by qmake to all subdirs.
Greets,
Tiziano
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
http://bat.berlios.de/mailman/listinfo/yade-dev
Follow ups