1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Fix the build with modern GCC and unbreak [1]

- Teach to respect PREFIX
- Consistently spell application name in Makefile and pkg-descr

Reported by:	pointyhat (logs) [1]
This commit is contained in:
Alexey Dokuchaev 2007-07-04 13:56:47 +00:00
parent 9cc3c0960a
commit 23316dca12
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194905
3 changed files with 29 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# New ports collection makefile for: xmbibtex
# New ports collection makefile for: XmBibTeX
# Date created: 06 Nov 1997
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
@ -23,10 +23,8 @@ NO_INSTALL_MANPAGES= yes
PLIST_FILES= bin/xmbibtex lib/X11/app-defaults/XmBibTeX
.include <bsd.port.pre.mk>
post-configure:
@${REINPLACE_CMD} -e 's,(CCLINK,(CXXLINK, ; s,/usr/local,${PREFIX},' \
${WRKSRC}/Makefile
.if ${OSVERSION} >= 700042
BROKEN= Does not compile with GCC 4.2
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,23 @@
--- searchall_cb.cc.orig Sun May 4 17:21:26 1997
+++ searchall_cb.cc Thu Jun 14 18:01:36 2007
@@ -4,6 +4,8 @@
#include <Xm/List.h>
#include <X11/cursorfont.h>
+#include <assert.h>
+#include <inttypes.h>
#include <stdio.h>
#include "globals.h"
@@ -26,7 +28,10 @@
gefunden = new unsigned long[b.last+1];
gefunden[0]= 0;
ref = new char[100];
- cis=(short)client_data;
+
+ /* We're about to convert void * to short: fasten some seatbelts. */
+ assert(((intptr_t)client_data >> 16) == 0);
+ cis=(short)((intptr_t)client_data & 0xFFFF);
switch((int)b.d->id) {
case 1: // .... and;

View File

@ -1,4 +1,4 @@
xmbibtex is a Motif (LessTif) reference manager based on the BibTeX
XmBibTeX is a Motif (LessTif) reference manager based on the BibTeX
file format. It allows to add, delete, and edit references. The
references can be saved in the BibTeX file format and also written on
a LaTeX file that can be printed using LaTeX and BibTeX. References