3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=771c1489488e62668d673478311d63ca
10 PKG_SOURCE_URL
:=http
://nbd.vd-s.ath.cx
/openwrt
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBMATRIXSSL
,libmatrixssl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
25 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
26 $(TARGET_CONFIGURE_OPTS
) \
27 DFLAGS
="$(TARGET_CFLAGS) -Wall"
31 install -d
-m0755
$(IDIR_LIBMATRIXSSL
)/usr
/lib
32 cp
-fpR
$(PKG_BUILD_DIR
)/src
/libmatrixssl.so.
* $(IDIR_LIBMATRIXSSL
)/usr
/lib
/
33 $(RSTRIP
) $(IDIR_LIBMATRIXSSL
)
34 $(IPKG_BUILD
) $(IDIR_LIBMATRIXSSL
) $(PACKAGE_DIR
)
36 $(STAGING_DIR
)/usr
/lib
/libmatrixssl.so
: $(PKG_BUILD_DIR
)/.built
37 mkdir
-p
$(STAGING_DIR
)/usr
/include/matrixSsl
38 cp
-fpR
$(PKG_BUILD_DIR
)/matrixSsl.h
$(STAGING_DIR
)/usr
/include/matrixSsl
39 ln
-sf matrixSsl
/matrixSsl.h
$(STAGING_DIR
)/usr
/include/matrixSsl.h
40 mkdir
-p
$(STAGING_DIR
)/usr
/lib
41 cp
-fpR
$(PKG_BUILD_DIR
)/src
/libmatrixssl.so
* $(STAGING_DIR
)/usr
/lib
43 install-dev
: $(STAGING_DIR
)/usr
/lib
/libmatrixssl.so
47 $(STAGING_DIR
)/usr
/include/matrixSsl
* \
48 $(STAGING_DIR
)/usr
/lib
/libmatrixssl.so
* \
50 compile-targets
: install-dev
51 clean-targets
: uninstall-dev