pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/amaya Switch this to using pkgsrc wxWidgets, since...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58d64007839b
branches:  trunk
changeset: 590082:58d64007839b
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sat Jul 02 19:05:06 2011 +0000

description:
Switch this to using pkgsrc wxWidgets, since pkgsrc now has the necessary
version and the builtin copy doesn't build any more. Still doesn't compile,
though, as it is having png issues.

diffstat:

 www/amaya/Makefile         |   43 +++++-----
 www/amaya/patches/patch-ap |  178 ---------------------------------------------
 2 files changed, 23 insertions(+), 198 deletions(-)

diffs (256 lines):

diff -r d1f3fe472374 -r 58d64007839b www/amaya/Makefile
--- a/www/amaya/Makefile        Sat Jul 02 18:54:48 2011 +0000
+++ b/www/amaya/Makefile        Sat Jul 02 19:05:06 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2011/07/02 18:54:48 dholland Exp $
+# $NetBSD: Makefile,v 1.65 2011/07/02 19:05:06 dholland Exp $
 
 DISTNAME=      amaya-fullsrc-10.0.1
 PKGNAME=       ${DISTNAME:S/-fullsrc//}
@@ -78,6 +78,9 @@
 # once one forcibly persuades the Amaya configure script to configure
 # it correctly, isn't a big problem.
 #
+# - Update 20110702: switched to pkgsrc wxWidgets because the builtin
+# one doesn't compile any more.
+#
 # - The code using redland does not work, even using the copy of
 # redland included in the distfile. The schemas it tries to build are
 # syntactically invalid. It *might* be a simple problem, I don't know
@@ -140,25 +143,25 @@
 #EXTRACT_ELEMENTS+=    redland
 #  -or-
 #CONFIGURE_ARGS+=      --enable-system-redland
-#.include "../../???/redland/buildlink3.mk"
+#.include "../../textproc/redland/buildlink3.mk"
 
 # pkgsrc's wxGTK is too old (2.6.3; 2.8.x is required)
-EXTRACT_ELEMENTS+=     wxWidgets
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../x11/libXinerama/buildlink3.mk"
-.include "../../x11/libSM/buildlink3.mk"
-.include "../../x11/libXxf86vm/buildlink3.mk"
-.include "../../x11/xf86vidmodeproto/buildlink3.mk"
-.include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../graphics/glu/buildlink3.mk"
-CONFIGURE_ENV+=                BUILDLINK_DIR=${BUILDLINK_DIR:Q}
+#EXTRACT_ELEMENTS+=    wxWidgets
+#.include "../../x11/gtk2/buildlink3.mk"
+#.include "../../x11/libXinerama/buildlink3.mk"
+#.include "../../x11/libSM/buildlink3.mk"
+#.include "../../x11/libXxf86vm/buildlink3.mk"
+#.include "../../x11/xf86vidmodeproto/buildlink3.mk"
+#.include "../../graphics/MesaLib/buildlink3.mk"
+#.include "../../graphics/glu/buildlink3.mk"
+#CONFIGURE_ENV+=               BUILDLINK_DIR=${BUILDLINK_DIR:Q}
 # wxWidgets has *another* copy of a bunch of image libs.
-CONFIGURE_ARGS+=       --with-libpng=sys       # Use pkgsrc libraries
-CONFIGURE_ARGS+=       --with-libjpeg=sys      # Use pkgsrc libraries
-CONFIGURE_ARGS+=       --with-libtiff=sys      # Use pkgsrc libraries
-CONFIGURE_ARGS+=       --with-libxpm=sys       # Use pkgsrc libraries
-.include "../../graphics/tiff/buildlink3.mk"
-.include "../../x11/libXpm/buildlink3.mk"
+#CONFIGURE_ARGS+=      --with-libpng=sys       # Use pkgsrc libraries
+#CONFIGURE_ARGS+=      --with-libjpeg=sys      # Use pkgsrc libraries
+#CONFIGURE_ARGS+=      --with-libtiff=sys      # Use pkgsrc libraries
+#CONFIGURE_ARGS+=      --with-libxpm=sys       # Use pkgsrc libraries
+#.include "../../graphics/tiff/buildlink3.mk"
+#.include "../../x11/libXpm/buildlink3.mk"
 # wxWidgets also has a private copy of expat; since Amaya ostensibly
 # needs the patched expat in its libwww, which is at least the same
 # version as the one in wxWidgets, we'll let wxWidgets use its builtin
@@ -167,9 +170,9 @@
 # break with pkgsrc wxWidgets, but we can worry about that later.
 #.include "../../textproc/expat/buildlink3.mk"
 # -or-
-#CONFIGURE_ARGS+=      --enable-system-wx      # Use pkgsrc libraries
-#.include "../../graphics/glu/buildlink3.mk"
-#.include "../../x11/wxGTK/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-system-wx      # Use pkgsrc libraries
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../x11/wxGTK28/buildlink3.mk"
 
 # also uses glib
 .include "../../devel/glib2/buildlink3.mk"
diff -r d1f3fe472374 -r 58d64007839b www/amaya/patches/patch-ap
--- a/www/amaya/patches/patch-ap        Sat Jul 02 18:54:48 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,178 +0,0 @@
-$NetBSD: patch-ap,v 1.3 2011/07/02 18:54:49 dholland Exp $
-
---- wxWidgets/configure.orig   2007-05-14 09:08:25.000000000 +0000
-+++ wxWidgets/configure
-@@ -23470,43 +23470,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
- 
- 
- SEARCH_INCLUDE="\
--    /usr/local/include        \
--                              \
--    /usr/Motif-2.1/include    \
--    /usr/Motif-1.2/include    \
--    /usr/include/Motif1.2     \
--                              \
--    /usr/dt/include           \
--    /usr/openwin/include      \
--                              \
--    /usr/include/Xm           \
--                              \
--    /usr/X11R6/include        \
--    /usr/X11R6.4/include      \
--    /usr/X11R5/include        \
--    /usr/X11R4/include        \
--                              \
--    /usr/include/X11R6        \
--    /usr/include/X11R5        \
--    /usr/include/X11R4        \
--                              \
--    /usr/local/X11R6/include  \
--    /usr/local/X11R5/include  \
--    /usr/local/X11R4/include  \
--                              \
--    /usr/local/include/X11R6  \
--    /usr/local/include/X11R5  \
--    /usr/local/include/X11R4  \
--                              \
--    /usr/X11/include          \
--    /usr/include/X11          \
--    /usr/local/X11/include    \
--    /usr/local/include/X11    \
--                              \
--    /usr/XFree86/include/X11  \
--    /usr/pkg/include          \
--                              \
--    /usr/openwin/share/include"
-+    ${BUILDLINK_DIR}/include  \
-+"
- 
- echo "$as_me:$LINENO: checking for libraries directory" >&5
- echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
-@@ -23596,16 +23561,16 @@ esac
- echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
- echo "${ECHO_T}$wx_cv_std_libpath" >&6
- 
--SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
-+SEARCH_LIB="${BUILDLINK_DIR}/lib"
- 
- if test "$build" != "$host" -a "$GCC" = yes; then
-                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
-         cross_root=`dirname $cross_root`
-         cross_root=`dirname $cross_root`
- 
--                        SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
--        SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
--        SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
-+#                        SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
-+#        SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
-+#        SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
- 
-                 if test -z "$PKG_CONFIG_PATH"; then
-             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
-@@ -23615,7 +23580,7 @@ if test "$build" != "$host" -a "$GCC" = 
-                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
- 
- ac_find_includes=
--for ac_dir in $SEARCH_INCLUDE /usr/include;
-+for ac_dir in $SEARCH_INCLUDE;
-   do
-     if test -f "$ac_dir/X11/Intrinsic.h"; then
-       ac_find_includes=$ac_dir
-@@ -24916,9 +24881,9 @@ echo "${ECHO_T}$ac_cv_header_png_h" >&6
- 
- 
-             if test "$ac_cv_header_png_h" = "yes"; then
--                echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
--echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
--if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
-+                echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
-+echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6
-+if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-   ac_check_lib_save_LIBS=$LIBS
-@@ -24936,11 +24901,11 @@ extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
--char png_check_sig ();
-+char png_sig_cmp ();
- int
- main ()
- {
--png_check_sig ();
-+png_sig_cmp ();
-   ;
-   return 0;
- }
-@@ -24966,20 +24931,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; }; then
--  ac_cv_lib_png_png_check_sig=yes
-+  ac_cv_lib_png_png_sig_cmp=yes
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- 
--ac_cv_lib_png_png_check_sig=no
-+ac_cv_lib_png_png_sig_cmp=no
- fi
- rm -f conftest.err conftest.$ac_objext \
-       conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
--echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
--echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
--if test $ac_cv_lib_png_png_check_sig = yes; then
-+echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
-+echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6
-+if test $ac_cv_lib_png_png_sig_cmp = yes; then
-   PNG_LINK=" -lpng -lz"
- fi
- 
-@@ -30134,7 +30099,7 @@ echo "$as_me: error: Unicode configurati
- echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
- 
- ac_find_includes=
--for ac_dir in $SEARCH_INCLUDE /usr/include;
-+for ac_dir in $SEARCH_INCLUDE;
-   do
-     if test -f "$ac_dir/Xm/Xm.h"; then
-       ac_find_includes=$ac_dir
-@@ -31685,7 +31650,7 @@ echo "$as_me: WARNING: wxGLCanvas not im
- echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
- 
- ac_find_includes=
--for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
-+for ac_dir in $SEARCH_INCLUDE;
-   do
-     if test -f "$ac_dir/GL/gl.h"; then
-       ac_find_includes=$ac_dir
-@@ -31908,7 +31873,7 @@ if test $ac_cv_header_GL_glu_h = yes; th
- echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
- 
-   ac_find_libraries=
--  for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
-+  for ac_dir in $SEARCH_LIB;
-   do
-     for ac_extension in a so sl dylib dll.a; do
-       if test -f "$ac_dir/libGL.$ac_extension"; then
-@@ -45541,7 +45506,7 @@ fi
- 
- if test "$wxUSE_MAC" = 1 ; then
-     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
--                        if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
-+                        if test "x$wxUSE_UNIVERSAL_BINARY" = xyes; then
-             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
-         else
-                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
-@@ -46566,7 +46531,7 @@ echo "${ECHO_T}$bakefile_cv_gcc31" >&6
-             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
-         fi
- 
--        if test "x$GCC" == "xyes"; then
-+        if test "x$GCC" = "xyes"; then
-             PIC_FLAG="-dynamic -fPIC"
-         fi
-         if test "x$XLCC" = "xyes"; then



Home | Main Index | Thread Index | Old Index