pkgsrc-WIP-changes archive

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

colord: add options.mk and patches



Module Name:	pkgsrc-wip
Committed By:	Youri Mouton <youri%NetBSD.org@localhost>
Pushed By:	youri
Date:		Wed Jul 13 18:59:30 2016 +0200
Changeset:	27526a7fca4f2d8b5a19268dd158b7cf093b75ce

Added Files:
	colord/options.mk
	colord/patches/patch-configure.ac
	colord/patches/patch-data_Makefile.am

Log Message:
colord: add options.mk and patches

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=27526a7fca4f2d8b5a19268dd158b7cf093b75ce

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 colord/options.mk                     | 18 ++++++++++++++++++
 colord/patches/patch-configure.ac     | 14 ++++++++++++++
 colord/patches/patch-data_Makefile.am | 13 +++++++++++++
 3 files changed, 45 insertions(+)

diffs:
diff --git a/colord/options.mk b/colord/options.mk
new file mode 100644
index 0000000..673eb61
--- /dev/null
+++ b/colord/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.colord
+PKG_SUPPORTED_OPTIONS=	introspection
+PKG_SUGGESTED_OPTIONS=
+
+.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
diff --git a/colord/patches/patch-configure.ac b/colord/patches/patch-configure.ac
new file mode 100644
index 0000000..e83c092
--- /dev/null
+++ b/colord/patches/patch-configure.ac
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Allow build on macOS.
+
+--- configure.ac.orig	2015-07-06 14:32:08.000000000 +0000
++++ configure.ac
+@@ -156,6 +156,7 @@ dnl ------------------------------------
+ dnl - Check Linux-specific dependencies
+ dnl ---------------------------------------------------------------------------
+ AC_CHECK_DEFINE([__unix__], enable_unix="yes", enable_unix="no")
++AC_CHECK_DEFINE([__APPLE__], enable_unix="yes", enable_apple="no")
+ if test x$enable_unix != xno; then
+ 	PKG_CHECK_MODULES(GLIB_UNIX, gio-unix-2.0)
+ 	CD_IT8="\$(top_builddir)/client/cd-it8"
diff --git a/colord/patches/patch-data_Makefile.am b/colord/patches/patch-data_Makefile.am
new file mode 100644
index 0000000..05ba2df
--- /dev/null
+++ b/colord/patches/patch-data_Makefile.am
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- data/Makefile.am.orig	2015-05-01 15:24:15.000000000 +0000
++++ data/Makefile.am
+@@ -9,7 +9,7 @@ SUBDIRS = 						\
+ 	ti1
+ 
+ if HAVE_UNIX
+-dbusdir = $(sysconfdir)/dbus-1/system.d
++dbusdir = $(datadir)/examples/colord
+ dist_dbus_DATA = org.freedesktop.ColorManager.conf
+ 
+ dbusservicemaindir = $(datadir)/dbus-1/system-services


Home | Main Index | Thread Index | Old Index