[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MagicPoint
- Subject: MagicPoint
- From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
- To: tech-pkg-ja@jp.NetBSD.org
- Date: Tue, 25 Nov 2003 01:28:55 +0900
- Message-ID: <m2r7zxn320.wl@po6.nsk.ne.jp>
- Delivered-To: mailing list tech-pkg-ja@jp.netbsd.org
- Mailing-List: contact tech-pkg-ja-help@jp.netbsd.org; run by ezmlm-idx
- User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (Kashiharajingu-mae) APEL/10.4 Emacs/21.3.50 (i386-unknown-netbsdelf1.6ZF) MULE/5.0 (SAKAKI)
平塚@福井大学です。
MagicPoint のレンダリングエンジンを選べるようにしてみました。
コンパイル、動作は一応確認しました。
問題が無いようでしたら、send-pr(1) しようと思います。
ちなみに parse.c にバグがあったようで、そのパッチも追加してあります。
※ 指定されたエンジン以外は disable にしているのですが、VFlib は
FreeType が必要です。
"vflib" を指定した場合には configure の引数(の一部)が
--disable-freetype --disable-xft2 --enable-vflib
になりますが、ちゃんと FreeType は有効になってくれるようです(^^;;
buildlink の方も ja-vflib-lib の中で include されているので大丈夫
だと思います。
--
平塚紘一郎
hira@po6.nsk.ne.jp
--- mk/bsd.pkg.defaults.mk.orig 2003-11-24 22:53:51.000000000 +0900
+++ mk/bsd.pkg.defaults.mk 2003-11-24 22:54:01.000000000 +0900
@@ -1265,6 +1265,11 @@
# makeinfo version, also various machine_archs arguments may be set in
# mk/defs.${OPSYS}.mk with the _OPSYS_MAKEINFO_ARGS variable.
+MGP_RENDERING_ENGINE?= freetype
+# Used in magicpoint to specify the rendering engine.
+# Possible: freetype, xft2, vflib
+# Default: freetype
+
MOZILLA_USE_XFT?= NO
# Used by mozilla packages to enable Xft support where available.
# Possible: YES, NO
diff -ruN graphics/magicpoint.orig/Makefile graphics/magicpoint/Makefile
--- graphics/magicpoint.orig/Makefile 2003-11-24 22:53:33.000000000 +0900
+++ graphics/magicpoint/Makefile 2003-11-24 22:54:01.000000000 +0900
@@ -16,7 +16,6 @@
USE_PERL5= build
CONFIGURE_ARGS+= --enable-freetype-charset16
-CONFIGURE_ARGS+= --disable-vflib
CONFIGURE_ARGS+= --enable-locale
CONFIGURE_ARGS+= --enable-gif
@@ -45,9 +44,21 @@
${INSTALL_DATA} README* *.jpg *.eps *.mgp *.xbm mgprc-sample \
${PREFIX}/share/examples/mgp
-.include "../../fonts/Xft2/buildlink2.mk"
-.include "../../fonts/fontconfig/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
+.include "../../mk/bsd.prefs.mk"
+
+MGP_RENDERING_ENGINES= freetype graphics/freetype-lib \
+ xft2 fonts/Xft2 \
+ vflib print/ja-vflib-lib
+
+.for engine pkg in ${MGP_RENDERING_ENGINES}
+. if !empty(MGP_RENDERING_ENGINE:M${engine})
+CONFIGURE_ARGS+= --enable-${engine}
+.include "../../${pkg}/buildlink2.mk"
+. else
+CONFIGURE_ARGS+= --disable-${engine}
+. endif
+.endfor
+
.include "../../graphics/libungif/buildlink2.mk"
.include "../../graphics/mng/buildlink2.mk"
.include "../../graphics/netpbm/buildlink2.mk"
diff -ruN graphics/magicpoint.orig/patches/patch-aa graphics/magicpoint/patches/patch-aa
--- graphics/magicpoint.orig/patches/patch-aa 2003-11-24 22:53:33.000000000 +0900
+++ graphics/magicpoint/patches/patch-aa 2003-11-24 22:54:01.000000000 +0900
@@ -1,8 +1,6 @@
-$NetBSD: patch-aa,v 1.9 2003/09/11 16:09:40 jmmv Exp $
-
---- configure.orig 2003-05-28 07:34:23.000000000 +0200
-+++ configure
-@@ -4108,7 +4108,7 @@ if test "$mgp_use_freetype" = "yes"; the
+--- configure.orig 2003-05-28 14:34:23.000000000 +0900
++++ configure 2003-11-24 10:08:00.000000000 +0900
+@@ -4108,7 +4108,7 @@
# XXX: freetype2 may use freetype-config
echo "$as_me:$LINENO: checking for freetype1 library/header" >&5
echo $ECHO_N "checking for freetype1 library/header... $ECHO_C" >&6
@@ -11,7 +9,7 @@
ac_cv_ft_lib=no
ac_cv_ft_include=no
shlib1=`echo $dir/lib/libttf.so* | head -1 | sed -e 's/.*\///'`
-@@ -4643,7 +4643,7 @@ echo "${ECHO_T}$mgp_use_vflib" >&6
+@@ -4643,7 +4643,7 @@
if test "$mgp_use_vflib" = "yes"; then
echo "$as_me:$LINENO: checking for VFlib library/header" >&5
echo $ECHO_N "checking for VFlib library/header... $ECHO_C" >&6
@@ -20,7 +18,15 @@
ac_cv_vf_libname=VFlib
ac_cv_vf_libdir=no
ac_cv_vf_hdrdir=no
-@@ -4867,7 +4867,7 @@ _ACEOF
+@@ -4815,6 +4815,7 @@
+ /usr/local/lib /usr/local/etc /etc \
+ /usr/local/libdata/vflib /usr/local/share/VFlib \
+ /usr/local/share/VFlib/* \
++ ${prefix}/share/VFlib/* \
+ ../../VFlib* ../VFlib* VFlib*; do
+ if test -d $ac_dir -a -f $ac_dir/vfontcap; then
+ ac_cv_vf_fontcap=$ac_dir/vfontcap;
+@@ -4867,7 +4868,7 @@
fi
else
@@ -29,7 +35,7 @@
if test -f $i/include/png.h; then
if test -f $i/lib/libpng.a ; then
DEPLIBS="$DEPLIBS $i/lib/libpng.a"
-@@ -5010,7 +5010,7 @@ fi
+@@ -5010,7 +5011,7 @@
done
fi
@@ -38,7 +44,7 @@
if test -f $i/include/libmng.h; then
if test -f $i/lib/libmng.a ; then
DEPLIBS="$DEPLIBS $i/lib/libmng.a"
-@@ -5647,7 +5647,7 @@ fi
+@@ -5647,7 +5648,7 @@
echo 'FATAL: You need libungif to use gif images. pass proper LIBS to configure.'
exit 1
fi
@@ -47,7 +53,7 @@
if test -f $i/include/gif_lib.h; then
gif_h_ok=yes
OPTFLAGS="$OPTFLAGS -I$i/include"
-@@ -5757,7 +5757,7 @@ fi
+@@ -5757,7 +5758,7 @@
echo 'FATAL: You need libImlib to use Imlib loading. pass proper LIBS to configure.'
exit 1
fi
diff -ruN graphics/magicpoint.orig/patches/patch-ad graphics/magicpoint/patches/patch-ad
--- graphics/magicpoint.orig/patches/patch-ad 1970-01-01 09:00:00.000000000 +0900
+++ graphics/magicpoint/patches/patch-ad 2003-11-24 22:55:06.000000000 +0900
@@ -0,0 +1,11 @@
+--- parse.c.orig 2003-11-24 21:49:38.000000000 +0900
++++ parse.c 2003-11-24 21:50:13.000000000 +0900
+@@ -848,7 +848,7 @@
+ tmpint[2]->cti_value = DEFAULT_VGAP;
+ tmpint[3] = ctlalloc1(CTL_QUALITY);
+ tmpint[3]->cti_value = DEFAULT_BQUALITY;
+-#ifdef XFT2
++#ifdef USE_XFT2
+ tmpint[4] = ctlalloc1(CTL_OPAQUE);
+ tmpint[4]->cti_value = DEFAULT_OPAQUE;
+ #endif