Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $OpenBSD: Makefile,v 1.26 2017/05/25 14:39:24 sthen Exp $
  2. COMMENT= TLS/SSL library and tools
  3. PORTROACH= limit:^1\.0\.
  4. V= 1.0.2l
  5. DISTNAME= openssl-$V
  6. PKGNAME= openssl-$V
  7. SHLIBVER= 5.1
  8. SHARED_LIBS= crypto ${SHLIBVER} \
  9. ssl ${SHLIBVER}
  10. CATEGORIES= security net
  11. HOMEPAGE= http://www.openssl.org/
  12. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  13. # OpenSSL
  14. PERMIT_PACKAGE_CDROM= Yes
  15. WANTLIB += c
  16. MASTER_SITES= https://www.openssl.org/source/ \
  17. https://www.openssl.org/source/old/${V:C/.$//}/ \
  18. ftp://ftp.openssl.org/source/
  19. FAKE_FLAGS= MANDIR=${PREFIX}/lib/eopenssl/man
  20. CONFIGURE_STYLE= simple
  21. CONFIGURE_SCRIPT= config
  22. CONFIGURE_ARGS+= --prefix=${PREFIX} \
  23. --openssldir=${PREFIX}/share/eopenssl \
  24. --install_prefix=${WRKINST} \
  25. no-threads no-krb5 \
  26. no-rc5 no-ssl2 no-ssl3 \
  27. shared
  28. # install to unusual directory name - this port is *not* intended to be
  29. # picked up by configure scripts without explicitly CPPFLAGS/LDFLAGS.
  30. # common names like lib/openssl, openssl/lib, etc, *do* get picked up.
  31. MAKE_FLAGS+= CC="${CC}" \
  32. LIBDIR="lib/eopenssl" \
  33. LIBRPATH="${TRUEPREFIX}/lib/eopenssl" \
  34. PORTCFLAGS="${CFLAGS}" \
  35. SHLIB_VERSION_NUMBER=${SHLIBVER} \
  36. SHLIB_MAJOR=${SHLIBVER:R} \
  37. SHLIB_MINOR=${SHLIBVER:E}
  38. MAKE_ENV+= LIBRPATH="${TRUEPREFIX}/lib/eopenssl"
  39. post-configure:
  40. cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
  41. ${MAKE_FLAGS} -f ${MAKE_FILE} depend
  42. # include/openssl and pkgconfig files are moved here, doing that in
  43. # OpenSSL's build infrastructure needs a bunch more patching.
  44. post-install:
  45. ${INSTALL_DATA_DIR} ${PREFIX}/include/eopenssl
  46. .for i j in openssl eopenssl libssl libessl libcrypto libecrypto
  47. mv ${PREFIX}/lib/eopenssl/pkgconfig/$i.pc ${PREFIX}/lib/pkgconfig/$j.pc
  48. .endfor
  49. rmdir ${PREFIX}/lib/eopenssl/pkgconfig/
  50. mv ${PREFIX}/include/openssl ${PREFIX}/include/eopenssl/
  51. mv ${PREFIX}/bin/openssl ${PREFIX}/bin/eopenssl
  52. mv ${PREFIX}/bin/c_rehash ${PREFIX}/share/eopenssl/misc/
  53. rm -f ${PREFIX}/lib/eopenssl/lib{crypto,ssl}.so
  54. .include <bsd.port.mk>