aboutsummaryrefslogtreecommitdiffstats
path: root/print/xmbibtex
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-11-27 04:35:37 +0800
committerwg <wg@FreeBSD.org>2013-11-27 04:35:37 +0800
commitae3c7c818ccf84901f049d8d6455418eabbfd1c2 (patch)
tree0190c189c7c7b2ed2524bee082c70cf87fdd8895 /print/xmbibtex
parent22c35b390490699dacd8e92c58b5fa0be2c2ea79 (diff)
downloadfreebsd-ports-gnome-ae3c7c818ccf84901f049d8d6455418eabbfd1c2.tar.gz
freebsd-ports-gnome-ae3c7c818ccf84901f049d8d6455418eabbfd1c2.tar.zst
freebsd-ports-gnome-ae3c7c818ccf84901f049d8d6455418eabbfd1c2.zip
print/xmbibtex: fix build on current
PR: ports/184226 Submitted by: KATO Tsuguru <tkato432 yahoo.com>
Diffstat (limited to 'print/xmbibtex')
-rw-r--r--print/xmbibtex/Makefile8
-rw-r--r--print/xmbibtex/files/patch-aa6
-rw-r--r--print/xmbibtex/files/patch-print_cb.cc45
3 files changed, 49 insertions, 10 deletions
diff --git a/print/xmbibtex/Makefile b/print/xmbibtex/Makefile
index 8d3373db8b4d..e2cd34290e9a 100644
--- a/print/xmbibtex/Makefile
+++ b/print/xmbibtex/Makefile
@@ -5,8 +5,7 @@ PORTNAME= xmbibtex
PORTVERSION= 1.7
PORTREVISION= 3
CATEGORIES= print databases
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= apps/tex
+MASTER_SITES= SUNSITE/apps/tex
MAINTAINER= ports@FreeBSD.org
COMMENT= Reference manager based on the BibTeX file format
@@ -19,9 +18,4 @@ NO_INSTALL_MANPAGES= yes
PLIST_FILES= bin/xmbibtex lib/X11/app-defaults/XmBibTeX
-NO_STAGE= yes
-post-configure:
- @${REINPLACE_CMD} -e 's,(CCLINK,(CXXLINK, ; s,/usr/local,${PREFIX},' \
- ${WRKSRC}/Makefile
-
.include <bsd.port.mk>
diff --git a/print/xmbibtex/files/patch-aa b/print/xmbibtex/files/patch-aa
index 001203c12084..e0af00629464 100644
--- a/print/xmbibtex/files/patch-aa
+++ b/print/xmbibtex/files/patch-aa
@@ -1,11 +1,11 @@
--- Imakefile.orig Sun Oct 19 02:50:16 1997
+++ Imakefile Sun Nov 12 20:17:11 2000
-@@ -1,11 +1,11 @@
--SYS_LIBRARIES = -lXm -lXt -lSM -lICE -lX11 -lXpm -lXext -lXmu
+@@ -1,11 +1,12 @@
+ SYS_LIBRARIES = -lXm -lXt -lSM -lICE -lX11 -lXpm -lXext -lXmu
-CC = g++
-INCLUDES = -I/usr/include/g++
-+SYS_LIBRARIES = ${MOTIFLIB} -lXt -lSM -lICE -lX11 -lXpm -lXext -lXmu
+CC = $(CXX)
++CCLINK = $(CXXLINK)
+XCOMM INCLUDES = -I/usr/include/g++
-BINDIR = /usr/local/bin
diff --git a/print/xmbibtex/files/patch-print_cb.cc b/print/xmbibtex/files/patch-print_cb.cc
new file mode 100644
index 000000000000..d8425b556854
--- /dev/null
+++ b/print/xmbibtex/files/patch-print_cb.cc
@@ -0,0 +1,45 @@
+--- print_cb.cc.orig
++++ print_cb.cc
+@@ -2,9 +2,9 @@
+ /* Print LaTeX Module */
+ /* Last change 18.08.1996 */
+
+-#include <iostream.h>
+-#include <fstream.h>
+-#include <string.h>
++#include <iostream>
++#include <fstream>
++#include <cstring>
+ #include <X11/cursorfont.h>
+ #include "globals.h"
+
+@@ -13,18 +13,18 @@
+ char *filename;
+ char *db, *pdb;
+ unsigned long n;
+- ofstream out;
++ std::ofstream out;
+ Cursor uhr, pfeil;
+
+ XmFileSelectionBoxCallbackStruct *cbs=
+ (XmFileSelectionBoxCallbackStruct *) call_data;
+
+ if (!XmStringGetLtoR(cbs->value, XmFONTLIST_DEFAULT_TAG, &filename)) {
+- cout << "Internal error pasting filename! \n";
++ std::cout << "Internal error pasting filename! \n";
+ return;
+ }
+ if (!*filename) {
+- cout << "No file selected! \n";
++ std::cout << "No file selected! \n";
+ XtFree(filename);
+ return;
+ }
+@@ -37,7 +37,7 @@
+
+ out.open(filename);
+ if(!out) {
+- cout << "Cannot open LaTeX file for output! \n";
++ std::cout << "Cannot open LaTeX file for output! \n";
+ return;
+ }