pkgsrc-WIP-changes archive

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

xsoview2: fix PLIST on non-BSD systems.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Fri Nov 18 15:28:19 2022 +0100
Changeset:	ce696d8104f61c7e21435238781d428c7be16db7

Modified Files:
	xosview2/Makefile
Added Files:
	xosview2/PLIST.bsd
	xosview2/PLIST.common
	xosview2/PLIST.linux
Removed Files:
	xosview2/PLIST

Log Message:
xsoview2: fix PLIST on non-BSD systems.

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

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

diffstat:
 xosview2/Makefile     | 11 +++++++++++
 xosview2/PLIST        |  6 ------
 xosview2/PLIST.bsd    |  2 ++
 xosview2/PLIST.common |  5 +++++
 xosview2/PLIST.linux  |  2 ++
 5 files changed, 20 insertions(+), 6 deletions(-)

diffs:
diff --git a/xosview2/Makefile b/xosview2/Makefile
index 5403f2bd03..ca1187b6e9 100644
--- a/xosview2/Makefile
+++ b/xosview2/Makefile
@@ -20,6 +20,17 @@ CONFIGURE_ARGS+=	--x-includes=${X11BASE}/include
 CONFIGURE_ARGS+=	--with-x
 CONFIGURE_ARGS+=	--with-xsm
 
+PLIST_SRC=	PLIST.common
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS:M*BSD} || ${OPSYS} == "DragonFly"
+PLIST_SRC+=		PLIST.bsd
+.elif ${OPSYS} == "Linux"
+PLIST_SRC+=		PLIST.linux
+CONFIGURE_ARGS+=	--enable-linux-syscalls
+.endif
+
 .include "../../x11/libXft/buildlink3.mk"
 .include "../../x11/libXpm/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
diff --git a/xosview2/PLIST b/xosview2/PLIST
deleted file mode 100644
index 22b1d12388..0000000000
--- a/xosview2/PLIST
+++ /dev/null
@@ -1,6 +0,0 @@
-@comment $NetBSD$
-bin/xosview2
-man/man1/xosview2.1
-share/X11/app-defaults/XOsview2
-share/doc/xosview2/README
-share/doc/xosview2/README.bsd
diff --git a/xosview2/PLIST.bsd b/xosview2/PLIST.bsd
new file mode 100644
index 0000000000..3c8b1b45ff
--- /dev/null
+++ b/xosview2/PLIST.bsd
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+share/doc/xosview2/README.bsd
diff --git a/xosview2/PLIST.common b/xosview2/PLIST.common
new file mode 100644
index 0000000000..9c81726e29
--- /dev/null
+++ b/xosview2/PLIST.common
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/xosview2
+man/man1/xosview2.1
+share/X11/app-defaults/XOsview2
+share/doc/xosview2/README
diff --git a/xosview2/PLIST.linux b/xosview2/PLIST.linux
new file mode 100644
index 0000000000..763f0126d3
--- /dev/null
+++ b/xosview2/PLIST.linux
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+share/doc/xosview2/README.linux


Home | Main Index | Thread Index | Old Index