aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2021-01-20 13:03:02 -0800
committerGitHub <noreply@github.com>2021-01-20 13:03:02 -0800
commit93db9aced19c819cf0040a2d628f73b246653439 (patch)
tree3e5991004d5678627f35f5f783e9f5b30a29d1cc /ports
parent8e926cc06c3b52056926697b87fc350af7e66d69 (diff)
downloadvcpkg-93db9aced19c819cf0040a2d628f73b246653439.tar.gz
vcpkg-93db9aced19c819cf0040a2d628f73b246653439.zip
[sfml] Install usage and change version scheme to relaxed (#15718)
Diffstat (limited to 'ports')
-rw-r--r--ports/sfml/CONTROL6
-rw-r--r--ports/sfml/portfile.cmake3
-rw-r--r--ports/sfml/usage8
-rw-r--r--ports/sfml/vcpkg.json15
4 files changed, 21 insertions, 11 deletions
diff --git a/ports/sfml/CONTROL b/ports/sfml/CONTROL
deleted file mode 100644
index d126e395e..000000000
--- a/ports/sfml/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: sfml
-Version: 2.5.1
-Port-Version: 9
-Homepage: https://github.com/sfml/sfml
-Description: Simple and fast multimedia library
-Build-Depends: freetype, libflac, libogg, libvorbis, openal-soft, stb
diff --git a/ports/sfml/portfile.cmake b/ports/sfml/portfile.cmake
index 0a028db19..f832303a7 100644
--- a/ports/sfml/portfile.cmake
+++ b/ports/sfml/portfile.cmake
@@ -56,4 +56,5 @@ endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
-file(INSTALL ${SOURCE_PATH}/license.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
+configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage COPYONLY)
+configure_file(${SOURCE_PATH}/license.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
diff --git a/ports/sfml/usage b/ports/sfml/usage
index 5b0f68d1a..784d1173a 100644
--- a/ports/sfml/usage
+++ b/ports/sfml/usage
@@ -1,7 +1,7 @@
The package sfml provides CMake targets:
find_package(SFML COMPONENTS system window graphics CONFIG REQUIRED)
- # Windows
- target_link_libraries(main PRIVATE FLAC OpenAL OpenGL Vorbis)
- # Linux/MacOS
- target_link_libraries(main PRIVATE X11 FLAC UDev OpenAL)
+ target_link_libraries(main PRIVATE sfml-system sfml-network sfml-graphics sfml-window)
+
+ # If you want SFML to provide an implementation of main():
+ target_link_libraries(main PRIVATE sfml-main)
diff --git a/ports/sfml/vcpkg.json b/ports/sfml/vcpkg.json
new file mode 100644
index 000000000..64c7f5358
--- /dev/null
+++ b/ports/sfml/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "sfml",
+ "version": "2.5.1",
+ "port-version": 10,
+ "description": "Simple and fast multimedia library",
+ "homepage": "https://github.com/sfml/sfml",
+ "dependencies": [
+ "freetype",
+ "libflac",
+ "libogg",
+ "libvorbis",
+ "openal-soft",
+ "stb"
+ ]
+}