1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# openswan 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunOPENSWAN_VERSION = 3.0.0 8*4882a593SmuzhiyunOPENSWAN_SITE = $(call github,xelerance,Openswan,v$(OPENSWAN_VERSION)) 9*4882a593SmuzhiyunOPENSWAN_LICENSE = GPL-2.0+, BSD-3-Clause 10*4882a593SmuzhiyunOPENSWAN_LICENSE_FILES = COPYING LICENSE 11*4882a593SmuzhiyunOPENSWAN_CPE_ID_VENDOR = xelerance 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunOPENSWAN_DEPENDENCIES = host-bison host-flex gmp iproute2 14*4882a593SmuzhiyunOPENSWAN_MAKE_OPTS = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" POD2MAN="" XMLTO="" \ 15*4882a593Smuzhiyun USERCOMPILE="$(TARGET_CFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \ 16*4882a593Smuzhiyun USERLINK="$(TARGET_LDFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \ 17*4882a593Smuzhiyun INC_USRLOCAL=/usr USE_KLIPS=false USE_MAST=false USE_NM=false \ 18*4882a593Smuzhiyun USE_NOMANINSTALL=true WERROR="" 19*4882a593Smuzhiyun 20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBCURL),y) 21*4882a593SmuzhiyunOPENSWAN_DEPENDENCIES += libcurl 22*4882a593SmuzhiyunOPENSWAN_MAKE_OPTS += USE_LIBCURL=true 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y) 26*4882a593SmuzhiyunOPENSWAN_DEPENDENCIES += openssl 27*4882a593SmuzhiyunOPENSWAN_MAKE_OPTS += HAVE_OPENSSL=true 28*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OCF_LINUX),y) 29*4882a593SmuzhiyunOPENSWAN_MAKE_OPTS += HAVE_OCF=true 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyunendif 32*4882a593Smuzhiyun 33*4882a593Smuzhiyundefine OPENSWAN_BUILD_CMDS 34*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \ 35*4882a593Smuzhiyun $(OPENSWAN_MAKE_OPTS) programs 36*4882a593Smuzhiyunendef 37*4882a593Smuzhiyun 38*4882a593Smuzhiyundefine OPENSWAN_INSTALL_TARGET_CMDS 39*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \ 40*4882a593Smuzhiyun $(OPENSWAN_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install 41*4882a593Smuzhiyunendef 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun$(eval $(generic-package)) 44