aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/pinot/Makefile
blob: 05d7e958c378a3a51af171e258012d2837229ea2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# New ports collection makefile for:    pinot
# Date created:     2006-11-19
# Whom:         Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#

PORTNAME=   pinot
PORTVERSION=    0.89
PORTREVISION=   1
CATEGORIES= deskutils
MASTER_SITES=   ${MASTER_SITE_BERLIOS}
#MASTER_SITES=  http://www.chez.com/colinf/pinot/   \
#       http://amra.dyndns.org/
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= thierry@FreeBSD.org
COMMENT=    Personal search and metasearch for the Free Desktop

BUILD_DEPENDS=  update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
LIB_DEPENDS=    xapian.21:${PORTSDIR}/databases/xapian-core \
        gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24  \
        textcat.0:${PORTSDIR}/textproc/libtextcat   \
        dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib   \
        xml\\+\\+-2.6:${PORTSDIR}/textproc/libxml++26   \
        boost_thread.4:${PORTSDIR}/devel/boost      \
        exif.12:${PORTSDIR}/graphics/libexif        \
        gmime-2.0:${PORTSDIR}/mail/gmime2       \
        tag.6:${PORTSDIR}/audio/taglib          \
        curl.4:${PORTSDIR}/ftp/curl
RUN_DEPENDS=    update-mime-database:${PORTSDIR}/misc/shared-mime-info  \
        antiword:${PORTSDIR}/textproc/antiword          \
        xdg-open:${PORTSDIR}/devel/xdg-utils            \
        pdftotext:${PORTSDIR}/graphics/xpdf         \
        catppt:${PORTSDIR}/textproc/catdoc          \
        unzip:${PORTSDIR}/archivers/unzip           \
        unrtf:${PORTSDIR}/textproc/unrtf            \
        catdvi:${PORTSDIR}/print/catdvi

LDFLAGS+=   -L${LOCALBASE}/lib
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-http=curl --with-ssl=${OPENSSLBASE}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" MKDIR_P="${MKDIR}"

USE_XORG=   pixman
USE_GETTEXT=    yes
USE_SQLITE= 3
USE_PYTHON= yes
USE_OPENSSL=    yes
USE_LDCONFIG=   ${PREFIX}/lib/pinot/backends ${PREFIX}/lib/pinot/filters

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=    --enable-debug=yes
.endif

INSTALLS_ICONS= yes

PLIST_SUB=  DESKBAR_MOD="${LDESKBAR_MOD}"

MAN1=       pinot-dbus-daemon.1 pinot-index.1 pinot-label.1 pinot-search.1 pinot.1

PORTDOCS=   AUTHORS ChangeLog ChangeLog-dijon INSTALL NEWS README TODO

LM2FIX=     textcat_conf.txt textcat3_conf.txt
SHR2FIX=    IndexSearch/pinot-search.1 README
UL2FIX=     Utils/xdgmime/xdgmime.c

LDESKBAR_MOD=   lib/deskbar-applet/modules-2.20-compatible
DESKBAR_MOD=    ${PREFIX}/${LDESKBAR_MOD}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
BROKEN=     does not build on ${OPSYS}-${OSREL}
.endif

.if ${OSVERSION} < 700041
SUB_FILES=  pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.endif

post-extract:
# remove pre-generated messages catalogs
    ${FIND} ${WRKSRC}/po -name "*.gmo" -delete

