Annotation of pkgsrc/security/openssl/Makefile, Revision 1.184
1.184 ! obache 1: # $NetBSD: Makefile,v 1.183 2014/01/10 14:32:42 tron Exp $
1.98 jlam 2:
1.183 tron 3: DISTNAME= openssl-1.0.1f
1.173 jperkin 4: MASTER_SITES= http://ftp.openssl.org/source/
1.101 jlam 5: SVR4_PKGNAME= ossl
6: CATEGORIES= security
1.169 wiz 7:
1.115 jlam 8: MAINTAINER= pkgsrc-users@NetBSD.org
1.98 jlam 9: HOMEPAGE= http://www.openssl.org/
10: COMMENT= Secure Socket Layer and cryptographic library
1.1 tv 11:
1.98 jlam 12: CONFLICTS= SSLeay-[0-9]* ssleay-[0-9]*
1.1 tv 13:
1.98 jlam 14: CRYPTO= yes
1.23 itojun 15:
1.85 jlam 16: PKG_INSTALLATION_TYPES= overwrite pkgviews
17:
1.169 wiz 18: BUILD_DEPENDS+= p5-Perl4-CoreLibs-[0-9]*:../../devel/p5-Perl4-CoreLibs
19:
1.98 jlam 20: .include "../../mk/bsd.prefs.mk"
1.87 grant 21: .include "../../mk/compiler.mk"
1.79 jlam 22:
1.153 taca 23: EXTRACT_USING= gtar
1.178 obache 24: USE_TOOLS+= fgrep gmake perl
1.98 jlam 25: TEST_TARGET= tests
1.136 adrianp 26: MAKE_JOBS_SAFE= no
1.98 jlam 27:
28: HAS_CONFIGURE= yes
1.79 jlam 29: CONFIGURE_SCRIPT= ./config
1.110 rillig 30: CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
1.131 tnn 31: CONFIGURE_ARGS+= --install_prefix=${DESTDIR}
1.110 rillig 32: CONFIGURE_ARGS+= --openssldir=${PKG_SYSCONFDIR:Q}
1.158 jnemeth 33: CONFIGURE_ARGS+= shared no-fips
1.98 jlam 34:
1.114 grant 35: .if ${OPSYS} == "SunOS"
36: . if ${MACHINE_ARCH} == "sparc"
37: OPENSSL_MACHINE_ARCH= ${SPARC_TARGET_ARCH}
38: . elif ${MACHINE_ARCH} == "i386"
39: OPENSSL_MACHINE_ARCH= x86
40: . elif ${MACHINE_ARCH} == "x86_64"
41: OPENSSL_MACHINE_ARCH= ${MACHINE_ARCH}
42: . endif
43: # only override the configure target if we know the platform, falling
44: # back to ./config's autodetection if not.
45: . if defined(OPENSSL_MACHINE_ARCH) && !empty(OPENSSL_MACHINE_ARCH)
1.79 jlam 46: CONFIGURE_SCRIPT= ./Configure
1.114 grant 47: . if !empty(CC_VERSION:Mgcc*)
1.155 tez 48: CONFIGURE_ARGS+= solaris${${ABI}==64:?64:}-${OPENSSL_MACHINE_ARCH}-gcc
1.114 grant 49: . else
1.155 tez 50: CONFIGURE_ARGS+= solaris${${ABI}==64:?64:}-${OPENSSL_MACHINE_ARCH}-cc
1.114 grant 51: . endif
1.79 jlam 52: . endif
53: .elif ${OPSYS} == "IRIX"
54: CONFIGURE_ARGS+= no-asm
55: . if ${ABI} == "64"
56: CONFIGURE_SCRIPT= ./Configure
1.118 cbiere 57: . if !empty(CC_VERSION:Mgcc*)
58: CONFIGURE_ARGS+= irix64-mips4-gcc
59: . else
1.79 jlam 60: CONFIGURE_ARGS+= irix64-mips4-cc
1.118 cbiere 61: . endif
1.79 jlam 62: . endif
1.127 tnn 63: .elif ${OPSYS} == "OSF1"
1.180 joerg 64: USE_PLIST_SHLIB= no
1.127 tnn 65: CONFIGURE_SCRIPT= ./Configure
66: . if !empty(CC_VERSION:Mgcc*)
1.131 tnn 67: CONFIGURE_ARGS+= tru64-alpha-gcc
1.127 tnn 68: . else
1.131 tnn 69: CONFIGURE_ARGS+= tru64-alpha-cc
1.127 tnn 70: . endif
1.123 tron 71: .elif ${OPSYS} == "Darwin"
1.148 adam 72: CONFIGURE_SCRIPT= ./Configure
1.150 obache 73: . if defined(ABI) && ${ABI} == "64"
1.148 adam 74: CONFIGURE_ARGS+= darwin64-${MACHINE_ARCH}-cc
1.164 cegger 75: . elif ${MACHINE_ARCH} == "powerpc"
76: CONFIGURE_ARGS+= darwin-ppc-cc
1.148 adam 77: . else
78: CONFIGURE_ARGS+= darwin-${MACHINE_ARCH}-cc
79: . endif
80:
1.123 tron 81: .include "../../mk/dlopen.buildlink3.mk"
82:
83: SUBST_CLASSES+= dl
1.125 tron 84: SUBST_MESSAGE.dl= Adding dynamic link compatibility library.
1.123 tron 85: SUBST_STAGE.dl= post-configure
86: SUBST_FILES.dl= Makefile apps/Makefile crypto/Makefile \
1.131 tnn 87: crypto/pkcs7/Makefile test/Makefile
88: SUBST_SED.dl= -e 's,^EX_LIBS=,EX_LIBS=${DL_LDFLAGS:Q} ,g'
1.141 obache 89:
90: .elif ${OPSYS} == "Interix"
91:
92: SUBST_CLASSES+= soname
93: SUBST_STAGE.soname= post-configure
94: SUBST_FILES.soname= Makefile.shared
95: SUBST_SED.soname= -e 's/-Wl,-soname=/-Wl,-h,/g'
1.161 sno 96:
97: .elif ${OPSYS} == "HPUX"
98:
99: CONFIGURE_SCRIPT= ./Configure
100:
101: . if ${ABI} == "64"
102: . if ${MACHINE_ARCH} == "hppa"
103: CONFIGURE_ARGS+= hpux64-parisc2-${CC}
104: . else
105: CONFIGURE_ARGS+= hpux64-ia64-${CC}
106: . endif
107: . else
108: . if ${MACHINE_ARCH} == "hppa"
109: CONFIGURE_ARGS+= hpux-parisc-${CC}
110: . else
111: CONFIGURE_ARGS+= hpux-ia64-${CC}
112: . endif
113: . endif
1.182 joerg 114: .elif ${OPSYS} == "Linux"
115: . if ${MACHINE_ARCH} == "powerpc64"
116: CONFIGURE_SCRIPT= ./Configure
117: CONFIGURE_ARGS+= linux-ppc64
118: . endif
1.79 jlam 119: .endif
120:
1.102 jlam 121: .include "../../security/openssl/options.mk"
122:
1.79 jlam 123: CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS}
1.109 rillig 124: CONFIGURE_ENV+= PERL=${PERL5:Q}
1.14 veego 125:
1.181 jperkin 126: PLIST_SRC+= ${PKGDIR}/PLIST.common
1.180 joerg 127: USE_PLIST_SHLIB?= yes
128: .if ${USE_PLIST_SHLIB} == "yes"
129: PLIST_SRC+= ${PKGDIR}/PLIST.shlib
1.92 jlam 130: .endif
1.101 jlam 131: PLIST_SUBST+= SHLIB_VERSION=${OPENSSL_VERS:C/[^0-9]*$//}
132: PLIST_SUBST+= SHLIB_MAJOR=${OPENSSL_VERS:C/\..*$//}
1.98 jlam 133:
1.54 jlam 134: PKG_SYSCONFSUBDIR= openssl
1.53 fredb 135: CONF_FILES= ${PREFIX}/share/examples/openssl/openssl.cnf \
136: ${PKG_SYSCONFDIR}/openssl.cnf
1.54 jlam 137: OWN_DIRS= ${PKG_SYSCONFDIR}/certs ${PKG_SYSCONFDIR}/private
1.76 jschauma 138:
1.144 taca 139: INSTALLATION_DIRS+= share/examples/openssl
140:
1.131 tnn 141: # Fix the path to perl in various scripts.
1.79 jlam 142: pre-configure:
143: cd ${WRKSRC} && ${PERL5} util/perlpath.pl ${PERL5}
1.42 tron 144:
1.121 tron 145: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>