44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2014/09/16 12:45:21 sthen Exp $
|
|
|
|
COMMENT= web search application
|
|
|
|
V= 1.2.15
|
|
PORTROACH= limitw:1,even
|
|
DISTNAME= xapian-omega-${V}
|
|
|
|
CATEGORIES= www textproc
|
|
|
|
HOMEPAGE= http://xapian.org/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c m uuid stdc++ z xapian pcre magic
|
|
|
|
MASTER_SITES= http://oligarchy.co.uk/xapian/${V}/
|
|
|
|
|
|
LIB_DEPENDS= databases/xapian-core>=${V} \
|
|
devel/pcre \
|
|
devel/libmagic
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/xapian-omega \
|
|
pkglibbindir=${PREFIX}/libexec/xapian-omega/cgi-bin
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/omega/templates
|
|
${INSTALL_DATA} ${WRKBUILD}/templates/godmode ${PREFIX}/share/omega/templates
|
|
${INSTALL_DATA} ${WRKBUILD}/templates/opensearch ${PREFIX}/share/omega/templates
|
|
${INSTALL_DATA} ${WRKBUILD}/templates/query ${PREFIX}/share/omega/templates
|
|
${INSTALL_DATA} ${WRKBUILD}/templates/topterms ${PREFIX}/share/omega/templates
|
|
${INSTALL_DATA} ${WRKBUILD}/templates/xml ${PREFIX}/share/omega/templates
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/omega/templates/inc
|
|
${INSTALL_DATA} ${WRKBUILD}/templates/inc/* ${PREFIX}/share/omega/templates/inc
|
|
|
|
.include <bsd.port.mk>
|