# $NetBSD: Makefile,v 1.12 2014/05/03 13:01:24 alnsn Exp $ # DISTNAME= osbf-lua-2.0.4 PKGREVISION= 5 CATEGORIES= mail MASTER_SITES= http://luaforge.net/frs/download.php/2094/ MAINTAINER= wiz@NetBSD.org HOMEPAGE= http://osbf-lua.luaforge.net/ COMMENT= Lua C module for text classification LICENSE= gnu-gpl-v2 PREV_PKGPATH= mail/lua-OSBF USE_TOOLS+= gmake INSTALL_TARGET= install install_spamfilter SUBST_CLASSES+= path SUBST_STAGE.path= post-patch SUBST_MESSAGE.path= Fixing paths in config SUBST_FILES.path= config SUBST_FILES.path+= spamfilter/getopt.lua SUBST_FILES.path+= docs/index.html SUBST_SED.path= -e 's,/usr/local,${PREFIX},g' SUBST_SED.path+= -e 's,lib/lua/5.1,lib/lua/5.2,g' REPLACE_LUA+= spamfilter/cache_report.lua REPLACE_LUA+= spamfilter/classify.sample REPLACE_LUA+= spamfilter/create_databases.lua REPLACE_LUA+= spamfilter/database_status.lua REPLACE_LUA+= spamfilter/getopt.lua REPLACE_LUA+= spamfilter/random.lua REPLACE_LUA+= spamfilter/roc.lua REPLACE_LUA+= spamfilter/spamfilter.lua REPLACE_LUA+= spamfilter/spamfilter_commands.lua REPLACE_LUA+= spamfilter/toer.lua REPLACE_LUA+= spamfilter/train.sample .include "../../lang/lua/application.mk" .include "../../lang/lua/buildlink3.mk" .include "../../mk/bsd.pkg.mk"