geda-pcb/pcjc2/v2.git
5 years agoBentley-Ottann test implementationbentley_ottmann_intersect/bentley-ottann-test-implementa
Peter Clifton [Mon, 27 Feb 2017 23:13:01 +0000 (27 23:13 +0000)]
Bentley-Ottann test implementation

5 years agoRevert "We can just delete kicked out holes"polygon_speeduppolygon_speedup/revert-we-can-just-delete-kick
Peter Clifton [Mon, 27 Feb 2017 23:13:01 +0000 (27 23:13 +0000)]
Revert "We can just delete kicked out holes"

This reverts commit 6400e974907264b9a0524a0dbdd7dfb9eb623f8b.

We can't (although I'm not 100% sure why).

Basically, deleting a series of polygons which creates a hole
in a certain way causes problems with this commit.
 __________
|    ___   |
|   |___|  |
|__________|

These lines represent line polygons which are deleted one by one
from a larger "world" polygon in the GL version's mask rendering.

The order is such that three of the outer polygons are removed first,
leaving a mirrored C shaped hole in the world polygon:
 __________
           |
           |
 __________|

When subtracing some of the inner polygons, they are erronously
discarded with this patch applied.

5 years agoWe can just delete kicked out holespolygon_speedup/we-can-just-delete-kicked-out-
Peter Clifton [Mon, 27 Feb 2017 23:13:00 +0000 (27 23:13 +0000)]
We can just delete kicked out holes

Since we don't keep holes from broken contours, if a contour is
kicked out, we know it is destined for the bin.

5 years agoFix indentation in one place (avoids spurious gcc warning)for_masterfor_master/fix-indentation-in-a-few
Peter Clifton [Mon, 27 Feb 2017 23:12:59 +0000 (27 23:12 +0000)]
Fix indentation in one place (avoids spurious gcc warning)

5 years agoTidy up range check in misc.cfor_master/tidy-up-range-check-in-misc-c
Peter Clifton [Mon, 27 Feb 2017 23:12:59 +0000 (27 23:12 +0000)]
Tidy up range check in misc.c

For consistnecy with other range checks involving max_copper_layer, and to
drive home the fact we are checking for exceeding max_copper_layer + 2.
NB: The +2 relates to the bottom silk and top-silk layers, whose numbers
are used to denote the bottom and top layer groups respectively.

re-write:
  layer > max_copper_layer + 1

to become:
  layer >= max_copper_layer + 2

5 years agoFixup some bugs from the added soldermask layersfor_master/fixup-some-bugs-from-the-added
Peter Clifton [Mon, 27 Feb 2017 23:12:59 +0000 (27 23:12 +0000)]
Fixup some bugs from the added soldermask layers

(TODO: Finish this fixup and merge it down into the relevant patches)

5 years agodraw.c: Opencode the mask layer object drawing functionsfor_master/draw-c-opencode-the-mask-layer
Peter Clifton [Mon, 27 Feb 2017 23:12:59 +0000 (27 23:12 +0000)]
draw.c: Opencode the mask layer object drawing functions

Calling DrawLayer() did not render using the correct graphics context / colors.
NB: We're still using the "wrong" GC, but we now avoid selecting inappropriate
colors which prevent (say) PS export working correctly for mask layer objects.

5 years agoAdd support for a two soldermask layers, defining regions of removed maskfor_master/add-support-for-a-two
Peter Clifton [Mon, 27 Feb 2017 23:12:59 +0000 (27 23:12 +0000)]
Add support for a two soldermask layers, defining regions of removed mask

File-format wise, these work similarly to how silk layers are supported now:

Layer (1 to n "[NAME]")            # "ordinary" design layers
Layer (n+1 "silk")                 # bottom side silk
Layer (n+2 "silk")                 # top side silk
Layer (n+3 "bottom soldermask")    # bottom side soldermask
Layer (n+4 "top soldermask")       # top side soldermask

5 years agoAvoid hard-coding the number of extra layers in use (for 2x silkscreen)for_master/avoid-hard-coding-the-number
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
Avoid hard-coding the number of extra layers in use (for 2x silkscreen)

We will shorty add support for soldermask layers, so this will need changing

NOTE....... IF THE parse_y.y patch in the stg series before this gets
dropped, there is one more case where + 2 needs to be replaced with EXTRA_LAYERS

