Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= postfix
  5. PKG_VERSION:= 3.1.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 88ac3e92755629077d9363319b1fa0db406efb10c2f22cdbb941bd8ab36fd733
  8. PKG_DESCR:= popular mail transfer agent
  9. PKG_SECTION:= net/mail
  10. PKG_BUILDDEP:= tinycdb
  11. PKG_URL:= http://www.postfix.org/
  12. PKG_SITES:= http://de.postfix.org/ftpmirror/official/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_HOST_DEPENDS:= !darwin
  15. # missing res_send support in resolver
  16. PKG_LIBC_DEPENDS:= glibc musl
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,POSTFIX,postfix,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. CONFIG_STYLE:= manual
  21. ALL_TARGET:=
  22. INSTALL_STYLE:= manual
  23. do-configure:
  24. (cd $(WRKBUILD) && make -f Makefile.init makefiles "CCARGS=-DNO_PCRE -DNO_NIS -DNO_DB -DHAS_CDB -I$(STAGING_TARGET_DIR)/usr/include" "AUXLIBS=$(STAGING_TARGET_DIR)/usr/lib/libcdb.a")
  25. postfix-install:
  26. $(INSTALL_DIR) $(IDIR_POSTFIX)/etc/postfix
  27. $(CP) $(WRKBUILD)/conf/* $(IDIR_POSTFIX)/etc/postfix
  28. $(CP) ./files/main.cf $(IDIR_POSTFIX)/etc/postfix
  29. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/sbin
  30. $(CP) $(WRKBUILD)/bin/* $(IDIR_POSTFIX)/usr/sbin
  31. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/libexec/postfix
  32. $(CP) $(WRKBUILD)/libexec/* $(IDIR_POSTFIX)/usr/libexec/postfix
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk