the Fink project is an effort to port
popular Unix programs to Mac OS X
Info3: <<
Package: gerbv
Version: 2.0.1
Revision: 12
Depends: <<
atk1-shlibs (>= 1.20.0-1),
cairo-shlibs (>= 1.6-1),
desktop-file-utils,
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.5-1),
glib2-shlibs (>= 2.14.0-1),
gtk+2 (>= 2.12.0-1),
gtk+2-shlibs (>= 2.12.0-1),
libgettext3-shlibs,
libiconv,
libpng3-shlibs (>= 1:1.2.16-1),
pango1-xft2-ft219 (>= 1.18.4-4),
pango1-xft2-ft219-shlibs (>= 1.18.4-4),
x11
<<
BuildDepends: <<
atk1 (>= 1.20.0-1),
cairo (>= 1.6-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.5-1),
glib2-dev (>= 2.14.0-1),
glitz,
gtk+2-dev (>= 2.12.0-1),
libgettext3-dev,
libiconv-dev,
libpng3,
pango1-xft2-ft219-dev (>= 1.18.4-4),
pixman (>= 0.10.0-1),
pkgconfig (>= 0.21-1),
x11-dev,
xft2-dev
<<
Source: mirror:sourceforge:gerbv/gerbv-%v.tar.gz
Source-MD5: 5d07934966f262dcf3ef28a6039c2157
DocFiles: <<
AUTHORS
ChangeLog
COPYING
INSTALL
NEWS
README
README-Pick-and-Place-search_parts.txt
TODO
<<
ConfigureParams: --disable-dependency-tracking --mandir=%p/share/man --enable-cairo --disable-update-desktop-database --disable-update-mime-database PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
SetLDFLAGS: -L%p/lib/pango-ft219/lib -L%p/lib/freetype219/lib -L%p/lib/fontconfig2/lib
InstallScript: <<
make install DESTDIR=%d
install -d -m 755 %i/share/doc/%n
cp -pr doc/* example %i/share/doc/%n
rm %i/share/doc/%n/Makefile* %i/share/doc/%n/*/Makefile* %i/share/doc/%n/*/*/Makefile*
<<
PostInstScript: <<
[ -x %p/bin/update-desktop-database ] && update-desktop-database -q || :
<<
PostRmScript: <<
[ -x %p/bin/update-desktop-database ] && update-desktop-database -q || :
<<
Description: Gerber (RS-274X) CAM file viewing tool
DescDetail: <<
Gerber Viewer (gerbv) is a viewer for Gerber files. Gerber files
are generated from PCB CAD systems and sent to PCB manufacturers
as a basis for the manufacturing process.
gerbv now uses GTK+2 exclusively.
gerbv includes a scheme interpreter, which enables support for "project files"
to provide default settings every time the viewer is invoked.
If you have an RS-274D file, you need to convert it to RS-274X before viewing
it with gerbv. (Fortunately, almost all PCB layout programs output RS-274X
nowadays.)
<<
DescPackaging: <<
$LastChangedRevision: 483 $ in my local SVN repository.
<<
License: GPL
Homepage: http://gerbv.sourceforge.net/
Maintainer: Charles Lepple
<<
diff -aur gerbv-1.0.1.orig/src/draw_amacro.c gerbv-1.0.1/src/draw_amacro.c
--- gerbv-1.0.1.orig/src/draw_amacro.c 2005-02-15 16:46:01.000000000 -0500
+++ gerbv-1.0.1/src/draw_amacro.c 2005-05-18 21:15:05.000000000 -0400
@@ -48,21 +48,21 @@
typedef struct {
double *stack;
int sp;
-} stack_t;
+} stack_th;
-static stack_t *
+static stack_th *
new_stack(unsigned int nuf_push)
{
const int extra_stack_size = 10;
- stack_t *s;
+ stack_th *s;
- s = (stack_t *)malloc(sizeof(stack_t));
+ s = (stack_th *)malloc(sizeof(stack_th));
if (!s) {
free(s);
return NULL;
}
- memset(s, 0, sizeof(stack_t));
+ memset(s, 0, sizeof(stack_th));
s->stack = (double *)malloc(sizeof(double) * (nuf_push + extra_stack_size));
if (!s->stack) {
@@ -78,7 +78,7 @@
static void
-free_stack(stack_t *s)
+free_stack(stack_th *s)
{
if (s && s->stack)
free(s->stack);
@@ -91,7 +91,7 @@
static void
-push(stack_t *s, double val)
+push(stack_th *s, double val)
{
s->stack[s->sp++] = val;
return;
@@ -99,7 +99,7 @@
static double
-pop(stack_t *s)
+pop(stack_th *s)
{
return s->stack[--s->sp];
} /* pop */
@@ -140,7 +140,7 @@
* Doesn't handle explicit x,y yet
*/
static void
-gerbv_draw_prim1(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim1(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int exposure_idx = 0;
@@ -185,7 +185,7 @@
* - how thick is the outline?
*/
static void
-gerbv_draw_prim4(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim4(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int exposure_idx = 0;
@@ -252,7 +252,7 @@
* Doesn't handle explicit x,y yet
*/
static void
-gerbv_draw_prim5(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim5(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int exposure_idx = 0;
@@ -308,7 +308,7 @@
* center of line of circle?
*/
static void
-gerbv_draw_prim6(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim6(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int outside_dia_idx = 2;
@@ -385,7 +385,7 @@
static void
-gerbv_draw_prim7(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim7(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int outside_dia_idx = 2;
@@ -459,7 +459,7 @@
* Doesn't handle and explicit x,y yet
*/
static void
-gerbv_draw_prim20(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim20(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int exposure_idx = 0;
@@ -514,7 +514,7 @@
* Doesn't handle explicit x,y yet
*/
static void
-gerbv_draw_prim21(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim21(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int exposure_idx = 0;
@@ -569,7 +569,7 @@
* Doesn't handle explicit x,y yet
*/
static void
-gerbv_draw_prim22(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale,
+gerbv_draw_prim22(GdkPixmap *pixmap, GdkGC *gc, stack_th *s, int scale,
gint x, gint y)
{
const int exposure_idx = 0;
@@ -627,7 +627,7 @@
instruction_t *program, unsigned int nuf_push,
double *parameters, int scale, gint x, gint y)
{
- stack_t *s = new_stack(nuf_push);
+ stack_th *s = new_stack(nuf_push);
instruction_t *ip;
int handled = 1;
Info3: <<
Package: gerbv
Version: 2.0.1
Revision: 12
Depends: <<
atk1-shlibs (>= 1.20.0-1),
cairo-shlibs (>= 1.6-1),
desktop-file-utils,
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.5-1),
glib2-shlibs (>= 2.14.0-1),
gtk+2 (>= 2.12.0-1),
gtk+2-shlibs (>= 2.12.0-1),
libgettext3-shlibs,
libiconv,
libpng3-shlibs (>= 1:1.2.16-1),
pango1-xft2-ft219 (>= 1.18.4-4),
pango1-xft2-ft219-shlibs (>= 1.18.4-4),
x11
<<
BuildDepends: <<
atk1 (>= 1.20.0-1),
cairo (>= 1.6-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.5-1),
glib2-dev (>= 2.14.0-1),
glitz,
gtk+2-dev (>= 2.12.0-1),
libgettext3-dev,
libiconv-dev,
libpng3,
pango1-xft2-ft219-dev (>= 1.18.4-4),
pixman (>= 0.10.0-1),
pkgconfig (>= 0.21-1),
x11-dev,
xft2-dev
<<
Source: mirror:sourceforge:gerbv/gerbv-%v.tar.gz
Source-MD5: 5d07934966f262dcf3ef28a6039c2157
DocFiles: <<
AUTHORS
ChangeLog
COPYING
INSTALL
NEWS
README
README-Pick-and-Place-search_parts.txt
TODO
<<
ConfigureParams: --disable-dependency-tracking --mandir=%p/share/man --enable-cairo --disable-update-desktop-database --disable-update-mime-database PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
SetLDFLAGS: -L%p/lib/pango-ft219/lib -L%p/lib/freetype219/lib -L%p/lib/fontconfig2/lib
InstallScript: <<
make install DESTDIR=%d
install -d -m 755 %i/share/doc/%n
cp -pr doc/* example %i/share/doc/%n
rm %i/share/doc/%n/Makefile* %i/share/doc/%n/*/Makefile* %i/share/doc/%n/*/*/Makefile*
<<
PostInstScript: <<
[ -x %p/bin/update-desktop-database ] && update-desktop-database -q || :
<<
PostRmScript: <<
[ -x %p/bin/update-desktop-database ] && update-desktop-database -q || :
<<
Description: Gerber (RS-274X) CAM file viewing tool
DescDetail: <<
Gerber Viewer (gerbv) is a viewer for Gerber files. Gerber files
are generated from PCB CAD systems and sent to PCB manufacturers
as a basis for the manufacturing process.
gerbv now uses GTK+2 exclusively.
gerbv includes a scheme interpreter, which enables support for "project files"
to provide default settings every time the viewer is invoked.
If you have an RS-274D file, you need to convert it to RS-274X before viewing
it with gerbv. (Fortunately, almost all PCB layout programs output RS-274X
nowadays.)
<<
DescPackaging: <<
$LastChangedRevision: 483 $ in my local SVN repository.
<<
License: GPL
Homepage: http://gerbv.sourceforge.net/
Maintainer: Charles Lepple
<<