Skip to content

Commit

Permalink
Manually add pc files for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed May 17, 2024
1 parent c082c3e commit d09a3be
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 1 deletion.
17 changes: 17 additions & 0 deletions ports/krb5/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO krb5/krb5
Expand Down Expand Up @@ -57,6 +58,22 @@ if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
list(APPEND debug_tools_to_remove "${CURRENT_PACKAGES_DIR}/debug/bin/${tool_name}${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
endforeach()
file(REMOVE ${debug_tools_to_remove})
file(COPY
"${CURRENT_PORT_DIR}/windows_pc_files/krb5.pc"
"${CURRENT_PORT_DIR}/windows_pc_files/mit-krb5.pc"
"${CURRENT_PORT_DIR}/windows_pc_files/krb5-gssapi.pc"
"${CURRENT_PORT_DIR}/windows_pc_files/mit-krb5-gssapi.pc"
DESTINATION
"${CURRENT_PACKAGES_DIR}/lib/pkgconfig"
)
file(COPY
"${CURRENT_PORT_DIR}/windows_pc_files/krb5.pc"
"${CURRENT_PORT_DIR}/windows_pc_files/mit-krb5.pc"
"${CURRENT_PORT_DIR}/windows_pc_files/krb5-gssapi.pc"
"${CURRENT_PORT_DIR}/windows_pc_files/mit-krb5-gssapi.pc"
DESTINATION
"${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig"
)
else()
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}/src"
Expand Down
10 changes: 10 additions & 0 deletions ports/krb5/windows_pc_files/krb5-gssapi.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
vendor=MIT

Name: krb5-gssapi
Description: Kerberos implementation of the GSSAPI
Version: 1.21.2
Requires: mit-krb5-gssapi
14 changes: 14 additions & 0 deletions ports/krb5/windows_pc_files/krb5.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
vendor=MIT

defccname=FILE:/tmp/krb5cc_%{uid}
defktname=FILE:/etc/krb5.keytab
defcktname=FILE:${prefix}/var/krb5/user/%{euid}/client.keytab

Name: krb5
Description: An implementation of Kerberos network authentication
Version: 1.21.2
Requires: mit-krb5
11 changes: 11 additions & 0 deletions ports/krb5/windows_pc_files/mit-krb5-gssapi.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: mit-krb5-gssapi
Description: Kerberos implementation of the GSSAPI
Version: 1.21.2
Requires.private: mit-krb5
Cflags: -I${includedir}
Libs: -L${libdir} -lgssapi64
15 changes: 15 additions & 0 deletions ports/krb5/windows_pc_files/mit-krb5.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

defccname=FILE:/tmp/krb5cc_%{uid}
defktname=FILE:/etc/krb5.keytab
defcktname=FILE:${prefix}/var/krb5/user/%{euid}/client.keytab

Name: mit-krb5
Description: An implementation of Kerberos network authentication
Version: 1.21.2
Cflags: -I${includedir}
Libs: -L${libdir} -lkrb5_64 -lkrbcc64 -lxpprof64 -lkfwlogon -lcomerr64 -lk5sprt64
Libs.private: -lk5sprt64
2 changes: 1 addition & 1 deletion versions/k-/krb5.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "a8a474eab6293bd8c42d2c297c0bf2b6d9ddd5cb",
"git-tree": "4ac1818a9f9838bffae79d6b52df676d1c4ed5a4",
"version": "1.21.2",
"port-version": 1
},
Expand Down

0 comments on commit d09a3be

Please sign in to comment.