PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+EXTRA_LDFLAGS+=-Wl,-rpath-link,$(STAGING_DIR)/usr/lib
+TARGET_CONFIGURE_OPTS+=\
+ CC="$(TARGET_CC) $(EXTRA_LDFLAGS)"
include $(INCLUDE_DIR)/package.mk
# uses GNU configure
define Build/Configure
- cd $(PKG_BUILD_DIR)
$(call Build/Configure/Default, \
--enable-ssl \
)
endef
-define Build/Compile
- EXTRA_CFLAGS="-I$(STAGING_DIR)/usr/include" \
- EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
- $(MAKE) -C $(PKG_BUILD_DIR) \
- all
-endef
-
define Package/ssmtp/install
$(INSTALL_DIR) $(1)/etc/ssmtp
$(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/