pkgsrc-WIP-changes archive

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

tslib: Add PLIST_VARS for input and waveshare, separate PLISTs for FreeBSD and Linux.



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Wed May 23 12:39:57 2018 +0100
Changeset:	b7211bf7a2495b3923772a85b4da570fe5e3d6e0

Modified Files:
	tslib/Makefile
	tslib/PLIST
Added Files:
	tslib/PLIST.FreeBSD
	tslib/PLIST.Linux

Log Message:
tslib: Add PLIST_VARS for input and waveshare, separate PLISTs
for FreeBSD and Linux.

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

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

diffstat:
 tslib/Makefile      |  6 ++++++
 tslib/PLIST         | 14 ++------------
 tslib/PLIST.FreeBSD | 11 +++++++++++
 tslib/PLIST.Linux   | 11 +++++++++++
 4 files changed, 30 insertions(+), 12 deletions(-)

diffs:
diff --git a/tslib/Makefile b/tslib/Makefile
index dd8a426cd7..cacf4e8945 100644
--- a/tslib/Makefile
+++ b/tslib/Makefile
@@ -22,13 +22,19 @@ pre-configure:
 
 .include "../../mk/bsd.prefs.mk"
 
+PLIST_VARS+=		input waveshare
+
 .if ${OPSYS} != "Linux" && ${OPSYS} != "FreeBSD"
 # Disable /dev/input/eventN support
 CONFIGURE_ARGS+=	--disable-input
+.else
+PLIST.input=		yes
 .endif
 
 .if ${OPSYS} != "Linux"
 CONFIGURE_ARGS+=	--disable-waveshare
+.else
+PLIST.waveshare=	yes
 .endif
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/tslib/PLIST b/tslib/PLIST
index 0c4dc56261..a0d26c4cd0 100644
--- a/tslib/PLIST
+++ b/tslib/PLIST
@@ -1,21 +1,11 @@
 @comment $NetBSD$
-bin/ts_calibrate
-bin/ts_finddev
-bin/ts_harvest
-bin/ts_print
-bin/ts_print_mt
-bin/ts_print_raw
-bin/ts_test
-bin/ts_test_mt
-bin/ts_uinput
-bin/ts_verify
 include/tslib.h
 lib/libts.la
 lib/pkgconfig/tslib.pc
 lib/ts/debounce.la
 lib/ts/dejitter.la
 lib/ts/iir.la
-lib/ts/input.la
+${PLIST.input}lib/ts/input.la
 lib/ts/invert.la
 lib/ts/linear.la
 lib/ts/lowpass.la
@@ -24,7 +14,7 @@ lib/ts/pthres.la
 lib/ts/skip.la
 lib/ts/touchkit.la
 lib/ts/variance.la
-lib/ts/waveshare.la
+${PLIST.waveshare}lib/ts/waveshare.la
 man/man1/ts_calibrate.1
 man/man1/ts_finddev.1
 man/man1/ts_harvest.1
diff --git a/tslib/PLIST.FreeBSD b/tslib/PLIST.FreeBSD
new file mode 100644
index 0000000000..9fcb25171d
--- /dev/null
+++ b/tslib/PLIST.FreeBSD
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+bin/ts_calibrate
+bin/ts_finddev
+bin/ts_harvest
+bin/ts_print
+bin/ts_print_mt
+bin/ts_print_raw
+bin/ts_test
+bin/ts_test_mt
+bin/ts_uinput
+bin/ts_verify
diff --git a/tslib/PLIST.Linux b/tslib/PLIST.Linux
new file mode 100644
index 0000000000..9fcb25171d
--- /dev/null
+++ b/tslib/PLIST.Linux
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+bin/ts_calibrate
+bin/ts_finddev
+bin/ts_harvest
+bin/ts_print
+bin/ts_print_mt
+bin/ts_print_raw
+bin/ts_test
+bin/ts_test_mt
+bin/ts_uinput
+bin/ts_verify


Home | Main Index | Thread Index | Old Index