View | Details | Raw Unified | Return to bug 54472
Collapse All | Expand All

(-)gtkmathview/Makefile (-12 / +14 lines)
Lines 3-40 Link Here
3
# Date created:			Oct 15, 2002
3
# Date created:			Oct 15, 2002
4
# Whom:				ijliao
4
# Whom:				ijliao
5
#
5
#
6
# $FreeBSD: ports/x11-toolkits/gtkmathview/Makefile,v 1.8 2003/07/14 02:37:39 sf Exp $
6
# $FreeBSD: ports/x11-toolkits/gtkmathview/Makefile,v 1.7 2003/06/04 17:45:54 kris Exp $
7
#
7
#
8
8
9
PORTNAME=	gtkmathview
9
PORTNAME=	gtkmathview
10
PORTVERSION=	0.3.0
10
PORTVERSION=	0.4.2
11
PORTREVISION=	1
12
CATEGORIES=	x11-toolkits
11
CATEGORIES=	x11-toolkits
13
MASTER_SITES=	http://helm.cs.unibo.it/mml-widget/sources/
12
MASTER_SITES=	http://helm.cs.unibo.it/mml-widget/sources/
14
13
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	yinjieh@csie.nctu.edu.tw
16
COMMENT=	A GTK Widget to Render MathML Documents
15
COMMENT=	A GTK Widget to Render MathML Documents
17
16
18
LIB_DEPENDS=	iconv:${PORTSDIR}/converters/libiconv \
17
LIB_DEPENDS=	iconv:${PORTSDIR}/converters/libiconv \
19
		t1:${PORTSDIR}/devel/t1lib \
18
		t1:${PORTSDIR}/devel/t1lib \
20
		xml2:${PORTSDIR}/textproc/libxml2 \
19
		xml2.5:${PORTSDIR}/textproc/libxml2 \
21
		gmetadom_gdome_cpp_smart:${PORTSDIR}/textproc/gmetadom
20
		gmetadom_gdome_cpp_smart:${PORTSDIR}/textproc/gmetadom
22
21
23
BROKEN=		"Configure fails"
24
25
USE_GETOPT_LONG=yes
26
USE_REINPLACE=	yes
22
USE_REINPLACE=	yes
23
USE_GETOPT_LONG=	yes
27
USE_X_PREFIX=	yes
24
USE_X_PREFIX=	yes
28
USE_GNOME=	glib12 gtk12
25
USE_GNOME=	glib12 gtk12
29
USE_LIBTOOL=	yes
26
USE_LIBTOOL=	yes
30
CPPFLAGS=	-D__GNU_LIBRARY__ -I${LOCALBASE}/include
27
CONFIGURE_ENV=	CPPFLAGS="-D__GNU_LIBRARY__ -I${LOCALBASE}/include" \
31
LDFLAGS=	-L${LOCALBASE}/lib -lm
28
		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt -lm"
