diff options
| -rw-r--r-- | ports/nana/CONTROL | 10 | ||||
| -rw-r--r-- | ports/nana/config.cmake.in | 9 |
2 files changed, 11 insertions, 8 deletions
diff --git a/ports/nana/CONTROL b/ports/nana/CONTROL index 551051140..a61242099 100644 --- a/ports/nana/CONTROL +++ b/ports/nana/CONTROL @@ -1,5 +1,5 @@ -Source: nana
-Version: 1.7.2-1 -Homepage: https://github.com/cnjinhao/nana
-Description: Cross-platform library for GUI programming in modern C++ style.
-Build-Depends: libpng, libjpeg-turbo, freetype (!uwp&&!windows), fontconfig (!uwp&&!windows)
+Source: nana +Version: 1.7.2-2 +Homepage: https://github.com/cnjinhao/nana +Description: Cross-platform library for GUI programming in modern C++ style. +Build-Depends: libpng, libjpeg-turbo, freetype (!uwp&&!windows), fontconfig (!uwp&&!windows) diff --git a/ports/nana/config.cmake.in b/ports/nana/config.cmake.in index 8a18bbdf4..43b21dcc4 100644 --- a/ports/nana/config.cmake.in +++ b/ports/nana/config.cmake.in @@ -7,11 +7,14 @@ if(UNIX) find_library(FONTCONFIG_LIB NAMES fontconfig) endif() -if(@NANA_ENABLE_PNG@) +option(NANA_ENABLE_PNG "Enable PNG support" @NANA_ENABLE_PNG@) +option(NANA_ENABLE_JPEG "Enable JPEG support" @NANA_ENABLE_JPEG@) + +if(NANA_ENABLE_PNG) find_package(PNG REQUIRED) endif() -if(@NANA_ENABLE_JPEG@) +if(NANA_ENABLE_JPEG) find_package(JPEG REQUIRED) endif() @@ -21,6 +24,6 @@ if(UNIX) target_link_libraries(unofficial::nana::nana INTERFACE ${FONTCONFIG_LIB} ${X11_LIBRARIES} ${X11_Xft_LIB}) endif() -if(@NANA_ENABLE_JPEG@) +if(NANA_ENABLE_JPEG) target_link_libraries(unofficial::nana::nana INTERFACE ${JPEG_LIBRARIES}) endif() |
