summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorKOLANICH <[email protected]>2023-01-21 17:50:38 +0000
committerGitHub <[email protected]>2023-01-21 18:50:38 +0100
commit342b18da034b34cb9d7713fd03e321e4049e79c2 (patch)
tree56f8f6a0140f0bcb456ad09d50b56c20cb2d30f1 /cmake
parentc649bec26cafb5415d9becae3e39720692146d40 (diff)
downloadraylib-342b18da034b34cb9d7713fd03e321e4049e79c2.tar.gz
raylib-342b18da034b34cb9d7713fd03e321e4049e79c2.zip
Add packaging for distros with deb- and rpm-based packages. (#2877)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/PackConfigurations.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/PackConfigurations.cmake b/cmake/PackConfigurations.cmake
index 74eded02..ad00ca6b 100644
--- a/cmake/PackConfigurations.cmake
+++ b/cmake/PackConfigurations.cmake
@@ -1,5 +1,6 @@
# Packaging
SET(CPACK_PACKAGE_NAME "raylib")
+SET(CPACK_PACKAGE_CONTACT "raysan5")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Simple and easy-to-use library to enjoy videogames programming")
SET(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
SET(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
@@ -9,5 +10,9 @@ SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/../README.md")
SET(CPACK_RESOURCE_FILE_WELCOME "${PROJECT_SOURCE_DIR}/../README.md")
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/../LICENSE")
SET(CPACK_PACKAGE_FILE_NAME "raylib-${PROJECT_VERSION}$ENV{RAYLIB_PACKAGE_SUFFIX}")
-SET(CPACK_GENERATOR "ZIP;TGZ") # Remove this, if you want the NSIS installer on Windows
-include(CPack) \ No newline at end of file
+SET(CPACK_GENERATOR "ZIP;TGZ;DEB;RPM") # Remove this, if you want the NSIS installer on Windows
+SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS OFF) # can be used to generate deps, slow and requires tools.
+SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libatomic1, libc6, libglfw3, libglu1-mesa | libglu1, libglx0, libopengl0")
+SET(CPACK_DEBIAN_PACKAGE_NAME "lib${CPACK_PACKAGE_NAME}-dev")
+SET(CPACK_RPM_PACKAGE_NAME "lib${CPACK_PACKAGE_NAME}-devel")
+include(CPack)