2013-04-03 02:45:31 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.40 2013/04/03 06:45:31 ajacoutot Exp $
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= personal search and metasearch
|
|
|
|
|
2013-01-14 10:04:49 -05:00
|
|
|
DISTNAME= pinot-1.03
|
2013-03-07 20:38:00 -05:00
|
|
|
REVISION= 0
|
2012-06-24 09:37:01 -04:00
|
|
|
|
|
|
|
SHARED_LIBS += xapianbackend 0.0 # 1.0
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
CATEGORIES= x11 misc
|
|
|
|
|
2011-11-09 13:13:55 -05:00
|
|
|
HOMEPAGE= http://code.google.com/p/pinot-search/
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
# LGPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2013-03-07 20:38:00 -05:00
|
|
|
WANTLIB += GL ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp
|
|
|
|
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0
|
|
|
|
WANTLIB += atk-bridge-2.0 atkmm-1.6 atspi c cairo cairo-gobject
|
|
|
|
WANTLIB += cairomm-1.0 crypto curl dbus-1 dbus-glib-1 drm e2fs-uuid
|
|
|
|
WANTLIB += exiv2 expat ffi fontconfig freetype gdk-3 gdk_pixbuf-2.0
|
|
|
|
WANTLIB += gdkmm-3.0 gio-2.0 giomm-2.4 glib-2.0 glibmm-2.4 gmime-2.6
|
|
|
|
WANTLIB += gmodule-2.0 gobject-2.0 gthread-2.0 gtk-3 gtkmm-3.0
|
|
|
|
WANTLIB += harfbuzz icudata icule icuuc idn m pango-1.0 pangocairo-1.0
|
2012-06-24 09:37:01 -04:00
|
|
|
WANTLIB += pangoft2-1.0 pangomm-1.4 pcre pixman-1 png pthread
|
|
|
|
WANTLIB += pthread-stubs sigc-2.0 sqlite3 ssl stdc++ tag textcat
|
2013-01-14 10:04:49 -05:00
|
|
|
WANTLIB += xapian xcb xcb-render xcb-shm xml++-2.6 xml2 z icuuc
|
|
|
|
WANTLIB += ICE SM atk-bridge-2.0 atspi harfbuzz icudata icule
|
2009-08-17 10:34:07 -04:00
|
|
|
|
2011-11-09 13:13:55 -05:00
|
|
|
MASTER_SITES= http://pinot-search.googlecode.com/files/
|
2009-08-17 10:34:07 -04:00
|
|
|
|
2011-05-08 09:20:28 -04:00
|
|
|
MODULES= devel/gettext
|
2009-08-17 10:34:07 -04:00
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
BUILD_DEPENDS= devel/boost \
|
2011-01-16 14:52:11 -05:00
|
|
|
devel/libexecinfo
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
# XXX catppt - catdvi
|
2012-06-24 09:37:01 -04:00
|
|
|
LIB_DEPENDS= x11/gtk3mm \
|
2010-11-22 03:36:47 -05:00
|
|
|
textproc/libxml++ \
|
2011-08-30 02:48:11 -04:00
|
|
|
mail/gmime>=2.6.0 \
|
2010-11-22 03:36:47 -05:00
|
|
|
net/curl \
|
|
|
|
audio/taglib \
|
|
|
|
x11/dbus-glib \
|
2011-11-09 13:13:55 -05:00
|
|
|
graphics/exiv2 \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/libidn
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
# port-lib-depends-check misses these ones because the depending lib
|
|
|
|
# is under lib/pinot/backends/
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= textproc/libtextcat \
|
|
|
|
databases/xapian-core
|
|
|
|
|
|
|
|
RUN_DEPENDS= devel/desktop-file-utils \
|
|
|
|
devel/xdg-utils \
|
|
|
|
archivers/unzip \
|
|
|
|
textproc/unrtf \
|
|
|
|
textproc/antiword \
|
2011-12-03 18:20:52 -05:00
|
|
|
misc/shared-mime-info \
|
|
|
|
x11/gtk+2,-guic
|
2009-08-17 10:34:07 -04:00
|
|
|
|
2012-06-06 14:29:47 -04:00
|
|
|
# pdftotext(1)
|
|
|
|
RUN_DEPENDS += print/poppler,-utils
|
|
|
|
|
2010-12-29 10:21:58 -05:00
|
|
|
USE_GROFF= Yes
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
MKDIR_P="mkdir -p --"
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--with-http=curl \
|
2012-06-24 09:37:01 -04:00
|
|
|
--with-ssl=/usr \
|
|
|
|
--enable-gtkmm3
|
|
|
|
|
2009-08-17 10:34:07 -04:00
|
|
|
.ifdef DEBUG
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/pinot
|
|
|
|
|
|
|
|
BASH_SCRIPTS=pinot-enum-index.sh pinot-cd.sh pinot-check-file.sh
|
|
|
|
|
|
|
|
pre-configure:
|
2012-06-24 09:37:01 -04:00
|
|
|
perl -pi -e 's,/usr/share,${LOCALBASE}/share,g' \
|
|
|
|
${WRKSRC}/textcat3*_conf.txt
|
2009-08-17 10:34:07 -04:00
|
|
|
${SUBST_CMD} \
|
2012-06-24 09:37:01 -04:00
|
|
|
${WRKSRC}/{Makefile.in,README,textcat_conf.txt,Core/pinot-search.1,Utils/xdgmime/xdgmime.c}
|
2009-08-17 10:34:07 -04:00
|
|
|
for i in ${BASH_SCRIPTS}; \
|
|
|
|
do perl -pi -e 's,/bin/bash/,/bin/sh,g' ${WRKSRC}/scripts/bash/$${i}; done
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pinot
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pinot/
|
2012-06-24 09:37:01 -04:00
|
|
|
rm ${PREFIX}/lib/pinot/*.{a,la}
|
2009-08-17 10:34:07 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|