pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/aiksaurus Add option (off by default) to buil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35a53fee2a64
branches:  trunk
changeset: 642883:35a53fee2a64
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sat Dec 06 19:04:13 2014 +0000

description:
Add option (off by default) to build gtk support. From PR 44878 by
David H. Gutteridge, with some minor adjustments.

Plus a couple small patches to make gtk support actually build. :-/

diffstat:

 textproc/aiksaurus/Makefile                               |   5 ++-
 textproc/aiksaurus/PLIST                                  |   7 +++++-
 textproc/aiksaurus/distinfo                               |   4 ++-
 textproc/aiksaurus/options.mk                             |  16 +++++++++++++++
 textproc/aiksaurus/patches/patch-gtk_src_Display.cpp      |  15 ++++++++++++++
 textproc/aiksaurus/patches/patch-gtk_src_gtkAiksaur.t.cpp |  14 +++++++++++++
 6 files changed, 57 insertions(+), 4 deletions(-)

diffs (108 lines):

diff -r 14d85616d5f1 -r 35a53fee2a64 textproc/aiksaurus/Makefile
--- a/textproc/aiksaurus/Makefile       Sat Dec 06 18:47:01 2014 +0000
+++ b/textproc/aiksaurus/Makefile       Sat Dec 06 19:04:13 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2014/10/09 14:07:01 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2014/12/06 19:04:13 dholland Exp $
 #
 
 DISTNAME=      aiksaurus-1.2.1
@@ -12,7 +12,8 @@
 USE_LIBTOOL=   YES
 USE_LANGUAGES= c c++
 GNU_CONFIGURE= YES
-CONFIGURE_ARGS+=       --without-gtk
 PKGCONFIG_OVERRIDE=    base/aiksaurus-1.0.pc.in
 
+.include "options.mk"
+
 .include "../../mk/bsd.pkg.mk"
diff -r 14d85616d5f1 -r 35a53fee2a64 textproc/aiksaurus/PLIST
--- a/textproc/aiksaurus/PLIST  Sat Dec 06 18:47:01 2014 +0000
+++ b/textproc/aiksaurus/PLIST  Sat Dec 06 19:04:13 2014 +0000
@@ -1,9 +1,14 @@
-@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:17:12 joerg Exp $
+@comment $NetBSD: PLIST,v 1.6 2014/12/06 19:04:13 dholland Exp $
 bin/aiksaurus
 bin/caiksaurus
+${PLIST.gtk}bin/gaiksaurus
 include/Aiksaurus/Aiksaurus.h
 include/Aiksaurus/AiksaurusC.h
+${PLIST.gtk}include/Aiksaurus/AiksaurusGTK-C.h
+${PLIST.gtk}include/Aiksaurus/AiksaurusGTK.h
 lib/libAiksaurus.la
+${PLIST.gtk}lib/libAiksaurusGTK.la
 lib/pkgconfig/aiksaurus-1.0.pc
+${PLIST.gtk}lib/pkgconfig/gaiksaurus-1.0.pc
 share/aiksaurus/meanings.dat
 share/aiksaurus/words.dat
diff -r 14d85616d5f1 -r 35a53fee2a64 textproc/aiksaurus/distinfo
--- a/textproc/aiksaurus/distinfo       Sat Dec 06 18:47:01 2014 +0000
+++ b/textproc/aiksaurus/distinfo       Sat Dec 06 19:04:13 2014 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.5 2011/01/29 20:51:34 markd Exp $
+$NetBSD: distinfo,v 1.6 2014/12/06 19:04:13 dholland Exp $
 
 SHA1 (aiksaurus-1.2.1.tar.gz) = b9e98650bc5257673d5b1507f3e0edbc0cb6a0b5
 RMD160 (aiksaurus-1.2.1.tar.gz) = 0f46c121adb6222f0b4709787162cb6f0a0ff35e
 Size (aiksaurus-1.2.1.tar.gz) = 928893 bytes
 SHA1 (patch-aa) = f8a63f0b7f7cdfa67b1de58f450e8aa93ab301d0
+SHA1 (patch-gtk_src_Display.cpp) = 7f1703c30294fb9145adcf253229101a511bfab2
+SHA1 (patch-gtk_src_gtkAiksaur.t.cpp) = c50bbb17454b5b53cf46512d8d9e9b49ff736adf
diff -r 14d85616d5f1 -r 35a53fee2a64 textproc/aiksaurus/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/aiksaurus/options.mk     Sat Dec 06 19:04:13 2014 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2014/12/06 19:04:13 dholland Exp $
+
+PKG_OPTIONS_VAR=        PKG_OPTIONS.aiksaurus
+PKG_SUPPORTED_OPTIONS=  gtk
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           gtk
+.if !empty(PKG_OPTIONS:Mgtk)
+PLIST.gtk=             yes
+CONFIGURE_ARGS+=        --with-gtk
+.include "../../x11/gtk2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=        --without-gtk
+.endif
diff -r 14d85616d5f1 -r 35a53fee2a64 textproc/aiksaurus/patches/patch-gtk_src_Display.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/aiksaurus/patches/patch-gtk_src_Display.cpp      Sat Dec 06 19:04:13 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gtk_src_Display.cpp,v 1.1 2014/12/06 19:04:14 dholland Exp $
+
+Use standard headers.
+
+--- gtk/src/Display.cpp~       2003-05-27 23:56:54.000000000 +0000
++++ gtk/src/Display.cpp
+@@ -18,6 +18,8 @@
+  * 02111-1307, USA.
+  */
+ 
++#include <cstring>
++
+ #include "Display.h"
+ #include "Meaning.h"
+ #include "DialogMediator.h"
diff -r 14d85616d5f1 -r 35a53fee2a64 textproc/aiksaurus/patches/patch-gtk_src_gtkAiksaur.t.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/aiksaurus/patches/patch-gtk_src_gtkAiksaur.t.cpp Sat Dec 06 19:04:13 2014 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-gtk_src_gtkAiksaur.t.cpp,v 1.1 2014/12/06 19:04:14 dholland Exp $
+
+Use standard headers.
+
+--- gtk/src/gtkAiksaur.t.cpp~  2002-01-12 02:02:12.000000000 +0000
++++ gtk/src/gtkAiksaur.t.cpp
+@@ -23,6 +23,7 @@
+ #include <gtk/gtk.h>
+ #include <iostream>
+ #include <string>
++#include <cstdlib>
+ using namespace std;
+ 
+ int main(int argc, char** argv)



Home | Main Index | Thread Index | Old Index