5 years agoFixup incorrect usage of MAX_ALL_LAYERS and SILK_LAYER in GUIfor_master/fixup-usage-of-max_all_layers
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
Fixup incorrect usage of MAX_ALL_LAYERS and SILK_LAYER in GUI

These were incorrectly changed to be relative to MAX_ALL_LAYERS, and should be
relateive to MAX_LAYERS like they used to be. This is because we are counting
extra buttons past the number of copper layers (MAX_LAYERS).

Similarly, SILK_LAYER happens to be 2.. this is NOT why there are two buttons
in the GUI after the copper buttons, one is for the current silk layer, one is
for the rats layer.

5 years agofind.c: The User varaible needs to die...for_master/find-c-the-user-varaible-needs
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
find.c: The User varaible needs to die...

Reduce its usage to where absolutely necessary... oh, what a surprise,
another variable passing state down into add_object_to_list ()

5 years agoAdd the drc flag as a parameterfor_master/add-the-drc-global-as-a-parame
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
Add the drc flag as a parameter

Ok, this is nasty.. I'm obscuring setting of the global varaible... be careful!

5 years agoAdd the bloat as a parameterfor_master/add-the-bloat-as-a-parameter
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
Add the bloat as a parameter

Ok, this is nasty.. I'm obscuring setting of the global varaible... be careful!

5 years agofind.c: Refactor some common sequences into a helper functionfor_master/find-c-refactor-some-common-se
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
find.c: Refactor some common sequences into a helper function

5 years agoparse_y.y: Try to avoid two shift/reduce and reduce/reduce warningsfor_master/try-to-avoid-warnings-from
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
parse_y.y: Try to avoid two shift/reduce and reduce/reduce warnings

TODO: Check this matches up against our expected behavior.

Removing the parsedata section ("I think") has no effect, as elements
hit the alternative | element clause within parsepcb.

HOWEVER... I need to check whether there is any other valid syntax
inside an element file, or any backwards compatibility with old formats
which we may miss with the loss of parsedata.

5 years agoPlay with grid snapping heuristics a littlefor_master/play-with-grid-snapping
Peter Clifton [Mon, 27 Feb 2017 23:12:58 +0000 (27 23:12 +0000)]
Play with grid snapping heuristics a little

Require the pointer to be inside the bounding box of a pin / pad / via before snapping.
This makse it MUCH easier to place vias in a regular grid spaced at the PCB grid spacing.

5 years agoAdd hysteresis to grid-snappingfor_master/add-hysteresis-to-grid
Peter Clifton [Mon, 27 Feb 2017 23:12:57 +0000 (27 23:12 +0000)]
Add hysteresis to grid-snapping

5 years agoRemove graphics pointer from HID structureapi_refactorapi_refactor/remove-graphics-pointer-from
Peter Clifton [Thu, 7 Jan 2016 02:18:59 +0000 (7 02:18 +0000)]
Remove graphics pointer from HID structure

5 years agoPass a HID_DRAW * instance to hid_expose_callback() rather than a HID * pointerapi_refactor/pass-a-hid_draw_instance_to_hi
Peter Clifton [Thu, 7 Jan 2016 02:18:59 +0000 (7 02:18 +0000)]
Pass a HID_DRAW * instance to hid_expose_callback() rather than a HID * pointer

Drawing should eventually be independent of the HID

5 years agoFixup draw.c not to special case based on HID name, use flags insteadapi_refactor/fixup-draw-c-not-to-special
Peter Clifton [Thu, 7 Jan 2016 02:18:59 +0000 (7 02:18 +0000)]
Fixup draw.c not to special case based on HID name, use flags instead

5 years agohidgl: Provide more explicit management of rendering instancesapi_refactor/hidgl-provide-more-explicit-ma
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
hidgl: Provide more explicit management of rendering instances

Provide an (hidgl_instance *) pointer which is used to refer to a hidgl
instance when caling hidgl_* APIs that are instance, but not hidGC specific.

Various hidgl APIs now take the hidgl_instance as a parameter, or in the case
of hidgl_new_instance(), return a new instance.

Graphics APIs which previously had a hidGC parameter remain the same, as the
hidglGC structure now contains a link to the hidgl instance which created it.

This change paves the way to potentially having multiple hidgl instances active
simultaneously, and removes various global variables (such as "buffer" and
"global_depth") which were previously accessible to allow the gtk-gl HID to
draw using the hidgl internals.

