diff options
author | lofi <lofi@FreeBSD.org> | 2004-12-12 02:33:33 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2004-12-12 02:33:33 +0800 |
commit | 966afb9f6189ab1050d0533b0f1548b103743b54 (patch) | |
tree | 851620fc019c21bb6e556722c28799bc75a1ec1b /security/gpgme | |
parent | d50d8c05ce870aa3fe272afdc685343cfb2cdc92 (diff) | |
download | freebsd-ports-gnome-966afb9f6189ab1050d0533b0f1548b103743b54.tar.gz freebsd-ports-gnome-966afb9f6189ab1050d0533b0f1548b103743b54.tar.zst freebsd-ports-gnome-966afb9f6189ab1050d0533b0f1548b103743b54.zip |
Fix the self-tests instead of just omitting them.
Diffstat (limited to 'security/gpgme')
-rw-r--r-- | security/gpgme/Makefile | 11 | ||||
-rw-r--r-- | security/gpgme/files/patch-tests-gpg-Makefile.in | 10 |
2 files changed, 17 insertions, 4 deletions
diff --git a/security/gpgme/Makefile b/security/gpgme/Makefile index 2bb193f953d9..39b5f73f299e 100644 --- a/security/gpgme/Makefile +++ b/security/gpgme/Makefile @@ -19,7 +19,7 @@ BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg \ gpgsm:${PORTSDIR}/security/gnupg-devel LIB_DEPENDS= gpg-error:${PORTSDIR}/security/libgpg-error \ - pth.20:${PORTSDIR}/devel/pth + pth:${PORTSDIR}/devel/pth USE_LIBTOOL_VER=15 USE_GMAKE= yes @@ -31,12 +31,15 @@ CONFIGURE_ARGS= --with-gpg=${LOCALBASE}/bin/gpg \ INFO= gpgme +.include <bsd.port.pre.mk> post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/${CONFIGURE_SCRIPT} \ ${WRKSRC}/gpgme/Makefile.in \ ${WRKSRC}/gpgme/gpgme-config.in - @${REINPLACE_CMD} -e 's|@RUN_GPG_TESTS_TRUE@tests = tests|@RUN_GPG_TESTS_TRUE@tests =|g' \ - ${WRKSRC}/Makefile.in +.if ${OSVERSION} < 503100 || defined(PTHREAD_LIBS) && ${PTHREAD_LIBS} != "-pthread" + @${REINPLACE_CMD} -e 's|t_thread1_LDADD = ../../gpgme/libgpgme-pthread.la|t_thread1_LDADD = ../../gpgme/libgpgme-pthread.la -lpthread|g' \ + ${WRKSRC}/tests/gpg/Makefile.in +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/security/gpgme/files/patch-tests-gpg-Makefile.in b/security/gpgme/files/patch-tests-gpg-Makefile.in new file mode 100644 index 000000000000..e6a3c0593bab --- /dev/null +++ b/security/gpgme/files/patch-tests-gpg-Makefile.in @@ -0,0 +1,10 @@ +--- tests/gpg/Makefile.in.orig Sat Dec 11 18:25:43 2004 ++++ tests/gpg/Makefile.in Sat Dec 11 18:25:04 2004 +@@ -329,6 +329,7 @@ + AM_CPPFLAGS = @GPG_ERROR_CFLAGS@ + LDADD = ../../gpgme/libgpgme.la + t_thread1_LDADD = ../../gpgme/libgpgme-pthread.la ++t_thread1_LDFLAGS= $(PTH_LDFLAGS) + all: all-am + + .SUFFIXES: |