Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # $OpenBSD: Makefile,v 1.15 2016/10/11 15:59:52 jca Exp $
  2. COMMENT= lua text classification module and anti-spam solution
  3. DISTNAME= osbf-lua-2.0.4
  4. REVISION = 6
  5. CATEGORIES= mail
  6. HOMEPAGE= http://osbf-lua.luaforge.net/
  7. # GPL
  8. PERMIT_PACKAGE_CDROM= Yes
  9. MASTER_SITES= http://luaforge.net/frs/download.php/2094/
  10. MODULES= lang/lua
  11. MODLUA_SA= Yes
  12. NO_TEST= Yes
  13. do-build:
  14. .for f in losbflib osbf_bayes osbf_aux
  15. ${CC} ${CFLAGS} -DLIB_VERSION=\"2.0.4\" -fPIC -I${MODLUA_INCL_DIR} \
  16. -c ${WRKDIST}/$f.c -o ${WRKDIST}/$f.o
  17. .endfor
  18. ${CC} ${CFLAGS} -shared ${WRKDIST}/losbflib.o ${WRKDIST}/osbf_bayes.o\
  19. ${WRKDIST}/osbf_aux.o -L${LOCALBASE}/lib -o ${WRKDIST}/osbf.so
  20. do-install:
  21. ${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/osbf-lua
  23. ${INSTALL_DATA} ${WRKSRC}/osbf.so ${MODLUA_LIBDIR}
  24. ${INSTALL_SCRIPT} ${WRKSRC}/spamfilter/*.lua ${PREFIX}/share/osbf-lua
  25. ${INSTALL_DATA} ${WRKSRC}/spamfilter/*sample ${PREFIX}/share/osbf-lua
  26. ${INSTALL_DATA} ${WRKSRC}/spamfilter/*help ${PREFIX}/share/osbf-lua
  27. .include <bsd.port.mk>