The gtk-gl HID_DRAW graphics API now subclasses the hidgl HID_DRAW API, so the
gtk-gl HID can access the (non-private) gtk_gc->hidgl_gc.* fields.

5 years agoTEMP: Fixup fallout from nogui changeapi_refactor/temp-fixup-fallout-from-nogui
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
TEMP: Fixup fallout from nogui change

*** Might be nicer to just implement a no-op end_layer function for each HID_DRAW?

5 years agoMove some fields from the HID* structure to HID_DRAW* and HID_DRAW_CLASS*api_refactor/move-some-fields-from-the-hid
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
Move some fields from the HID* structure to HID_DRAW* and HID_DRAW_CLASS*

The parameters gui, poly_before, poly_after only effect rendering, so
belong in either the HID_DRAW_CLASS or HID_DRAW instance structure.

The set_layer() and end_layer() APIs also belong in the HID_DRAW_CLASS

We leave a copy of the "gui" flag in the HID structure, as main.c uses
this to count up each type of exporter.

XXX: THIS BREAKS SOME EXPORERS WHICH RELY ON THE NO-OP end_layer function
previously initialised in common_nogui_init()

5 years agomain.c: Initialise crosshair unconditionallyapi_refactor/main-c-initialise-crosshair
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
main.c: Initialise crosshair unconditionally

Since we no longer generate graphics contexts from InitCrosshair(),
there is no need to check gui->gui before calling it.

5 years agoMake HID_DRAW * an instance of the HID_DRAW class, not the API vfunc tableapi_refactor/make-hid_draw-an-instance-of
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
Make HID_DRAW * an instance of the HID_DRAW class, not the API vfunc table

This allows us to store per-instance parameters in a clean structure.

5 years agoUse calling wrappers rather than accessing HID_DRAW* vfunc tables directlyapi_refactor/use-calling-wrappers-rather
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
Use calling wrappers rather than accessing HID_DRAW* vfunc tables directly

5 years agoAdd calling wrappers for HID_DRAW virtual functionsapi_refactor/add-calling-wrappers-for
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
Add calling wrappers for HID_DRAW virtual functions

NB: hid_draw_make_gc() and hid_draw_use_mask() take a HID_DRAW * pointer,
    not a hidGC pointer like all the other hid_draw_*() functions..

Ugly inconsistency, but avoids making the change too disruptive.

5 years agoAdd a pointer in hid_gc_struct to link a gc and the relevant HID_DRAW vfunc tableapi_refactor/add-a-pointer-in-hid_gc_struct
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
Add a pointer in hid_gc_struct to link a gc and the relevant HID_DRAW vfunc table

5 years agoRename hidGC "me_pointer" to "hid"api_refactor/rename-hidgc-me_pointer-to-hid
Peter Clifton [Thu, 7 Jan 2016 02:18:58 +0000 (7 02:18 +0000)]
Rename hidGC "me_pointer" to "hid"

The pointer provides a link between a HID specific graphics context and HID
in question, name it accordingly.

5 years agoExpose a base hidGC structure for HIDs to inherit from.api_refactor/expose-a-base-hidgc-structure
Peter Clifton [Sun, 26 Feb 2017 18:03:53 +0000 (26 18:03 +0000)]
Expose a base hidGC structure for HIDs to inherit from.

Have each HID inherit from a common base structure, which will later allow us
to store enough reference to the HID / HID_DRAW code owning the hidGC to
wrap up the API calls (rather than calling directly into the vfunc table).

5 years agoAdd comment to VIA_IS_BURIEDbbvias_fixesbbvias_fixes/add-comment-to-via_is_burried
Peter Clifton [Sun, 26 Feb 2017 18:03:30 +0000 (26 18:03 +0000)]
Add comment to VIA_IS_BURIED

5 years agoValidate and swap from/to layers in action, not CreateViaExbbvias_fixes/validate-and-swap-from-to
Peter Clifton [Sun, 26 Feb 2017 18:03:30 +0000 (26 18:03 +0000)]
Validate and swap from/to layers in action, not CreateViaEx

5 years agoremove an extra empty attribute which is not needed and causes warnings in the mounti...
Dan McMahill [Sun, 26 Feb 2017 00:13:28 +0000 (25 19:13 -0500)]
remove an extra empty attribute which is not needed and causes warnings in the mounting hole macro

