36f350da56
from pedro@
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2007/03/17 21:37:08 jolan Exp $
|
|
|
|
COMMENT= "lua text classification module and anti-spam solution"
|
|
|
|
DISTNAME= osbf-lua-2.0.4
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/2094/
|
|
HOMEPAGE= http://osbf-lua.luaforge.net/
|
|
|
|
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
SHARED_ONLY= Yes
|
|
NO_REGRESS= Yes
|
|
RUN_DEPENDS= :lua->=5.1:lang/lua
|
|
|
|
do-build:
|
|
.for f in losbflib osbf_bayes osbf_aux
|
|
${CC} ${CFLAGS} -DLIB_VERSION=\"2.0.4\" -fPIC -I${LOCALBASE}/include\
|
|
-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} ${PREFIX}/lib/lua/5.1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/osbf-lua
|
|
${INSTALL_DATA} ${WRKSRC}/osbf.so ${PREFIX}/lib/lua/5.1
|
|
${INSTALL_SCRIPT} ${WRKSRC}/spamfilter/*.lua ${PREFIX}/share/osbf-lua
|
|
${INSTALL_DATA} ${WRKSRC}/spamfilter/*sample ${PREFIX}/share/osbf-lua
|
|
${INSTALL_DATA} ${WRKSRC}/spamfilter/*help ${PREFIX}/share/osbf-lua
|
|
|
|
.include <bsd.port.mk>
|