aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/stardict2
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-05-19 14:23:17 +0800
committervanilla <vanilla@FreeBSD.org>2003-05-19 14:23:17 +0800
commit1d52de428b2ec3a5ce45928d5933836546499bcd (patch)
tree35d03e285ac9e1f1c253677966906ec4de10573f /textproc/stardict2
parente7021010551dcc734d6d09ae0df6d0da92c4f3b8 (diff)
downloadfreebsd-ports-gnome-1d52de428b2ec3a5ce45928d5933836546499bcd.tar.gz
freebsd-ports-gnome-1d52de428b2ec3a5ce45928d5933836546499bcd.tar.zst
freebsd-ports-gnome-1d52de428b2ec3a5ce45928d5933836546499bcd.zip
o remove all LIB_DEPENDS, replace with USE_GNOME
o add patch files/patch-src::distance.cpp o add CONFIGURE_ENV for ${LOCALBASE}/{include|lib} o fix build problem on 5.1 PR: ports/52199 Submitted by: maintainer
Diffstat (limited to 'textproc/stardict2')
-rw-r--r--textproc/stardict2/Makefile16
-rw-r--r--textproc/stardict2/files/patch-src::distance.cpp11
-rw-r--r--textproc/stardict2/pkg-plist4
3 files changed, 19 insertions, 12 deletions
diff --git a/textproc/stardict2/Makefile b/textproc/stardict2/Makefile
index bb4fff982de2..efcf58f6c885 100644
--- a/textproc/stardict2/Makefile
+++ b/textproc/stardict2/Makefile
@@ -19,21 +19,13 @@ DISTFILES= stardict-${PORTVERSION}.tar.gz \
MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT= English-Chinese dictionary
-LIB_DEPENDS= gnome-2.200:${PORTSDIR}/x11/libgnome \
- gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui \
- bonobo-2.0:${PORTSDIR}/devel/libbonobo \
- bonobo-activation.4:${PORTSDIR}/devel/bonobo-activation
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Configure fails"
-.endif
-
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_BZIP2= yes
+USE_GNOME= libgnome libgnomeui libbonobo bonoboactivation gconf2
WRKSRC= ${WRKDIR}/stardict-${PORTVERSION}
MAN1= stardict.1
@@ -53,4 +45,4 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/stardict-xdict-big5-2.0.0/* ${PREFIX}/share/stardict/dic/
${INSTALL_DATA} ${WRKDIR}/stardict-xdict-ce-big5-2.0.0/* ${PREFIX}/share/stardict/dic/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/textproc/stardict2/files/patch-src::distance.cpp b/textproc/stardict2/files/patch-src::distance.cpp
new file mode 100644
index 000000000000..93345df6279c
--- /dev/null
+++ b/textproc/stardict2/files/patch-src::distance.cpp
@@ -0,0 +1,11 @@
+--- src/distance.cpp.orig Wed May 14 01:25:59 2003
++++ src/distance.cpp Wed May 14 01:26:12 2003
+@@ -35,7 +35,7 @@
+ #include "distance.h"
+
+ #include <stdlib.h>
+-#include <malloc.h>
++//#include <malloc.h>
+ #include <string.h>
+ //#include <stdio.h>
+
diff --git a/textproc/stardict2/pkg-plist b/textproc/stardict2/pkg-plist
index cc8d0f6bff43..e0b561d06f81 100644
--- a/textproc/stardict2/pkg-plist
+++ b/textproc/stardict2/pkg-plist
@@ -25,7 +25,11 @@ share/gnome/help/stardict/zh_CN/figures/stardict_float_window.png
share/gnome/help/stardict/zh_CN/figures/stardict_main_window.png
share/gnome/help/stardict/zh_CN/figures/stardict_notification_area.png
share/omf/stardict/stardict-C.omf
+@exec scrollkeeper-install -q %D/share/omf/stardict/stardict-C.omf 2>/dev/null || /usr/bin/true
+@unexec scrollkeeper-uninstall -q %D/share/omf/stardict/stardict-C.omf 2>/dev/null || /usr/bin/true
share/omf/stardict/stardict-zh_CN.omf
+@exec scrollkeeper-install -q %D/share/omf/stardict/stardict-zh_CN.omf 2>/dev/null || /usr/bin/true
+@unexec scrollkeeper-uninstall -q %D/share/omf/stardict/stardict-zh_CN.omf 2>/dev/null || /usr/bin/true
share/applications/stardict.desktop
etc/gconf/schemas/stardict.schemas
lib/bonobo/servers/GNOME_Stardict.server