5 years agofix problem in some possible invocations of the generic mounting hole macro. All...
Dan McMahill [Sat, 25 Feb 2017 20:19:23 +0000 (25 15:19 -0500)]
fix problem in some possible invocations of the generic mounting hole macro.  All footprints pass syntax checks again.

5 years agoadd two missing files to the list of what to clean
Dan McMahill [Sat, 25 Feb 2017 20:11:37 +0000 (25 15:11 -0500)]
add two missing files to the list of what to clean

5 years agoMerge branch 'home/dan/old_gdlib'
Dan McMahill [Sat, 25 Feb 2017 17:38:11 +0000 (25 12:38 -0500)]
Merge branch 'home/dan/old_gdlib'

This repairs building on systems with older gdlib instllations which
do not include the pkg-config setup file and may have a slightly
broken gdlib-config.  This includes Ubuntu Precise.  Thanks to
Eugene Mikhantiev for reporting this and testing the fix.  On
most newer systems this change is a no-op.

5 years agoadd some notes about m4 library development
Dan McMahill [Sat, 25 Feb 2017 17:35:58 +0000 (25 12:35 -0500)]
add some notes about m4 library development

5 years agoAdd PKG_MTHOLE_GENERIC macro for fairly generic mounting holes. Use
Dan McMahill [Sat, 25 Feb 2017 17:24:03 +0000 (25 12:24 -0500)]
Add PKG_MTHOLE_GENERIC macro for fairly generic mounting holes.  Use
this to define IPC mounting holes for #4 and #6 machine screws with pan
heads or flat washers for both "tight" (board < 4") and "loose" (board > 4")
fits.

Add TO-263 footprint.

5 years agoadd DO-41 diode package, horizontally mounted
Dan McMahill [Sat, 25 Feb 2017 17:12:29 +0000 (25 12:12 -0500)]
add DO-41 diode package, horizontally mounted

5 years agoAdd some IPC radial capacitor footprints and use those to create
Dan McMahill [Sat, 25 Feb 2017 17:10:27 +0000 (25 12:10 -0500)]
Add some IPC radial capacitor footprints and use those to create
some united chemicon footprints.

5 years agoadd PKG_RADIAL_MM100 macro for doing more general metric 2 pin radial packages
Dan McMahill [Sat, 25 Feb 2017 17:06:20 +0000 (25 12:06 -0500)]
add PKG_RADIAL_MM100 macro for doing more general metric 2 pin radial packages

5 years agoAllow _ in the TYPE lines. Verified with a complete pcblib-newlib
Dan McMahill [Sat, 25 Feb 2017 17:04:56 +0000 (25 12:04 -0500)]
Allow _ in the TYPE lines.  Verified with a complete pcblib-newlib
build.  This lets a category like united_chemicon keep the _ instead
of converting to a space.

5 years agofor the horizontally mounted axial macro add the missing bits for marking polarity...
Dan McMahill [Sat, 25 Feb 2017 17:02:48 +0000 (25 12:02 -0500)]
for the horizontally mounted axial macro add the missing bits for marking polarity on parts like diodes

5 years agoremove spurious . at the start of the file
Dan McMahill [Sat, 25 Feb 2017 17:01:43 +0000 (25 12:01 -0500)]
remove spurious . at the start of the file

5 years agogen_geda_*.awk were nearly identical to gen_*.awk so add 2 lines
Dan McMahill [Wed, 22 Feb 2017 23:46:49 +0000 (22 18:46 -0500)]
gen_geda_*.awk were nearly identical to gen_*.awk so add 2 lines
to geda.inc so we can use the same script for everything.  Verified
that pcblib-newlib builds with identical results before/after.

5 years agoadd toko category and the 7P variable inductors
Dan McMahill [Wed, 22 Feb 2017 23:40:53 +0000 (22 18:40 -0500)]
add toko category and the 7P variable inductors

5 years agoAdd macro with more programmability for 2 pin axial components.
Dan McMahill [Wed, 22 Feb 2017 06:19:11 +0000 (22 01:19 -0500)]
Add macro with more programmability for 2 pin axial components.
Use this to add a few IPC-7251 compliant footprints for
axial inductors, horizontally mounted.  Use this in turn for the
TDK B82145A RF chokes family.