pre-configure:
    ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|'  \
        ${LM2FIX:S|^|${WRKSRC}/|}
    ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|'    \
        ${UL2FIX:S|^|${WRKSRC}/|}
    ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
        ${SHR2FIX:S|^|${WRKSRC}/|}
    ${REINPLACE_CMD} -e 's|Icon=pinot.png|Icon=pinot|g' \
        ${WRKSRC}/*.desktop

post-install:
    ${TOUCH} ${DATADIR}/stopwords/.empty_file
    ${MKDIR} ${DESKBAR_MOD}
.for pyscript in pinot-module
    ${INSTALL_DATA} ${WRKSRC}/scripts/python/${pyscript}.py ${DESKBAR_MOD}
.endfor
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DESKBAR_MOD}
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DESKBAR_MOD}
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py       \
        ${PREFIX}/lib/deskbar-applet/handlers
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py    \
        ${PREFIX}/lib/deskbar-applet/handlers
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.if ${OSVERSION} < 700041
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_MSG}
.endif

.include <bsd.port.post.mk>
>2010-01-072-4/+4 * Define rules for PORTSCOUT checking in some of my portsgarga2010-01-051-0/+2 * Now that -CURRENT has /usr/bin/unzip, explicitly invoke (and depend on)marcus2010-01-032-3/+45 * - Port completely superseded and replaced by archivers/starmm2009-12-267-123/+0 * - Update to 0.06pgollucci2009-12-262-4/+4 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-215-12/+0 * - Update to 0.19gabor2009-12-212-4/+4 * Update to 2.28.2.marcus2009-12-183-4/+7 * - Update to 0.1.1.4pgj2009-12-164-14/+12 * Upgrade to version 1.5.1.olgeni2009-12-132-4/+4 * - Update HsColour to 1.15pgj2009-12-073-5/+6 * The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3 * Presenting GNOME 2.28.1 for FreeBSD. The official release notes for thismarcus2009-11-294-17/+21 * - Update my mail address to FreeBSDsylvio2009-11-2810-11/+11 * . Update to 2.7.1.glewis2009-11-272-5/+4 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-273-6/+5 * Add option to build minimal possible executable supporting only 7zip archives.nox2009-11-272-19/+35 * - Update to 0.36jadawin2009-11-252-5/+5 * - Mark MAKE_JOBS_UNSAFEpav2009-11-231-0/+1 * - Mark MAKE_JOBS_UNSAFEpav2009-11-211-0/+1 * - Fix runtime issues when using CUSTOM prefixkmoore2009-11-121-0/+5 * - Update to 2.023jadawin2009-11-102-4/+4 * - Update to 2.023jadawin2009-11-102-4/+4 * - Update to 3.90gabor2009-11-082-6/+6 * For unknown reason bsd.port.mk's eval dislike ( and ) in the path, whenache2009-11-061-4/+5 * - Fix build on 9.0amdmi32009-11-041-3/+12 * Simple module for extract archivesmiwi2009-11-045-0/+45 * Archive::Rar uses the standard perl module install processmiwi2009-11-045-0/+37 * Update to 3.04.fjoe2009-11-022-4/+4 * - Update to 0.17gabor2009-10-312-4/+4 * Remove -DUNICODE_WCHAR, too earlyache2009-10-261-1/+1 * Upgrade to 6.0ache2009-10-269-256/+41 * - Add xz compression support.wxs2009-10-222-2/+663 * zlib is already in base so this port isn't needed.skreuzer2009-10-206-50/+0 * Add archivers/amigadepacker, a tool for depacking some compressed Amiga formatsehaupt2009-10-194-0/+43 * A Massively Spiffy Yet Delicately Unobtrusive Compression Libraryskreuzer2009-10-196-0/+50 * - Change maintainer's email addresswen2009-10-161-2/+2 * - Update to 0.6avl2009-10-042-4/+4 * - Speed up build phaseavl2009-10-031-0/+7 * * Enable assembly language optimizations on amd64.naddy2009-10-023-2/+93 * Update to 9.04.nox2009-10-012-4/+4 * - Update to 3.9.6avl2009-09-292-4/+4 * Update WWWehaupt2009-09-281-1/+1 * LZMA Utils have been replaced by XZ Utils (archivers/xz)naddy2009-09-229-161/+0 * lzmautils -> xznaddy2009-09-221-1/+0 * You can now use -J to (un)compress xz format files (.tar.xz, .txz).naddy2009-09-211-3/+3 * lzmautils -> xznaddy2009-09-211-1/+2 * also conflicts with archivers/xznaddy2009-09-211-1/+2 * lzmautils-devel -> xznaddy2009-09-213-3/+5 * Update to 4.999.9beta.naddy2009-09-217-45/+82 * - Fix output from `xz -H` however when running tests the (de)compression doesn'tmiwi2009-09-204-0/+36 * - Pass maintainership to submittermiwi2009-09-201-1/+1 * - Pass maintainership to submittermiwi2009-09-203-4/+4 * - Pass maintainership to submittermiwi2009-09-192-5/+7 * - Pass maintainership to submittermiwi2009-09-191-1/+1 * - Add missing pear dependencymiwi2009-09-191-1/+3 * Update to 1.8garga2009-09-162-7/+7 * games/wesnoth no longer has USE_GCC=3.4, so nor do we according to thegerald2009-09-141-3/+1 * - Update to 1.54jadawin2009-09-112-4/+4 * Update to 9.07 betabland2009-09-112-5/+5 * - Update to 20090203miwi2009-09-096-69/+65 * - Pass maintainership to submittermiwi2009-09-091-2/+2 * Upgrade to 3.90 releaseache2009-09-052-5/+5 * - Update GHC and Haskell ports to 6.10.4 (for both i386 and amd64), bumppgj2009-09-028-101/+189 * - Retire MASTER_SITE_SOURCEFORGE_EXTENDED, it's no longer needed - all mirror...amdmi32009-09-021-1/+1 * The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-023-5/+4 * - Update to 2.021jadawin2009-08-312-4/+4 * - Update to 2.021jadawin2009-08-312-4/+4 * - Take maintainershipmiwi2009-08-293-3/+3 * Reset chinsan@FreeBSD.org due to numerous maintainer-timeouts and nolinimon2009-08-293-3/+3 * Add packddirmakc2009-08-241-0/+1 * Add new port archivers/packddir:makc2009-08-244-0/+58 * - Fix fetchmiwi2009-08-231-2/+1 * - Take over maintainershipmiwi2009-08-231-1/+1 * - Update to 9.06 betamiwi2009-08-233-25/+6 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-2221-39/+21 * Reset sbahra at his request due to lack of time to work on these ports.linimon2009-08-201-1/+1 * Reset mat@FreeBSD.org due to maintainer-timeouts and no response to email.linimon2009-08-162-3/+1 * - A minor upstream patch that fixes a problem with themiwi2009-08-152-2/+7 * - Update to 2.1.5miwi2009-08-134-8/+10 * Mk/bsd.kde4.mk:makc2009-08-102-18/+8 * Update to 0.63perky2009-08-092-4/+4 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-055-49/+87 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-0317-48/+16 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-318-5/+8 * Utilize %%SITE_PERL%% and %%PERL_ARCH%% in pkg-plistspgollucci2009-07-312-8/+8 * - Update to 9.04.betamiwi2009-07-273-4/+24 * - lang/perl5.6 is dead, remove PERL_LEVEL/PERL_VERSION < 500801 checkspgollucci2009-07-233-21/+3 * Update to 3.90 beta 4ache2009-07-212-5/+5 * Update to 2.0(.)2.tobez2009-07-152-4/+4 * Upgrade to 1.10.kuriyama2009-07-152-6/+6 * Add missing dependency when Nautilus extension disabled is.avl2009-07-101-1/+3 * - Update to 3.9.5amdmi32009-07-093-8/+8 * - Fix build on 6.Xmiwi2009-07-081-1/+1 * o Uphold CXX, CXXFLAGS and LDFLAGS.lioux2009-07-051-0/+4 * - Pass maintainership to submittermiwi2009-07-051-1/+1 * - Update to 1.34pgollucci2009-07-042-5/+5 * - Update to 1.30jadawin2009-07-012-4/+4 * Update to 2.26.3.avl2009-07-014-17/+33 * - Update to 1.7.araujo2009-06-302-6/+6 * Lzip is a lossless data compressor based on the LZMA algorithm,amdmi32009-06-224-0/+33 * - Update mirrorsdhn2009-06-211-4/+4 * - Update to 1.28pgollucci2009-06-192-7/+6 * - Update to 2.0.0RC2miwi2009-06-172-4/+4 * - Update MASTER_SITESjadawin2009-06-161-2/+2 * - Update to 0.32pgollucci2009-06-162-6/+6 * - Update to 1.52jadawin2009-06-152-4/+4 * Update to 1.7.2skreuzer2009-06-122-4/+4 * Avoid overwriting misc/deco's latest link.ru2009-06-101-0/+1 * - Update maintainer mail adressemiwi2009-06-083-3/+3 * - Fix build with custom LOCALBASE.dhn2009-06-082-4/+8 * Fix plist with custom PREFIX and bump PORTREVISIONitetcu2009-06-071-3/+5 * - Update to 2.020jadawin2009-06-052-4/+4 * - Update to 2.020jadawin2009-06-042-4/+4 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-032-4/+3 * . add linux-f10 ports to the rank of CONFLICTS for linux-fc4 ports;bsam2009-06-032-4/+4 * . add CONFLICTS to linux-f8 infrastructure ports;bsam2009-06-032-0/+6 * Here are new Linux Fedora 10 infrastructure ports.bsam2009-06-025-25/+31 * - Update to 4.65miwi2009-05-312-4/+4 * Change MAINTAINER on my ports to my FreeBSD email addressavl2009-05-294-4/+4 * . Fix the packing list.glewis2009-05-251-0/+2 * . Update to 2.7.0.glewis2009-05-252-16/+10 * - Update to 2.13.0acm2009-05-221-16/+0 * Update pkg-plist to reflect directories left behind after deinstalljpaetzel2009-05-202-1/+3 * Update to 2.26.2.kwm2009-05-202-4/+4 * - Mark most of my ports MAKE_JOBS_SAFE=yespgollucci2009-05-162-0/+4 * Add optional dependency on print/kdeutils4-printer-appletmakc2009-05-161-1/+9 * Chase libgmp and bump PORTREVISION.ale2009-05-132-3/+4 * - Update to 2.019jadawin2009-05-114-8/+8 * Update KDE ports to 4.2.3makc2009-05-103-9/+14 * - Add missing patch fileacm2009-05-091-0/+16 * - New port: archivers/gambas2-gb-compress-zlibacm2009-05-093-0/+21 * - New port: archivers/gambas2-gb-compress-bzlib2acm2009-05-093-0/+21 * update xfce to 4.6.1oliver2009-05-061-1/+1 * - Unbreak on -CURRENT.wxs2009-05-021-1/+1 * - simplify dependencyleeym2009-05-011-6/+3 * - Mark MAKE_JOBS_UNSAFE=yespgollucci2009-04-291-0/+2 * Presenting GNOME 2.26.1 for FreeBSD.kwm2009-04-243-5/+14 * - Update to 1.48jadawin2009-04-232-4/+4 * - Mark all kde4 ports MAKE_JOBS_UNSAFEmiwi2009-04-171-1/+1 * - Reset ditesh (at) gathani.org due to long period of inactivity.miwi2009-04-112-2/+2 * Presenting GNOME 2.26 for FreeBSD. Seemarcus2009-04-103-16/+30 * - Update to 0.15gabor2009-04-103-5/+5 * - convert to RUBYGEM_AUTOPLISTpgollucci2009-04-091-1/+1 * - Update to 1.04.stas2009-04-073-7/+5 * Fix MASTER_SITES and WWWitetcu2009-04-072-2/+2 * - Update to 2.017jadawin2009-04-064-8/+8 * - Not really MAKE_JOBS_SAFEpav2009-04-051-1/+1 * - Fix build [1]miwi2009-04-052-2/+3 * - Update to 2.0.0-RC1miwi2009-04-052-4/+4 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-023-7/+9 * Here are new Linux Fedora 8 infrastructure ports.bsam2009-04-0113-98/+74 * Finish repocopies of new linux-f8 infrastructure ports:bsam2009-04-012-0/+6 * - Allow to build with MAKE_JOBS_SAFEmiwi2009-04-013-2/+7 * Remove MAKE_JOBS_SAFE, port has no build target.ehaupt2009-03-301-1/+0 * Sanitize knobs order and decapitalize "YES" string.danfe2009-03-301-2/+2 * - Fix files/Makefile and mark the port as MAKE_JOBS_SAFEdanfe2009-03-302-5/+6 * Introduce Perl 5.10.0skv2009-03-292-3/+15 * Mark all my ports as MAKE_JOBS_SAFE and MAKE_JOBS_UNSAFEgarga2009-03-293-0/+3 * Mark MAKE_JOBS_SAFEehaupt2009-03-279-0/+15 * Mark MAKE_JOBS_SAFE for SMP compilationlioux2009-03-261-0/+1 * - Mark MAKE_JOBS_SAFE for parallel building.miwi2009-03-261-0/+1 * Mark MAKE_JOBS_SAFE for parallel building.naddy2009-03-261-0/+1 * - Mark MAKE_JOBS_SAFE for SMP compilationmiwi2009-03-252-0/+2 * bump PORTREVISION after cmake updatemakc2009-03-251-0/+1 * Mark MAKE_JOBS_SAFE for SMP compilation.naddy2009-03-251-0/+1 * - Add MAKE_JOBS_SAFE for SMP compilationmm2009-03-251-0/+1 * - Update to 1.5.2chinsan2009-03-242-4/+4 * Mark MAKE_JOBS_UNSAFEnox2009-03-241-0/+1 * - Update to 1.5.1chinsan2009-03-232-4/+4 * Welcome to the new linux ports infrastructure which allows usingbsam2009-03-203-6/+3 * - Update to 0.14gabor2009-03-162-4/+4 * - Fixes a missed offset update when using quiet mode with par2create.araujo2009-03-162-2/+15 * Unbreak on 64bit platformsarved2009-03-143-4/+22 * Update to 1.22 which adds --xz/-J support for xz compression.naddy2009-03-105-99/+7 * - Update to 1.46jadawin2009-03-092-4/+4 * Update to 0.1.1.knu2009-03-093-16/+21 * Update KDE to 4.2.1.makc2009-03-092-3/+23 * Bump PORTREVISION after xfce 4.6 updateoliver2009-03-061-0/+1 * - Fix build on recent -CURRENT renaming strnlen local function to _strnlen togarga2009-03-052-18/+12 * Unbreak build on perl-5.10skv2009-03-043-0/+9 * - Update to 0.5.2beat2009-03-032-5/+5 * Unbreak build on perl 5.10skv2009-02-272-3/+6 * CamlBZ2 provides OCaml bindings for libbz2 (AKA bzip2), a popular compressiongarga2009-02-25