pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/geography/libmemphis02 libmemphis02: Add introspection...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7abc69c24b6e
branches:  trunk
changeset: 450558:7abc69c24b6e
user:      cirnatdan <cirnatdan%pkgsrc.org@localhost>
date:      Mon Apr 19 15:55:29 2021 +0000

description:
libmemphis02: Add introspection option

diffstat:

 geography/libmemphis02/Makefile   |   4 +++-
 geography/libmemphis02/PLIST      |   4 +++-
 geography/libmemphis02/options.mk |  18 ++++++++++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (58 lines):

diff -r c41e525a5058 -r 7abc69c24b6e geography/libmemphis02/Makefile
--- a/geography/libmemphis02/Makefile   Mon Apr 19 15:36:06 2021 +0000
+++ b/geography/libmemphis02/Makefile   Mon Apr 19 15:55:29 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2021/01/18 23:50:45 mef Exp $
+# $NetBSD: Makefile,v 1.13 2021/04/19 15:55:29 cirnatdan Exp $
 
 DISTNAME=      memphis-0.2.3
 PKGNAME=       libmemphis02-0.2.3
@@ -26,6 +26,8 @@
        autoheader ; \
        automake -a --foreign -i --add-missing; autoconf
 
+.include "options.mk"
+
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../graphics/cairo/buildlink3.mk"
 .include "../../textproc/expat/buildlink3.mk"
diff -r c41e525a5058 -r 7abc69c24b6e geography/libmemphis02/PLIST
--- a/geography/libmemphis02/PLIST      Mon Apr 19 15:36:06 2021 +0000
+++ b/geography/libmemphis02/PLIST      Mon Apr 19 15:55:29 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2021/01/18 23:50:45 mef Exp $
+@comment $NetBSD: PLIST,v 1.6 2021/04/19 15:55:29 cirnatdan Exp $
 include/libmemphis-0.2/memphis/memphis-data-pool.h
 include/libmemphis-0.2/memphis/memphis-debug.h
 include/libmemphis-0.2/memphis/memphis-map.h
@@ -6,6 +6,8 @@
 include/libmemphis-0.2/memphis/memphis-rule-set.h
 include/libmemphis-0.2/memphis/memphis-rule.h
 include/libmemphis-0.2/memphis/memphis.h
+${PLIST.introspection}lib/girepository-1.0/Memphis-0.2.typelib
 lib/libmemphis-0.2.la
 lib/pkgconfig/memphis-0.2.pc
+${PLIST.introspection}share/gir-1.0/Memphis-0.2.gir
 share/memphis-0.2/default-rules.xml
diff -r c41e525a5058 -r 7abc69c24b6e geography/libmemphis02/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/libmemphis02/options.mk Mon Apr 19 15:55:29 2021 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2021/04/19 15:55:29 cirnatdan Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libmemphis02
+PKG_SUPPORTED_OPTIONS= introspection
+PKG_SUGGESTED_OPTIONS= introspection
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   introspection
+
+.if !empty(PKG_OPTIONS:Mintrospection)
+BUILDLINK_DEPMETHOD.gobject-introspection+=    build
+.include "../../devel/gobject-introspection/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-introspection
+PLIST.introspection=   yes
+.else
+CONFIGURE_ARGS+=       --disable-introspection
+.endif



Home | Main Index | Thread Index | Old Index