5 years agoSome older gdlib-config's in the wild (Ubuntu precise for example)
Dan McMahill [Wed, 22 Feb 2017 03:48:00 +0000 (21 22:48 -0500)]
Some older gdlib-config's in the wild (Ubuntu precise for example)
forget to add "-lgd" so check for this.

5 years agoAdd blind/buried via feature commands to the Lesstif pull down menu.
bert [Mon, 20 Feb 2017 19:00:37 +0000 (20 20:00 +0100)]
Add blind/buried via feature commands to the Lesstif pull down menu.

Reviewed-by: DJ Delorie <dj@delorie.com>
Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdded missing input file to EXTRA_DIST
Charles Parker [Sat, 11 Feb 2017 20:40:26 +0000 (11 15:40 -0500)]
Added missing input file to EXTRA_DIST

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoIPC-D-356: added a regression test.
bert [Fri, 3 Feb 2017 19:45:49 +0000 (3 20:45 +0100)]
IPC-D-356: added a regression test.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoStrip the number of commits from the version string and get rid of the dirty tag
Charles Parker [Fri, 17 Feb 2017 02:10:06 +0000 (16 21:10 -0500)]
Strip the number of commits from the version string and get rid of the dirty tag

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoBump the pcb file version to 20170218.
bert [Sat, 18 Feb 2017 19:37:50 +0000 (18 20:37 +0100)]
Bump the pcb file version to 20170218.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdded input and golden files to EXTRA_DIST.
bert [Thu, 16 Feb 2017 21:16:59 +0000 (16 22:16 +0100)]
Added input and golden files to EXTRA_DIST.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoBuried vias
Milan Prochac [Fri, 29 Jul 2016 20:15:46 +0000 (29 22:15 +0200)]
Buried vias

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFix for gcode dimensions
Milan Prochac [Thu, 16 Feb 2017 19:20:57 +0000 (16 20:20 +0100)]
Fix for gcode dimensions

Reviewed-by: Peter Clifton <Peter.Clifton@clifton-electronics.co.uk>
Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoCorrection in renumber initialisation.
bert [Sat, 11 Feb 2017 18:30:21 +0000 (11 19:30 +0100)]
Correction in renumber initialisation.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoRemove the antifork abomination.
bert [Mon, 13 Feb 2017 20:10:33 +0000 (13 21:10 +0100)]
Remove the antifork abomination.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdded comments
Charles Parker [Thu, 9 Feb 2017 13:53:05 +0000 (9 08:53 -0500)]
Added comments

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoWhitespace changes for conciseness and readability
Charles Parker [Fri, 10 Feb 2017 14:16:50 +0000 (10 09:16 -0500)]
Whitespace changes for conciseness and readability

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdded comments to grid drawing routine for the lesstif canvas
Charles Parker [Fri, 10 Feb 2017 14:13:52 +0000 (10 09:13 -0500)]
Added comments to grid drawing routine for the lesstif canvas

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoWhitespace changes for conciseness and readability
Charles Parker [Fri, 10 Feb 2017 14:08:27 +0000 (10 09:08 -0500)]
Whitespace changes for conciseness and readability

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdd comments to the grid drawing routine for the gdk canvas
Charles Parker [Fri, 10 Feb 2017 14:03:38 +0000 (10 09:03 -0500)]
Add comments to the grid drawing routine for the gdk canvas

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdd comments to grid drawing routine for GL canvas
Charles Parker [Fri, 10 Feb 2017 13:54:29 +0000 (10 08:54 -0500)]
Add comments to grid drawing routine for GL canvas

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoIf compile warnings in edif.y when DEBUG is defined.
Charles Parker [Tue, 24 Jan 2017 18:23:45 +0000 (24 13:23 -0500)]
If compile warnings in edif.y when DEBUG is defined.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFix compile warning in copy.c when DEBUG is defined.
Charles Parker [Tue, 24 Jan 2017 17:59:50 +0000 (24 12:59 -0500)]
Fix compile warning in copy.c when DEBUG is defined.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFix compile warnings in action.c when DEBUG is defined.
Charles Parker [Tue, 24 Jan 2017 17:57:33 +0000 (24 12:57 -0500)]
Fix compile warnings in action.c when DEBUG is defined.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoRemoved unused functions and variables generating compile warnings
Charles Parker [Sun, 12 Feb 2017 17:19:33 +0000 (12 12:19 -0500)]
Removed unused functions and variables generating compile warnings

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFix GTS compile error, and warnings due to missing include.
Charles Parker [Tue, 24 Jan 2017 17:24:15 +0000 (24 12:24 -0500)]
Fix GTS compile error, and warnings due to missing include.

