mirror of
https://github.com/openwrt/packages.git
synced 2025-02-07 06:59:51 +00:00
This removes lines that set PKG_BUILD_DIR when the set value is no different from the default value. Specifically, the line is removed if the assigned value is: * $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT if it is set, so now this is identical to the default value. * $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR) if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it the same as the previous case * $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) This is the same as the default PKG_BUILD_DIR when there is no BUILD_VARIANT. * $(BUILD_DIR)/[name]-$(PKG_VERSION) where [name] is a string that is identical to PKG_NAME [1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
72 lines
1.6 KiB
Makefile
72 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2014-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mailsend
|
|
PKG_VERSION:=1.19
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION)
|
|
PKG_HASH:=565ef6be26c58ef75065c5519eae8dd55bae3142928619696b28d242b73493f7
|
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=COPYRIGHT
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/mailsend/default
|
|
SECTION:=mail
|
|
CATEGORY:=Mail
|
|
TITLE:=A command-line mail sender
|
|
URL:=https://github.com/muquit/mailsend
|
|
endef
|
|
|
|
define Package/mailsend-nossl
|
|
$(call Package/mailsend/default)
|
|
TITLE+= (without SSL)
|
|
VARIANT:=nossl
|
|
endef
|
|
|
|
define Package/mailsend
|
|
$(call Package/mailsend/default)
|
|
TITLE+= (with SSL)
|
|
DEPENDS:=+libopenssl
|
|
VARIANT:=ssl
|
|
endef
|
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
CONFIGURE_ARGS+= --with-openssl=$(STAGING_DIR)/usr
|
|
endif
|
|
|
|
define Package/mailsend/description
|
|
$(call Package/mailsend-nossl/description)
|
|
.
|
|
SSL supported is provided by OpenSSL.
|
|
endef
|
|
|
|
define Package/mailsend-nossl/description
|
|
Mailsend is a simple command line program to send mail via SMTP protocol.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Package/mailsend/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mailsend $(1)/usr/bin/
|
|
endef
|
|
|
|
Package/mailsend-nossl/install=$(Package/mailsend/install)
|
|
|
|
$(eval $(call BuildPackage,mailsend))
|
|
$(eval $(call BuildPackage,mailsend-nossl))
|