head 1.2; access; symbols pkgsrc-2023Q4:1.1.0.4 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.2 pkgsrc-2023Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2024.02.20.22.00.36; author charlotte; state dead; branches; next 1.1; commitid Epb2d5i9qAnbJdZE; 1.1 date 2023.07.11.23.46.57; author charlotte; state Exp; branches; next ; commitid aN9yO85mBfpgwrwE; desc @@ 1.2 log @devel/raylib: Provide shared lib and pkg-config files instead @ text @$NetBSD: patch-cmake_CompilerFlags.cmake,v 1.1 2023/07/11 23:46:57 charlotte Exp $ Allow for static linking. --- cmake/CompilerFlags.cmake.orig 2021-04-26 09:00:33.000000000 -0700 +++ cmake/CompilerFlags.cmake 2021-05-01 01:51:08.410299439 -0700 @@@@ -77,3 +77,7 @@@@ # https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html add_if_flag_compiles(-no-canonical-prefixes CMAKE_C_FLAGS) endif() + +if("${CMAKE_SYSTEM_NAME}" STREQUAL "NetBSD") + add_if_flag_compiles(-fPIC CMAKE_C_FLAGS) +endif() @ 1.1 log @devel/raylib: New package Raylib is a simple and easy-to-use library to enjoy videogames programming. Raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education. @ text @d1 1 a1 1 $NetBSD$ @