The compile error was the result of a function defined inside another
function. The warnings were from the missing include.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agochange from AC_FD_CC to AS_MESSAGE_LOG_FD, noted by Bert
Dan McMahill [Thu, 9 Feb 2017 01:35:17 +0000 (8 20:35 -0500)]
change from AC_FD_CC to AS_MESSAGE_LOG_FD, noted by Bert

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agomstctxt (message context) is not supported by all versions of msgfmt
Dan McMahill [Tue, 7 Feb 2017 21:57:59 +0000 (7 16:57 -0500)]
mstctxt (message context) is not supported by all versions of msgfmt
so check at configure time to make sure we have a tool that will work
instead of waiting until well into the build for failure.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoEugene Mikhantiev noted that Ubuntu precise does not include
Dan McMahill [Wed, 8 Feb 2017 23:49:41 +0000 (8 18:49 -0500)]
Eugene Mikhantiev noted that Ubuntu precise does not include
the gdlib.pc file and still relies on gdlib-config.  Put code in
that tries gdlib-config if pkg-config can't find gdlib.

5 years agomatch() with 3 arguments is a gawk extension. Rework the code to avoid
Dan McMahill [Tue, 7 Feb 2017 11:57:24 +0000 (7 06:57 -0500)]
match() with 3 arguments is a gawk extension.  Rework the code to avoid
using a 3 argument call to match() in one spot.  Lets the script run
with gawk or NetBSD's awk (20121220).  Verified that the generated result
is identical to the previous gawk result using both gawk and NetBSDs awk.

5 years agoIn the test suite, check for a working X display using xhost
Dan McMahill [Tue, 7 Feb 2017 11:55:14 +0000 (7 06:55 -0500)]
In the test suite, check for a working X display using xhost
before running action script tests because those will fail
without a display.  Addresses part of LP1661348.

5 years agoAdd new line to messages
Sergey Alyoshin [Sat, 28 Jan 2017 17:53:45 +0000 (28 20:53 +0300)]
Add new line to messages

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdd AUSAGE(x) and AFAIL(x) to translation
Sergey Alyoshin [Sat, 28 Jan 2017 17:52:47 +0000 (28 20:52 +0300)]
Add AUSAGE(x) and AFAIL(x) to translation

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoInternationalization
Sergey Alyoshin [Sat, 28 Jan 2017 17:49:08 +0000 (28 20:49 +0300)]
Internationalization

Allow translators to change number of tabs in message.
Unification of other messages.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFix message typo
Sergey Alyoshin [Sat, 28 Jan 2017 17:47:15 +0000 (28 20:47 +0300)]
Fix message typo

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdd switches to "git describe" and use awk instead of tr
Charles Parker [Fri, 20 Jan 2017 18:18:22 +0000 (20 13:18 -0500)]
Add switches to "git describe" and use awk instead of tr

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoDynamically generate a version string from git commit
Charles Parker [Thu, 19 Jan 2017 14:00:43 +0000 (19 09:00 -0500)]
Dynamically generate a version string from git commit

Add macro m4_esyscmd to configure.ac to generate a version string
from the output of git-describe.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoRelease notes for pcb-4.0.0v4.0.0
bert [Mon, 16 Jan 2017 20:51:29 +0000 (16 21:51 +0100)]
Release notes for pcb-4.0.0

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFixup the nsis installer script to trigger creation of the gdk-pixbuf loaders cache
Peter Clifton [Mon, 16 Jan 2017 02:16:32 +0000 (16 02:16 +0000)]
Fixup the nsis installer script to trigger creation of the gdk-pixbuf loaders cache

Required if we want working icons in PCB

5 years agoAdded --with-included-gettext when building pcb
Peter Clifton [Sun, 15 Jan 2017 18:49:24 +0000 (15 18:49 +0000)]
Added --with-included-gettext when building pcb

The w32 build still uses an old gettext (one which builds more readily),
and if we don't apply this option, the intl/ directory in the pcb
source gets replaced with a version which fails to compile.

