Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= bogofilter
  5. PKG_VERSION:= 1.2.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 39d27c13eae8a5064d68e20d585e60de
  8. PKG_DESCR:= mail filter
  9. PKG_SECTION:= mail
  10. PKG_BUILDDEP:= libiconv-tiny db
  11. PKG_DEPENDS:= libdb
  12. PKG_URL:= http://bogofilter.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=bogofilter/}
  14. PKG_NEED_CXX:= 1
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,BOGOFILTER,bogofilter,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ENV+= LIBS="-liconv" \
  19. ac_cv_func_memcmp_working=yes
  20. CONFIGURE_ARGS+= --without-libsqlite3-prefix \
  21. --without-libqdbm-prefix \
  22. --with-included-gsl \
  23. --disable-static \
  24. --with-libdb-prefix=${STAGING_TARGET_DIR}/usr \
  25. --disable-transactions
  26. pre-build:
  27. touch $(WRKBUILD)/src/lexer_v3.l $(WRKBUILD)/src/Makefile.in $(WRKBUILD)/src/lexer_v3.c
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_BOGOFILTER}/usr/bin
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/bogofilter \
  31. ${IDIR_BOGOFILTER}/usr/bin/
  32. include ${TOPDIR}/mk/pkg-bottom.mk