CTAN masthead graphic CTAN lion sketch

Directory: CTAN home / tex-archive/ support/ bmeps/ contrib/ netpbm

Subdirectories of this one

There are no subdirectories here.

Files in this directory

NameDateSize Description
dll.mak 2006-11-23 1 Kbyte download
netpbm.def 2006-11-23 2 Kbyte download
readme.txt 2006-11-23 924 bytes download Shown below
static.mak 2006-11-23 1 Kbyte download

Contents of the readme.txt file


- Change into the lib subdirectory

- copy all the files from the util subdirectory to the lib directory

- add the following code to shhopt.c:

char *rindex(char *s, int c)
{
   char *back = NULL;
   char *ptr;
   ptr = s;
   while(*ptr) {
    if(*ptr == c) {
     back = ptr;
    }
    ptr++;
   }
   return back;
}

- add the following code to libpm.c:

#include <io.h>
#include <process.h>
#include <stdlib.h>

static int S_ISREG(int m)
{
  int back = 0;
  if((m & _S_IFMT) == _S_IFREG) {
    back = 1;
  }
  return back;
}

- Remove all "#include <compile.h>" and "#include <unistd.h>"
  from headers in the lib subdirectory and in the netpbm main
  directory.

- Now make netpbm.lib using either dll.mak or static.mak

- Copy the *.h, *.lib and *.dll files to the appropriate target
  directories. Do not forget to copy the *.h files from the
  netpbm main directory too.

Small print: This listing is regenerated periodically so there is a small chance that the directory has changed from what is shown here; to be sure, check the FTP listing.