This lets us use the older gettext tools build, but keep the included
(more up to date) intl library shipped with the pcb tarball.

5 years agow32: Bump gtk version (and atk, glib + sundry dependencies)
Peter Clifton [Sun, 15 Jan 2017 18:47:12 +0000 (15 18:47 +0000)]
w32: Bump gtk version (and atk, glib + sundry dependencies)

This is the latest GTK2 release, and should be the best supported
on Win32. Added / bumped some dependencies as required to support
this later version.

5 years agopcb.texi: nitpicking on contribution years according FSF.
bert [Sun, 15 Jan 2017 15:38:53 +0000 (15 16:38 +0100)]
pcb.texi: nitpicking on contribution years according FSF.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agopcb.texi: updated the copyright notices.
bert [Sun, 15 Jan 2017 15:13:08 +0000 (15 16:13 +0100)]
pcb.texi: updated the copyright notices.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agopcb.texi: updated features.
bert [Sun, 15 Jan 2017 14:43:08 +0000 (15 15:43 +0100)]
pcb.texi: updated features.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agopcb.texi: updated authors and contributors.
bert [Sun, 15 Jan 2017 14:38:27 +0000 (15 15:38 +0100)]
pcb.texi: updated authors and contributors.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoBump the autoconf version from 2.60 to 2.69.
bert [Sun, 15 Jan 2017 10:44:19 +0000 (15 11:44 +0100)]
Bump the autoconf version from 2.60 to 2.69.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoREADME.snapshots: added an alternative to counting commits.
bert [Sun, 15 Jan 2017 09:42:49 +0000 (15 10:42 +0100)]
README.snapshots: added an alternative to counting commits.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agopcb.appdata.xml.in: updated.
bert [Tue, 10 Jan 2017 21:40:57 +0000 (10 22:40 +0100)]
pcb.appdata.xml.in: updated.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoBump the minimum required version of gettext from 0.14 to 0.19.3
Charles Parker [Tue, 10 Jan 2017 14:00:44 +0000 (10 09:00 -0500)]
Bump the minimum required version of gettext from 0.14 to 0.19.3

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoAdd a normalize_pcb function to run_tests.sh
Charles Parker [Tue, 10 Jan 2017 13:50:37 +0000 (10 08:50 -0500)]
Add a normalize_pcb function to run_tests.sh

The normalize_pcb function strips comments and blank lines from the golden
file and the test output file prior to comparison.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoUpdating the front page of the doxygen docs.
bert [Tue, 10 Jan 2017 06:46:13 +0000 (10 07:46 +0100)]
Updating the front page of the doxygen docs.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoInclude the doxygen infrastructure in the distribution tarball.
bert [Tue, 10 Jan 2017 05:46:38 +0000 (10 06:46 +0100)]
Include the doxygen infrastructure in the distribution tarball.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
5 years agoFix zlib patch for minipack
Peter Clifton [Sun, 15 Jan 2017 01:22:36 +0000 (15 01:22 +0000)]
Fix zlib patch for minipack

This failed to apply on Linux without a level or prexfix

5 years agoAdd #define WIN32_LEAN_AND_MEAN where appropriate.
Peter Clifton [Sat, 14 Jan 2017 23:47:49 +0000 (14 23:47 +0000)]
Add #define WIN32_LEAN_AND_MEAN where appropriate.

(This define can now be taken out of the CPP_FLAGS override)

5 years agow32: Add support for .xz archives to minipack
Peter Clifton [Sat, 14 Jan 2017 23:43:02 +0000 (14 23:43 +0000)]
w32: Add support for .xz archives to minipack

5 years agoAdd a few missing files related to a cygwin build. With this I'm
Dan McMahill [Sat, 14 Jan 2017 23:11:13 +0000 (14 18:11 -0500)]
Add a few missing files related to a cygwin build.  With this I'm
able to build a windows installer from git sources or from a tarball
under cygwin.  The installer then does not depend on cygwin at
runtime.  Added notes to the README.win32 pointing users who
wish to build with minpack to README.w32

5 years agoprovide a _GLUfuncptr definition under WIN32 and enable gl on the
Dan McMahill [Sat, 14 Jan 2017 20:42:35 +0000 (14 15:42 -0500)]
provide a _GLUfuncptr definition under WIN32 and enable gl on the
win32 build.