You are not logged in.

#1 2003-08-01 14:13:43

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

hey ... a question for the power-builders

i started making packages for my archlinux-machine this week .. with some success (see http://bbs.archlinux.org/viewtopic.php?t=877 ) ... but also with some problems:

what do you do when there is no $prefix or $DESTDIR or any simmilar method to change destination of creation? ->there are a lot of nice things where the makefile is a great mess ... what do you do in such a case?

(what i did in one package that worked once: in the build-function i wrote:

export SomeCrazyVarsInMakefile=$startdir[...]
make -e [...]

--> but i think this method is not a nice one to use every time for this problem
)

Do you
-> create a new makefile?
-> write messy build-functions for makepkg? (as i tried)
-> download the source to local and change it to suit makepkg and build it locally (BIG DISADVANTAGE --- not really abs-like)?

the things i wanted to build:
-RasMol : http://www.openrasmol.org/
-Visualization Toolkit : http://www.vtk.org/ (the requied cmake i already built and posted in incoming, if you want to try)
-and some others

what do you (power-builders of Archlinux) do in such cases?

thanx in advance

dp


The impossible missions are the only ones which succeed.

Offline

#2 2003-08-01 14:34:51

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: hey ... a question for the power-builders

if you have to change a few lines in certain files, you can use sed.  Otherwise your best bet is to probably patch the source.  Both methods are employed currently in packages and examples will be easy to find.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB