pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add wld version 0.0.20190810
Module Name: pkgsrc-wip
Committed By: Maya Rashish <maya%NetBSD.org@localhost>
Pushed By: coypu
Date: Sat Aug 10 23:01:53 2019 +0300
Changeset: e7108ecd19f90886f2eb65ca2b0471980ac2fb5f
Added Files:
wld/DESCR
wld/Makefile
wld/PLIST
wld/buildlink3.mk
wld/distinfo
wld/patches/patch-config.mk
wld/patches/patch-drm.c
Log Message:
Add wld version 0.0.20190810
wld is a drawing library that targets Wayland.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e7108ecd19f90886f2eb65ca2b0471980ac2fb5f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
wld/DESCR | 1 +
wld/Makefile | 28 ++++++++++++++++++++++++++++
wld/PLIST | 10 ++++++++++
wld/buildlink3.mk | 17 +++++++++++++++++
wld/distinfo | 8 ++++++++
wld/patches/patch-config.mk | 15 +++++++++++++++
wld/patches/patch-drm.c | 34 ++++++++++++++++++++++++++++++++++
7 files changed, 113 insertions(+)
diffs:
diff --git a/wld/DESCR b/wld/DESCR
new file mode 100644
index 0000000000..c5ca3b412b
--- /dev/null
+++ b/wld/DESCR
@@ -0,0 +1 @@
+wld is a drawing library that targets Wayland.
diff --git a/wld/Makefile b/wld/Makefile
new file mode 100644
index 0000000000..e2546bab05
--- /dev/null
+++ b/wld/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.3 2018/08/22 09:43:57 wiz Exp $
+
+GIT_COMMIT= dfa8f7981b612fb7d827776b1810f504dd6add10
+DISTNAME= ${GIT_COMMIT}
+PKGNAME= wld-0.0.20190810
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=michaelforney/wld/archive/}
+EXTRACT_SUFX= .zip
+DIST_SUBDIR= wld-${GIT_COMMIT}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/michaelforney/wld
+COMMENT= drawing library that targets Wayland
+LICENSE= mit
+
+USE_TOOLS+= gmake pkg-config
+
+WRKSRC= ${WRKDIR}/wld-${GIT_COMMIT}
+
+CFLAGS.NetBSD+= -D_NETBSD_SOURCE
+
+PKGCONFIG_OVERRIDE+= wld.pc.in
+
+.include "../../x11/pixman/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../wip/wayland/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/wld/PLIST b/wld/PLIST
new file mode 100644
index 0000000000..7ec987b58f
--- /dev/null
+++ b/wld/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+include/wld/drm.h
+include/wld/pixman.h
+include/wld/wayland.h
+include/wld/wld.h
+lib/libwld.a
+lib/libwld.so
+lib/libwld.so.0
+lib/libwld.so.0.0
+lib/pkgconfig/wld.pc
diff --git a/wld/buildlink3.mk b/wld/buildlink3.mk
new file mode 100644
index 0000000000..f730ddc854
--- /dev/null
+++ b/wld/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= wld
+
+.if !defined(WLD_BUILDLINK3_MK)
+WLD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.wld+= wld>=0.0.20190810
+BUILDLINK_PKGSRCDIR.wld?= ../../wip/wld
+
+.include "../../x11/pixman/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../wip/wayland/buildlink3.mk"
+.endif # WLD_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -wld
diff --git a/wld/distinfo b/wld/distinfo
new file mode 100644
index 0000000000..8ee4d14268
--- /dev/null
+++ b/wld/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (wld-dfa8f7981b612fb7d827776b1810f504dd6add10/dfa8f7981b612fb7d827776b1810f504dd6add10.zip) = 8cf522ee7ca8e523a431af75c820bd63a2046ba0
+RMD160 (wld-dfa8f7981b612fb7d827776b1810f504dd6add10/dfa8f7981b612fb7d827776b1810f504dd6add10.zip) = b3c2a090c17fd77734ce5d9a4af884ad27e47d8f
+SHA512 (wld-dfa8f7981b612fb7d827776b1810f504dd6add10/dfa8f7981b612fb7d827776b1810f504dd6add10.zip) = 5738167775131a74808f541474408d7d3725c74156ac922e8c0c926c6b64f2e46e49eaa0c6144f93ee40d18b6d7744eebaaa64cc133fd96ec238961bb635a7db
+Size (wld-dfa8f7981b612fb7d827776b1810f504dd6add10/dfa8f7981b612fb7d827776b1810f504dd6add10.zip) = 91237 bytes
+SHA1 (patch-config.mk) = ffdd5a50878aa5b502ead250cfdc37dbd9a6ddc5
+SHA1 (patch-drm.c) = 69eb599e731f9464f6dff228d9c33c5bda233e15
diff --git a/wld/patches/patch-config.mk b/wld/patches/patch-config.mk
new file mode 100644
index 0000000000..98054fbb4e
--- /dev/null
+++ b/wld/patches/patch-config.mk
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Allow overriding CFLAGS. We need -D_NETBSD_SOURCE for mkostemp.
+
+--- config.mk.orig 2019-07-11 05:37:37.000000000 +0000
++++ config.mk
+@@ -1,7 +1,7 @@
+ # wld: config.mk
+
+ CC = gcc
+-CFLAGS = -pipe
++CFLAGS ?= -pipe
+
+ ENABLE_DEBUG = 1
+ ENABLE_STATIC = 1
diff --git a/wld/patches/patch-drm.c b/wld/patches/patch-drm.c
new file mode 100644
index 0000000000..0b21375263
--- /dev/null
+++ b/wld/patches/patch-drm.c
@@ -0,0 +1,34 @@
+$NetBSD$
+
+Exclude sysmacros.h except on linux.
+Exclude code to decipher driver from fd on netbsd - TODO?
+
+--- drm.c.orig 2019-07-11 05:37:37.000000000 +0000
++++ drm.c
+@@ -24,7 +24,10 @@
+ #include "drm.h"
+ #include "drm-private.h"
+
++#ifdef __linux__
+ #include <sys/sysmacros.h>
++#endif
++#include <sys/types.h>
+
+ const static struct drm_driver *drivers[] = {
+ #if WITH_DRM_INTEL
+@@ -39,6 +42,7 @@ const static struct drm_driver *drivers[
+ static const struct drm_driver *
+ find_driver(int fd)
+ {
++#ifndef __NetBSD__ /* XXX */
+ char path[64], id[32];
+ uint32_t vendor_id, device_id;
+ char *path_part;
+@@ -85,6 +89,7 @@ find_driver(int fd)
+ return NULL;
+
+ dumb:
++#endif
+ return &dumb_drm_driver;
+ }
+
Home |
Main Index |
Thread Index |
Old Index