3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=991615f73338a571b6a1be7d74906934
10 PKG_SOURCE_URL
:=http
://www.openssl.org
/source
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 OPENSSL_NO_CIPHERS
:= no-idea no-md2 no-mdc2 no-rc2 no-rc5
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,LIBOPENSSL
,libopenssl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(eval
$(call PKG_template
,OPENSSL_UTIL
,openssl-util
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(PKG_BUILD_DIR
)/.configured
:
27 $(SED
) 's,/CFLAG=,/CFLAG= $(TARGET_SOFT_FLOAT) ,g' $(PKG_BUILD_DIR
)/Configure
28 (cd
$(PKG_BUILD_DIR
); \
30 .
/Configure linux-
$(ARCH
) \
32 --openssldir
=/etc
/ssl \
33 -I
$(STAGING_DIR
)/usr
/include \
34 -L
$(STAGING_DIR
)/usr
/lib
-ldl \
35 $(OPENSSL_NO_CIPHERS
) \
36 shared no-asm no-ec no-engine no-err no-fips no-hw no-krb5 no-threads zlib-dynamic \
40 $(PKG_BUILD_DIR
)/.built
:
41 rm -rf
$(PKG_INSTALL_DIR
)
42 mkdir
-p
$(PKG_INSTALL_DIR
)
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) -j1 \
44 MAKEDEPPROG
="$(TARGET_CC)" \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) -j1 \
48 CCOPTS
="$(TARGET_CFLAGS) -fomit-frame-pointer" \
49 AR
="$(TARGET_CROSS)ar r" \
50 RANLIB
="$(TARGET_CROSS)ranlib" \
52 # Work around openssl build bug to link libssl.so with libcrypto.so.
53 -rm $(PKG_BUILD_DIR
)/libssl.so.
*.
*.
*
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) -j1 \
56 CCOPTS
="$(TARGET_CFLAGS) -fomit-frame-pointer" \
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) -j1 \
59 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
64 install -d
-m0755
$(IDIR_LIBOPENSSL
)/usr
/lib
65 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{crypto
,ssl
}.so.
* $(IDIR_LIBOPENSSL
)/usr
/lib
/
66 chmod
0644 $(IDIR_LIBOPENSSL
)/usr
/lib
/*
67 $(RSTRIP
) $(IDIR_LIBOPENSSL
)
68 $(IPKG_BUILD
) $(IDIR_LIBOPENSSL
) $(PACKAGE_DIR
)
71 install -d
-m0755
$(IDIR_OPENSSL_UTIL
)/etc
/ssl
72 cp
-fp
$(PKG_INSTALL_DIR
)/etc
/ssl
/openssl.cnf
$(IDIR_OPENSSL_UTIL
)/etc
/ssl
/
73 install -d
-m0755
$(IDIR_OPENSSL_UTIL
)/etc
/ssl
/certs
74 install -d
-m0700
$(IDIR_OPENSSL_UTIL
)/etc
/ssl
/private
75 install -d
-m0755
$(IDIR_OPENSSL_UTIL
)/usr
/bin
76 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/bin
/openssl
$(IDIR_OPENSSL_UTIL
)/usr
/bin
/
77 $(RSTRIP
) $(IDIR_OPENSSL_UTIL
)
78 $(IPKG_BUILD
) $(IDIR_OPENSSL_UTIL
) $(PACKAGE_DIR
)
80 $(STAGING_DIR
)/usr
/lib
/libssl.so
: $(PKG_BUILD_DIR
)/.built
81 mkdir
-p
$(STAGING_DIR
)/usr
/include
82 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/openssl
$(STAGING_DIR
)/usr
/include/
83 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
84 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{crypto
,ssl
}.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
87 install-dev
: $(STAGING_DIR
)/usr
/lib
/libssl.so
91 $(STAGING_DIR
)/usr
/include/openssl \
92 $(STAGING_DIR
)/usr
/lib
/lib
{crypto
,ssl
}.
{a
,so
*} \