- 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)
This commit is contained in:
Beech Rintoul 2007-06-23 03:47:30 +00:00
parent 854b8ce0db
commit c1b0395208
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194105
3 changed files with 25 additions and 10 deletions

View file

@ -9,23 +9,27 @@
PORTNAME= glimpse PORTNAME= glimpse
PORTVERSION= 4.13.1 PORTVERSION= 4.13.1
CATEGORIES= textproc databases 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 MAINTAINER= conrads@cox.net
COMMENT= Text search engine 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 GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} -DISO_CHAR_SET=1 -D__STRICT_ANSI__" CONFIGURE_ENV= CFLAGS="${CFLAGS} -DISO_CHAR_SET=1 -D__STRICT_ANSI__"
MAN1= glimpse.1 glimpseindex.1 glimpseserver.1 agrep.1 MAN1= glimpse.1 glimpseindex.1 glimpseserver.1 agrep.1
pre-configure: pre-configure:
${CHMOD} ugo+x ${WRKSRC}/configure @${CHMOD} a+x ${WRKSRC}/configure
post-install: post-install:
${MKDIR} ${PREFIX}/share/doc/glimpse .if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/glimpse @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/glimpse @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}/
${INSTALL_PROGRAM} ${WRKSRC}/index/wgconvert ${PREFIX}/bin .endif
@${INSTALL_PROGRAM} ${WRKSRC}/index/wgconvert ${PREFIX}/bin
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -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;

View file

@ -7,6 +7,3 @@ bin/glimpseserver
bin/tbuild bin/tbuild
bin/uncast bin/uncast
bin/wgconvert bin/wgconvert
share/doc/glimpse/COPYRIGHT
share/doc/glimpse/README
@dirrm share/doc/glimpse