diff options
author | veego <veego> | 2000-05-10 12:28:37 +0000 |
---|---|---|
committer | veego <veego> | 2000-05-10 12:28:37 +0000 |
commit | 9b30d1bd49890b20e76210d72045015b08598bc9 (patch) | |
tree | ad9015ba6862e5508727666cf301220d0662d9f1 /security/openssl/Makefile | |
parent | c6166cb5635447be36fa30b046541ac07c240779 (diff) | |
download | pkgsrc-9b30d1bd49890b20e76210d72045015b08598bc9.tar.gz |
Support to build it on Solaris.
It would be easier to make that change if we support patches for one OPSYS
but someone removed that from out tree.
Diffstat (limited to 'security/openssl/Makefile')
-rw-r--r-- | security/openssl/Makefile | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile index 97e6e3f490e..47b0da31c4e 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2000/04/21 02:15:37 explorer Exp $ +# $NetBSD: Makefile,v 1.14 2000/05/10 12:28:37 veego Exp $ # DISTNAME= openssl-0.9.5a @@ -18,26 +18,30 @@ MIRROR_DISTFILE= no ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \ NetBSD-*-m68k NetBSD-*-mips NetBSD-*-mipseb \ NetBSD-*-mipsel NetBSD-*-ns32k NetBSD-*-powerpc \ - NetBSD-*-sparc NetBSD-*-vax + NetBSD-*-sparc NetBSD-*-vax \ + SunOS-* CONFIGURE_ARGS= -fPIC -DPIC --openssldir=${PREFIX} --prefix=${PREFIX} \ ${LDFLAGS} #CONFIGURE_ENV= PREFIX=${PREFIX} + +.include "../../mk/bsd.prefs.mk" + +PATCHDIR= ${WRKDIR}/.patches +.if ${OPSYS} == "NetBSD" MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC} MAKELIB=${FILESDIR}/makelib +.endif -# Note, this list gets bigger if using the RSAref library -PLIST_SRC= pkg/PLIST +PLIST_SRC= ${WRKDIR}/.PLIST_SRC -.if !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so) +.if ${OPSYS} == "NetBSD" && !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so) IGNORE= requires shared object support .endif -.include "../../mk/bsd.prefs.mk" - .if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES DEPENDS= rsaref-2.0p3:../../security/rsaref CONFIGURE_ARGS+= rsaref -PLIST_SRC+= pkg/PLIST.rsaref +PLIST_RSAREF= ${PKGDIR}/PLIST.rsaref .endif fetch-depends: @@ -51,6 +55,15 @@ fetch-depends: @${FALSE} .endif +pre-patch: + ${MKDIR} ${WRKDIR}/.patches + @${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches +.if ${OPSYS} == "NetBSD" + for FILE in ${.CURDIR}/patches/patch.netbsd-*; do \ + @${CP} $$FILE ${PATCHDIR}/patches-$${FILE##-}; \ + done +.endif + # The Perl stuff doesn't work yet (nor did it work properly in SSLeay...) do-configure: @cd ${WRKSRC} && ${LOCALBASE}/bin/perl util/perlpath.pl ${LOCALBASE}/bin @@ -81,9 +94,10 @@ do-install: ${INSTALL_SCRIPT} ${WRKDIR}/der_chop ${PREFIX}/bin/ cd ${WRKSRC}/apps && ${INSTALL_SCRIPT} CA.sh CA.pl ${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/apps/openssl.cnf ${PREFIX}/etc/openssl.cnf.example - cd ${WRKSRC} && \ - ${INSTALL_DATA} libcrypto.so.?.0 libssl.so.?.0 ${PREFIX}/lib/; \ - ${INSTALL_DATA} libcrypto.a libssl.a ${PREFIX}/lib/ + cd ${WRKSRC} && ${INSTALL_DATA} libcrypto.a libssl.a ${PREFIX}/lib/ +.if ${OPSYS} == "NetBSD" + cd ${WRKSRC} && ${INSTALL_DATA} libcrypto.so.?.0 libssl.so.?.0 ${PREFIX}/lib/ +.endif .if exists(/usr/bin/ranlib) /usr/bin/ranlib ${PREFIX}/lib/libcrypto.a /usr/bin/ranlib ${PREFIX}/lib/libssl.a @@ -119,11 +133,16 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/doc/$$file \ ${PREFIX}/share/doc/openssl/; \ done - ${INSTALL_DATA_DIR} ${PREFIX}/certs ${PREFIX}/private + ${INSTALL_DATA_DIR} ${PREFIX}/certs + ${INSTALL_DATA_DIR} ${PREFIX}/private @if [ ! -f ${PREFIX}/etc/openssl.cnf ]; then \ ${CP} -p ${PREFIX}/etc/openssl.cnf.example ${PREFIX}/etc/openssl.cnf; \ fi +post-install: + ${CAT} ${PKGDIR}/PLIST.common ${PKGDIR}/PLIST.${LOWER_OPSYS} \ + ${PLIST_RSAREF} > ${PLIST_SRC} + .include "../../mk/bsd.pkg.mk" test: all |