diff --git a/math/gkmap/Makefile b/math/gkmap/Makefile index f60d57f636ad..3b598de8316e 100644 --- a/math/gkmap/Makefile +++ b/math/gkmap/Makefile @@ -1,25 +1,23 @@ # Created by: Javad Kouhi PORTNAME= gkmap PORTVERSION= 0.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MASTER_SITES= SF/gkmap/gkmap/gkmap-${PORTVERSION}/ MAINTAINER= javad.kouhi@gmail.com COMMENT= Simplification of Boolean Functions using Karnaugh Map LICENSE= GPLv2 -BROKEN_FreeBSD_13= ld: error: duplicate symbol: cell_array -BROKEN_FreeBSD_14= ld: error: duplicate symbol: cell_array - LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ - libfreetype.so:print/freetype2 + libfreetype.so:print/freetype2 \ + libharfbuzz.so:print/harfbuzz USES= gnome pkgconfig dos2unix USE_GNOME= cairo gdkpixbuf2 gtk20 libglade2 libxml2 GNU_CONFIGURE= yes .include diff --git a/math/gkmap/files/patch-src_init.c b/math/gkmap/files/patch-src_init.c new file mode 100644 index 000000000000..03466c7bc4de --- /dev/null +++ b/math/gkmap/files/patch-src_init.c @@ -0,0 +1,14 @@ +--- src/init.c.orig 2021-11-02 09:37:31 UTC ++++ src/init.c +@@ -1,5 +1,11 @@ + #include "kmap_struct.h" + ++/* globals */ ++struct cell cell_array[4][4]; ++struct output out_array[20]; ++char semi_final_out[70]; ++char final_out[100]; ++ + void init_kmap(void) + { + int i,j; diff --git a/math/gkmap/files/patch-src_kmap__struct.h b/math/gkmap/files/patch-src_kmap__struct.h new file mode 100644 index 000000000000..b2b22d1c410f --- /dev/null +++ b/math/gkmap/files/patch-src_kmap__struct.h @@ -0,0 +1,26 @@ +--- src/kmap_struct.h.orig 2021-11-02 09:33:21 UTC ++++ src/kmap_struct.h +@@ -36,7 +36,7 @@ struct cell + struct cell *left,*right,*down,*up; + char col_string[3], row_string[3]; + }; +-struct cell cell_array[4][4]; ++extern struct cell cell_array[4][4]; + + struct output + { +@@ -44,10 +44,10 @@ struct output + char cell_num_string[10]; + int status; + }; +-struct output out_array[20]; +- +-char semi_final_out[70]; +-char final_out[100]; ++extern struct output out_array[20]; ++ ++extern char semi_final_out[70]; ++extern char final_out[100]; + + +