Make sure OpenSC gets actually installed as dependency

Both ports dlopen(3) opensc-pkcs11.so, but since this unversioned library
is not registered in WANTLIB, LIB_DEPENDS += security/opensc won't be
turned into a RNU_DEPENDS and thus remains a mere BUILD_DEPENDS.

Turn LIB_ into BUILD_ + RUN_DEPENDS to match reality.
Noticed on a fresh install.
This commit is contained in:
kn 2022-08-01 00:06:57 +00:00
parent 6ec3896f7b
commit fafa88ca84
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@ COMMENT = library for creating DigiDoc signature files
V = 3.14.10
DISTNAME = libdigidocpp-${V}
CATEGORIES = security
REVISION = 0
REVISION = 1
SHARED_LIBS = digidocpp 0.0 # 0.0
@ -69,7 +69,8 @@ CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_PoDoFo=ON
CONFIGURE_ENV += LDFLAGS=${LDFLAGS:Q}
# dlopen()'ed "opensc-pkcs11.so" in libdigidocpp.so
LIB_DEPENDS += security/opensc
BUILD_DEPENDS += security/opensc
RUN_DEPENDS += security/opensc
# alternative to https://github.com/open-eid/cmake/pull/35
CONFIGURE_ARGS += -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS} \
-Wl,-rpath,/usr/local/lib/pkcs11"

View File

@ -1,6 +1,7 @@
COMMENT = DigiDoc4 GUI client for signing and encrypting documents
V = 4.2.12
REVISION = 0
DISTNAME = qdigidoc4-${V}
CATEGORIES = security x11
@ -65,7 +66,8 @@ RUN_DEPENDS = devel/desktop-file-utils \
CONFIGURE_ENV += LDFLAGS=${LDFLAGS:Q}
# dlopen()'ed "opensc-pkcs11.so" in qdigidoc4
LIB_DEPENDS += security/opensc
BUILD_DEPENDS += security/opensc
RUN_DEPENDS += security/opensc
CONFIGURE_ARGS += -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS} \
-Wl,-rpath,/usr/local/lib/pkcs11"