aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt14
-rw-r--r--LICENSE2
-rw-r--r--README.adoc13
-rw-r--r--config.h.in2
-rw-r--r--razer-bw-te-ctl.c2
5 files changed, 15 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ebd5083..5715fed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,5 @@
-cmake_minimum_required (VERSION 2.8.5)
-project (razer-bw-te-ctl C)
-set (project_VERSION "1.0")
+cmake_minimum_required (VERSION 3.0...3.27)
+project (razer-bw-te-ctl VERSION 1.0 LANGUAGES C)
find_package (PkgConfig REQUIRED)
pkg_check_modules (dependencies REQUIRED libusb-1.0)
@@ -40,18 +39,17 @@ endforeach ()
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Razer BlackWidow Tournament Edition control utility")
-set (CPACK_PACKAGE_VERSION ${project_VERSION})
-set (CPACK_PACKAGE_VENDOR "Premysl Janouch")
-set (CPACK_PACKAGE_CONTACT "Přemysl Janouch <p@janouch.name>")
+set (CPACK_PACKAGE_VENDOR "Premysl Eric Janouch")
+set (CPACK_PACKAGE_CONTACT "Přemysl Eric Janouch <p@janouch.name>")
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set (CPACK_GENERATOR "TGZ;ZIP")
set (CPACK_PACKAGE_FILE_NAME
- "${PROJECT_NAME}-${project_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
+ "${PROJECT_NAME}-${PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
set (CPACK_SOURCE_GENERATOR "TGZ;ZIP")
set (CPACK_SOURCE_IGNORE_FILES "/\\\\.git;/build;/CMakeLists.txt.user")
-set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${project_VERSION}")
+set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}")
set (CPACK_SET_DESTDIR TRUE)
include (CPack)
diff --git a/LICENSE b/LICENSE
index c95e5a5..fe69eb8 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2013, Přemysl Janouch <p@janouch.name>
+Copyright (c) 2013, Přemysl Eric Janouch <p@janouch.name>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
diff --git a/README.adoc b/README.adoc
index f9f92d5..c97be21 100644
--- a/README.adoc
+++ b/README.adoc
@@ -13,18 +13,20 @@ Run `razer-bw-te-ctl --help` or `man razer-bw-te-ctl` for usage information.
Packages
--------
-Regular releases are sporadic. git master should be stable enough. You can get
-a package with the latest development version from Archlinux's AUR.
+Regular releases are sporadic. git master should be stable enough.
+You can get a package with the latest development version using Arch Linux's
+https://aur.archlinux.org/packages/razer-bw-te-ctl-git[AUR],
+or as a https://git.janouch.name/p/nixexprs[Nix derivation].
Installation
------------
-Build dependencies: cmake >= 2.8.5, help2man +
+Build dependencies: cmake >= 3.0, help2man +
Runtime dependencies: libusb >= 1.0
$ git clone https://git.janouch.name/p/razer-bw-te-ctl.git
$ mkdir razer-bw-te-ctl/build
$ cd razer-bw-te-ctl/build
- $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
# make install
Note that there's no `make uninstall`.
@@ -34,9 +36,6 @@ For Debian-based distros, you can do the following instead of the last step:
$ cpack -G DEB
# dpkg -i razer-bw-te-ctl-*.deb
-Note that for versions of CMake before 2.8.9, you need to prefix `cpack` with
-`fakeroot` or file ownership will end up wrong.
-
Contributing and Support
------------------------
Use https://git.janouch.name/p/razer-bw-te-ctl to report bugs, request features,
diff --git a/config.h.in b/config.h.in
index 49193ff..67de2c0 100644
--- a/config.h.in
+++ b/config.h.in
@@ -2,6 +2,6 @@
#define CONFIG_H
#define PROJECT_NAME "${CMAKE_PROJECT_NAME}"
-#define PROJECT_VERSION "${project_VERSION}"
+#define PROJECT_VERSION "${PROJECT_VERSION}"
#endif // ! CONFIG_H
diff --git a/razer-bw-te-ctl.c b/razer-bw-te-ctl.c
index ff40154..e51b2b1 100644
--- a/razer-bw-te-ctl.c
+++ b/razer-bw-te-ctl.c
@@ -3,7 +3,7 @@
*
* Everything has been reverse-engineered via Wireshark/usbmon and VirtualBox.
*
- * Copyright (c) 2013, Přemysl Janouch <p@janouch.name>
+ * Copyright (c) 2013, Přemysl Eric Janouch <p@janouch.name>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.