32
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
33
USE_GMAKE=	yes
29
USE_GMAKE=	yes
34
INSTALLS_SHLIB=	yes
30
INSTALLS_SHLIB=	yes
35
31
36
MAN1=	mathmlviewer.1 mathml2ps.1
32
MAN1=	mathmlviewer.1 mathml2ps.1
37
33
34
.include <bsd.port.pre.mk>
35
36
.if ${OSVERSION} >= 500000
37
BROKEN=		Does not build on FreeBSD 5.x
38
.endif
39
38
post-patch:
40
post-patch:
39
.for file in src/stringAux.cc src/PS_T1_FontManager.cc
41
.for file in src/stringAux.cc src/PS_T1_FontManager.cc
40
	@${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/${file}
42
	@${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/${file}
Lines 43-46 Link Here
43
post-install:
45
post-install:
44
	@install-info ${PREFIX}/info/gtkmathview.info ${PREFIX}/info/dir
46
	@install-info ${PREFIX}/info/gtkmathview.info ${PREFIX}/info/dir
45
47
46
.include <bsd.port.mk>
48
.include <bsd.port.post.mk>
(-)gtkmathview/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (gtkmathview-0.3.0.tar.gz) = 78d36a88c565c3f38ba52d9b159c951d
1
MD5 (gtkmathview-0.4.2.tar.gz) = 5ffae2f3d750bb1400e8c0862aed1868
(-)gtkmathview/files/patch-configure (+40 lines)
Line 0 Link Here
1
--- configure.orig	Mon Jul 14 08:49:26 2003
2
+++ configure	Mon Jul 14 08:50:23 2003
3
@@ -10352,23 +10352,23 @@
4
   else
5
      PKG_CONFIG_MIN_VERSION=0.9.0
6
      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7
-        echo "$as_me:$LINENO: checking for gtk" >&5
8
-echo $ECHO_N "checking for gtk... $ECHO_C" >&6
9
+        echo "$as_me:$LINENO: checking for gtk+" >&5
10
+echo $ECHO_N "checking for gtk+... $ECHO_C" >&6
11
 
12
-        if $PKG_CONFIG --exists "gtk" ; then
13
+        if $PKG_CONFIG --exists "gtk+" ; then
14
             echo "$as_me:$LINENO: result: yes" >&5
15
 echo "${ECHO_T}yes" >&6
16
             succeeded=yes
17
 
18
             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
19
 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
20
-            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk"`
21
+            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+"`
22
             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
23
 echo "${ECHO_T}$GTK_CFLAGS" >&6
24
 
25
             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
26
 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
27
-            GTK_LIBS=`$PKG_CONFIG --libs "gtk"`
28
+            GTK_LIBS=`$PKG_CONFIG --libs "gtk+"`
29
             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
30
 echo "${ECHO_T}$GTK_LIBS" >&6
31
         else
32
@@ -10376,7 +10376,7 @@
33
             GTK_LIBS=""
34
             ## If we have a custom action on failure, don't print errors, but
35
             ## do set a variable so people can do so.
36
-            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk"`
37
+            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+"`
38
 
39
         fi
40
 
(-)gtkmathview/files/patch-src::String.cc (+15 lines)
Line 0 Link Here
1
--- src/String.cc.orig	Mon Jul 14 08:01:23 2003
2
+++ src/String.cc	Mon Jul 14 08:05:56 2003
3
@@ -34,6 +34,12 @@
4
 #include "String.hh"
5
 #include "Globals.hh"
6
 
7
+#ifdef __FreeBSD__
8
+#if (__FreeBSD_version < 500000)
9
+#define iswspace(c) ((c) == ' ' || (c) == '\t' || (c) == '\n')
10
+#endif
11
+#endif
12
+
13
 #ifdef DEBUG
14
 int String::counter = 0;
15
 #endif
(-)gtkmathview/files/patch-src::StringTokenizer.cc (+17 lines)
Line 0 Link Here
1
--- src/StringTokenizer.cc.orig	Mon Jul 14 08:15:49 2003
2
+++ src/StringTokenizer.cc	Mon Jul 14 08:18:44 2003
3
@@ -34,6 +34,14 @@
4
 #include "MathMLAttribute.hh"
5
 #include "StringTokenizer.hh"
6
 
7
+#ifdef __FreeBSD__
8
+#if (__FreeBSD_version < 500000)
9
+#define iswxdigit isxdigit
10
+#define towupper toupper
11
+#define iswdigit isdigit
12
+#endif
13
+#endif
14
+
15
 static unsigned hexOfChar(Char ch)
16
 {
17
   assert(iswxdigit(ch));
(-)gtkmathview/files/patch-src::T1_FontManager.cc (+11 lines)
Line 0 Link Here
1
--- src/T1_FontManager.cc.orig	Mon Jul 14 08:30:07 2003
2
+++ src/T1_FontManager.cc	Mon Jul 14 08:30:33 2003
3
@@ -77,7 +77,7 @@
4
 int
5
 T1_FontManager::SearchT1FontId(const char* fileName) const
6
 {
7
-  int n = T1_Get_no_fonts();
8
+  int n = T1_GetNoFonts();
9
   int i;
10
   for (i = 0; i < n && strcmp(fileName, T1_GetFontFileName(i)); i++) ;
11
 

Return to bug 54472