144e2930d7
use FLAVOR=lua52 to use lua 5.2 with these ports.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 2012/07/10 15:22:45 jasper Exp $
|
|
|
|
COMMENT= lua text classification module and anti-spam solution
|
|
|
|
DISTNAME= osbf-lua-2.0.4
|
|
REVISION = 3
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/2094/
|
|
HOMEPAGE= http://osbf-lua.luaforge.net/
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODULES= lang/lua
|
|
MODLUA_SA= Yes
|
|
SHARED_ONLY= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
do-build:
|
|
.for f in losbflib osbf_bayes osbf_aux
|
|
${CC} ${CFLAGS} -DLIB_VERSION=\"2.0.4\" -fPIC -I${MODLUA_INCL_DIR} \
|
|
-c ${WRKDIST}/$f.c -o ${WRKDIST}/$f.o
|
|
.endfor
|
|
${CC} ${CFLAGS} -shared ${WRKDIST}/losbflib.o ${WRKDIST}/osbf_bayes.o\
|
|
${WRKDIST}/osbf_aux.o -L${LOCALBASE}/lib -o ${WRKDIST}/osbf.so
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/osbf-lua
|
|
${INSTALL_DATA} ${WRKSRC}/osbf.so ${MODLUA_LIBDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/spamfilter/*.lua ${MODLUA_DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/spamfilter/*sample ${MODLUA_DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/spamfilter/*help ${MODLUA_DATADIR}
|
|
|
|
.include <bsd.port.mk>
|