From 333abb8a805fcdb36d3bd906f516dae83f07fdc7 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 2 Mar 2014 22:50:08 +0000 Subject: [PATCH] Support stage Convert to USES=libtool Use modern LIB_DEPENDS --- security/opencdk/Makefile | 25 +++++++++---------------- security/opencdk/pkg-plist | 1 + 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/security/opencdk/Makefile b/security/opencdk/Makefile index f8716ab2de59..c472e6495e11 100644 --- a/security/opencdk/Makefile +++ b/security/opencdk/Makefile @@ -12,30 +12,23 @@ MASTER_SITE_SUBDIR= alpha/gnutls/opencdk MAINTAINER= novel@FreeBSD.org COMMENT= Open Crypto Development Kit -LIB_DEPENDS= gcrypt:${PORTSDIR}/security/libgcrypt +OPTIONS_DEFINE= DOCS + +LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt USE_BZIP2= yes GNU_CONFIGURE= yes -USES= pkgconfig -USE_GNOME= ltverhack +USES= libtool pathfix pkgconfig USE_LDCONFIG= yes -USE_AUTOTOOLS= libtool CONFIGURE_ARGS= --with-libgcrypt-prefix=${LOCALBASE} DOCS= AUTHORS NEWS README THANKS doc/opencdk-api.html -NO_STAGE= yes -post-patch: - @${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ - ${WRKSRC}/src/Makefile.in - post-install: - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/tests/*.c ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/tests/*.gpg ${EXAMPLESDIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/tests/*.c ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/tests/*.gpg ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .include diff --git a/security/opencdk/pkg-plist b/security/opencdk/pkg-plist index 7ac6b2278ccb..7e64a1f487d6 100644 --- a/security/opencdk/pkg-plist +++ b/security/opencdk/pkg-plist @@ -4,6 +4,7 @@ lib/libopencdk.a lib/libopencdk.la lib/libopencdk.so lib/libopencdk.so.10 +lib/libopencdk.so.10.0.6 libdata/pkgconfig/opencdk.pc %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/NEWS