Thank you to all the people who answered me about creating a .patch file.
I would enjoy to help the community by porting some software; but now I am still learning ;-)


The software I am trying to port is bsvc (a Motorola 68000 simulator & assembler).

I managed to patch and compile it and I have also started to write .info and .patch files.

The software uses simple makefiles (not automake) and I had to create a makefile for Mac OS X (diff should have added it into the .patch, right?).

I had also to change some settings in the common makefile, but I am not sure how to do this.
I explain: there is a PROJECT_BASE environment variable to set in this file. But I cannot set it here, because only fink know this information.


So I thought I had to define it in the .info file using %b expansion:

SetPROJECT_BASE: %b

But "fink validate" does not like this :-(
How can I define an environment variable in the .info file?

Another question is about documentation.
Is "DocFiles:" sufficient to automatically copy documentation files to %i/share/doc/%n?
Is there a way to recursively add the content of a doc folder (with something like doc/*)?


And finally, I have put .info and .patch files in /sw/fink/dists/local/main to test them. But "fink install" tells me "Failed: no package found for specification 'bsvc'!"
II run "fink scanpackages" but It does not change anything...
How to manually add a package to test it? (I would like to test the whole procedure, downloading sources included)


Here is the .info file, can you tell me if something is wrong or missing?

## Package information
Package: bsvc
Version: 2.1
Revision: 1
Description: Motorola 68000 simulator & assembler
License: Restrictive/Distributable
Maintainer: Pierre Mazoyer <[EMAIL PROTECTED]>

## Dependencies
Depends: tcltk (>= 8.0), tcltk-dev (>= 8.0), tcltk-shlibs (>= 8.0)

## Unpack Phase
Source: ftp://ftp.redlinelabs.com/pub/bsvc/%n-%v-src.tar.gz
Source-MD5: d6ea564a0fc73fe96a16b503c811d865

## Patch Phase
Patch: %f.patch

## Compile Phase
SetPROJECT_BASE: %b

CompileScript:
  make -f src/Makefile.MacOSX all

## Install Phase
InstallScript:
  make -f src/Makefile.MacOSX install

DocFiles: Announce.doc Changes.doc License.doc MailList.doc Projects.doc Sim68000.doc Sim68360.doc Unix.doc Windows.doc doc/*

## Additional information
Homepage: http://www.redlinelabs.com/bsvc/

DescDetail: <<
BSVC is a microprocessor simulation framework written in C++ and Tcl/Tk.
The BSVC distribution contains the following:
- Motorola 68000 simulator & assembler (Supports the M68681 Dual UART and Timer)
- Motorola 68360 simulator (CPU32 like simulator)
- BSVC Graphical User Interface (written in Tcl/Tk)
- BSVC Simulator Framework (C++ classes)


Copyright © 1996 - 2001 by Bradford W. Mott
<<

DescUsage: <<
Use 68kasm to assemble your source file.
Usage: 68kasm [-clna] infile.ext
Options: -c  Show full constant expansions for DC directives
         -l  Produce listing file (infile.lis)
         -n  Produce NO object file (infile.h68)
         -a  Produce long word absolute addresses only (infile.h68)

Run bsvc to simulate your program.

Check http://www.redlinelabs.com/bsvc/ for more information.
<<

Thank you again for your help.

Pierre


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to