aboutsummaryrefslogtreecommitdiff
path: root/textproc/glimpse
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2007-06-23 03:47:30 +0000
committerBeech Rintoul <beech@FreeBSD.org>2007-06-23 03:47:30 +0000
commitc1b03952086561cc4c84be0f6663147f3473f02c (patch)
treeea786bf3cb3c8a520313e0e023933fe8dbe061df /textproc/glimpse
parent854b8ce0db1ae31611e73b81a332cc907dbf8f42 (diff)
downloadports-c1b03952086561cc4c84be0f6663147f3473f02c.tar.gz
ports-c1b03952086561cc4c84be0f6663147f3473f02c.zip
- Fix build w/gcc-4.2
- Add mirror - Makefile tweaks PR: ports/113932 Submitted by: Conrad J. Sabatier <conrads@cox.net> (maintainer) Approved by: sat (mentor)
Notes
Notes: svn path=/head/; revision=194105
Diffstat (limited to 'textproc/glimpse')
-rw-r--r--textproc/glimpse/Makefile18
-rw-r--r--textproc/glimpse/files/patch-index-glimpse.c14
-rw-r--r--textproc/glimpse/pkg-plist3
3 files changed, 25 insertions, 10 deletions
diff --git a/textproc/glimpse/Makefile b/textproc/glimpse/Makefile
index c46ab47c3482..5167db1e9d98 100644
--- a/textproc/glimpse/Makefile
+++ b/textproc/glimpse/Makefile
@@ -9,23 +9,27 @@
PORTNAME= glimpse
PORTVERSION= 4.13.1
CATEGORIES= textproc databases
-MASTER_SITES= ftp://ftp.polito.it/pub/tools/unix/harvest/
+MASTER_SITES= ftp://ftp.polito.it/pub/tools/unix/harvest/ \
+ LOCAL/beech
MAINTAINER= conrads@cox.net
COMMENT= Text search engine
-NO_CDROM= "Restrictive copyright (don't sell for profit)"
+PORTDOCS= README COPYRIGHT
+
+NO_CDROM= Restrictive copyright (don't sell for profit)
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} -DISO_CHAR_SET=1 -D__STRICT_ANSI__"
MAN1= glimpse.1 glimpseindex.1 glimpseserver.1 agrep.1
pre-configure:
- ${CHMOD} ugo+x ${WRKSRC}/configure
+ @${CHMOD} a+x ${WRKSRC}/configure
post-install:
- ${MKDIR} ${PREFIX}/share/doc/glimpse
- ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/glimpse
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/glimpse
- ${INSTALL_PROGRAM} ${WRKSRC}/index/wgconvert ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
+.endif
+ @${INSTALL_PROGRAM} ${WRKSRC}/index/wgconvert ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/textproc/glimpse/files/patch-index-glimpse.c b/textproc/glimpse/files/patch-index-glimpse.c
new file mode 100644
index 000000000000..0344b5301222
--- /dev/null
+++ b/textproc/glimpse/files/patch-index-glimpse.c
@@ -0,0 +1,14 @@
+--- ./index/glimpse.c.orig 2007-06-21 22:24:44.000000000 -0500
++++ ./index/glimpse.c 2007-06-21 22:25:15.000000000 -0500
+@@ -23,7 +23,7 @@
+ /* TEMP_DIR is normally defined in ../main.c; if we're building
+ * buildcast, that's not linked in, so we need to define one here. */
+ /* char * TEMP_DIR = NULL; */
+-static char * TEMP_DIR = "/tmp";
++char * TEMP_DIR = "/tmp";
+ #endif /* BUILDCAST */
+ extern int indexable_char[256];
+ extern int GenerateHash;
+
+
+
diff --git a/textproc/glimpse/pkg-plist b/textproc/glimpse/pkg-plist
index cad2320678f3..2e3ff28d3992 100644
--- a/textproc/glimpse/pkg-plist
+++ b/textproc/glimpse/pkg-plist
@@ -7,6 +7,3 @@ bin/glimpseserver
bin/tbuild
bin/uncast
bin/wgconvert
-share/doc/glimpse/COPYRIGHT
-share/doc/glimpse/README
-@dirrm share/doc/glimpse