mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
2d38196849
- Use modern LIB_DEPENDS - Use option helpers (aspell detection is broken upstream) - Stage support (untested) - Bump PORTREVISION - BROKEN: does not link (10.0 amd64): cc -DHAVE_PTHREAD -D_REENTRANT -O2 -pipe -fno-strict-aliasing -I/usr/local/include -DDPS_CONF_DIR=\"/prefix/dpsearch-4.53_2/etc/dpsearch\" -DDPS_VAR_DIR=\"/var/dpsearch\" -DDPS_SHARE_DIR=\"/prefix/dpsearch-4.53_2/share/dpsearch\" -o .libs/search.cgi search_cgi-search.o ./.libs/libdpsearch.so -L/usr/local/lib ./.libs/libdpcharset.so -lpthread -lm -lz -Wl,--rpath -Wl,/prefix/dpsearch-4.53_2/lib cc -DHAVE_PTHREAD -D_REENTRANT -O2 -pipe -fno-strict-aliasing -I/usr/local/include -DDPS_CONF_DIR=\"/prefix/dpsearch-4.53_2/etc/dpsearch\" -DDPS_VAR_DIR=\"/var/dpsearch\" -DDPS_SHARE_DIR=\"/prefix/dpsearch-4.53_2/share/dpsearch\" -o .libs/storedoc.cgi storedoc_cgi-storedoc.o ./.libs/libdpsearch.so -L/usr/local/lib ./.libs/libdpcharset.so -lpthread -lm -lz -Wl,--rpath -Wl,/prefix/dpsearch-4.53_2/lib ./.libs/libdpcharset.so: undefined reference to `dps_minimove_backward' ./.libs/libdpsearch.so: undefined reference to `DpsSQLLimit8' ./.libs/libdpsearch.so: undefined reference to `DpsSQLValue' ./.libs/libdpsearch.so: undefined reference to `DpsSQLResInit' ./.libs/libdpsearch.so: undefined reference to `DpsSQLLimit4' ./.libs/libdpsearch.so: undefined reference to `DpsSQLFree' ./.libs/libdpcharset.so: undefined reference to `dps_minimove_forward' ./.libs/libdpsearch.so: undefined reference to `DpsSQLNumRows' ./.libs/libdpsearch.so: undefined reference to `_DpsSQLQuery' cc: error: linker command failed with exit code 1 (use -v to see invocation)
100 lines
2.5 KiB
Makefile
100 lines
2.5 KiB
Makefile
# Created by: Maxim Zakharov <maxime@maxime.net.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dpsearch
|
|
PORTVERSION= 4.53
|
|
PORTREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://dataparksearch.googlecode.com/files/ \
|
|
http://www.dataparksearch.org/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Open source search engine for Internet and Intranet sites
|
|
|
|
BROKEN= Does not link
|
|
|
|
USE_LDCONFIG= yes
|
|
USES= gmake tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
PORTDOCS= *
|
|
DOCSDIR= ${PREFIX}/share/doc/dataparksearch
|
|
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/dpsearch \
|
|
--localstatedir=/var/dpsearch \
|
|
--enable-mp3 \
|
|
--with-zlib
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= THREADS SSL CHINESE JAPANESE MECAB APACHE IDN ASPELL \
|
|
EXTRACT DOCS
|
|
OPTIONS_DEFAULT= THREADS SSL PGSQL
|
|
OPTIONS_SINGLE= DB
|
|
OPTIONS_SINGLE_DB= PGSQL MYSQL SQLITE
|
|
CHINESE_DESC= Enable chinese charsets
|
|
JAPANESE_DESC= Enable japanese charsets
|
|
MECAB_DESC= Enable MeCab japanese analyzer
|
|
EXTRACT_DESC= Enable libextractor support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
CONFIGURE_ENV+= PORTNAME="${PORTNAME}"
|
|
|
|
THREADS_CONFIGURE_ENABLE= pthreads
|
|
THREADS_CONFIGURE_ENV= LIBS="-pthread"
|
|
|
|
ASPELL_LIB_DEPENDS= libaspell.so:${PORTSDIR}/textproc/aspell
|
|
#ASPELL_CONFIGURE_WITH= aspell
|
|
.if ! ${PORT_OPTIONS:MASPELL}
|
|
CONFIGURE_ARGS+=--without-aspell
|
|
.endif
|
|
|
|
EXTRACT_LIB_DEPENDS= libextractor.so:${PORTSDIR}/textproc/libextractor
|
|
|
|
SSL_CONFIGURE_WITH= openssl=${OPENSSLBASE}
|
|
|
|
CHARSETS_CONFIGURE_WITH= extra-charsets=all
|
|
|
|
CHINESE_CONFIGURE_WITH= extra-charsets=chinese
|
|
|
|
JAPANESE_CONFIGURE_WITH= extra-charsets=japanese
|
|
|
|
MECAB_LIB_DEPENDS= libmecab.so:${PORTSDIR}/japanese/mecab
|
|
MECAB_CONFIGURE_ENABLE= mecab
|
|
|
|
IDN_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn
|
|
IDN_CONFIGURE_ENABLE= idn
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
APACHE_USE= APACHE=22+
|
|
APACHE_CONFIGURE_ENABLE= apache-module
|
|
|
|
PGSQL_USE= PGSQL=yes
|
|
PGSQL_CONFIGURE_WITH= pgsql=${LOCALBASE}
|
|
|
|
MYSQL_USE= MYSQL=yes
|
|
MYSQL_CONFIGURE_WITH= mysql=${LOCALBASE}
|
|
|
|
SQLITE_LIB_DEPENDS= libsqlite.so:${PORTSDIR}/databases/sqlite2
|
|
SQLITE_CONFIGURE_WITH= sqlite=${LOCALBASE}
|
|
|
|
post-extract:
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-doc_Makefile.in
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/configure
|
|
|
|
pre-install:
|
|
@${INSTALL} -d ${STAGEDIR}${DATADIR}
|
|
|
|
post-install:
|
|
@${ECHO_CMD} '@exec ${CHMOD} 700 /var/dpsearch/cache' >> ${TMPPLIST}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} /var/dpsearch/
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} /var/dpsearch/' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|