Ticket #34973: magicpoint-1.13a.2.diff
File magicpoint-1.13a.2.diff, 8.5 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
files/patch-image.h
1 --- image/image.h.orig Wed Nov 12 11:07:35 20032 +++ image/image.h Wed Nov 12 11:07:49 20033 @@ -182,6 +182,7 @@4 unsigned long doValToMemLSB();5 void flipBits();6 7 +#define zopen mgp_zopen8 ZFILE *zopen();9 int zread();10 void zreset(); -
files/patch-config.guess
1 --- config.guess.orig Mon Jan 4 21:30:48 19992 +++ config.guess Wed Nov 12 11:06:57 20033 @@ -51,6 +51,9 @@4 # Note: order is significant - the case branches are not exclusive.5 6 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in7 + *:Darwin:*:*)8 + echo `uname -p`-apple-darwin${UNAME_RELEASE}9 + exit 0 ;;10 alpha:OSF1:V*:*)11 # After 1.2, OSF1 uses "V1.3" for uname -r.12 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'` -
files/patch-new.c
1 --- image/new.c.orig Wed Nov 12 11:08:13 20032 +++ image/new.c Wed Nov 12 11:08:20 20033 @@ -11,7 +11,7 @@4 #include "copyright.h"5 #include "image.h"6 7 -#include <malloc.h>8 +#include <unistd.h>9 10 extern int _Xdebug;11 extern void memoryExhausted(void); -
files/patch-parse.c
1 --- parse.c.orig Wed Jan 21 10:58:28 20042 +++ parse.c Wed Jan 21 10:58:38 20043 @@ -848,7 +848,7 @@4 tmpint[2]->cti_value = DEFAULT_VGAP;5 tmpint[3] = ctlalloc1(CTL_QUALITY);6 tmpint[3]->cti_value = DEFAULT_BQUALITY;7 -#ifdef XFT28 +#ifdef USE_XFT29 tmpint[4] = ctlalloc1(CTL_OPAQUE);10 tmpint[4]->cti_value = DEFAULT_OPAQUE;11 #endif -
files/patch-configure
1 --- configure.orig 200 3-05-28 15:34:23.000000000 +10002 +++ configure 201 1-08-21 10:57:46.000000000 +10003 @@ - 4940,9 +4940,9 @@1 --- configure.orig 2007-12-28 14:31:26.000000000 -0600 2 +++ configure 2012-06-25 17:59:26.000000000 -0500 3 @@ -5703,9 +5703,9 @@ 4 4 _ACEOF 5 5 6 6 else 7 - echo "$as_me:$LINENO: checking for png_set_gray_1_2_4_to_8 in -lpng" >&58 -echo $ECHO_N "checking for png_set_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6 7 - { echo "$as_me:$LINENO: checking for png_set_gray_1_2_4_to_8 in -lpng" >&5 8 -echo $ECHO_N "checking for png_set_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6; } 9 9 -if test "${ac_cv_lib_png_png_set_gray_1_2_4_to_8+set}" = set; then 10 + echo "$as_me:$LINENO: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&511 +echo $ECHO_N "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6 10 + { echo "$as_me:$LINENO: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5 11 +echo $ECHO_N "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6; } 12 12 +if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then 13 13 echo $ECHO_N "(cached) $ECHO_C" >&6 14 14 else 15 15 ac_check_lib_save_LIBS=$LIBS 16 @@ -4957,7 +4957,7 @@ 16 @@ -5723,11 +5723,11 @@ 17 #ifdef __cplusplus 18 extern "C" 17 19 #endif 18 /* We use char because int might match the return type of a gcc219 builtin and then its argument prototype would still apply. */20 20 -char png_set_gray_1_2_4_to_8 (); 21 21 +char png_set_expand_gray_1_2_4_to_8 (); 22 #ifdef F77_DUMMY_MAIN23 # ifdef __cplusplus24 extern "C"25 @@ -4967,7 +4967,7 @@26 22 int 27 23 main () 28 24 { 29 - png_set_gray_1_2_4_to_8 ();30 + png_set_expand_gray_1_2_4_to_8 ();25 -return png_set_gray_1_2_4_to_8 (); 26 +return png_set_expand_gray_1_2_4_to_8 (); 31 27 ; 32 28 return 0; 33 29 } 34 @@ - 4984,18 +4984,18@@35 ac_status=$?36 echo "$as_me:$LINENO: \$? = $ac_status" >&537 (exit $ac_status); }; }; then30 @@ -5750,21 +5750,21 @@ 31 test ! -s conftest.err 32 } && test -s conftest$ac_exeext && 33 $as_test_x conftest$ac_exeext; then 38 34 - ac_cv_lib_png_png_set_gray_1_2_4_to_8=yes 39 35 + ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes 40 36 else 41 37 echo "$as_me: failed program was:" >&5 42 cat conftest.$ac_ext >&5 43 -ac_cv_lib_png_png_set_gray_1_2_4_to_8=no 44 +ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no 38 sed 's/^/| /' conftest.$ac_ext >&5 39 40 - ac_cv_lib_png_png_set_gray_1_2_4_to_8=no 41 + ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no 45 42 fi 46 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 43 44 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45 conftest$ac_exeext conftest.$ac_ext 47 46 LIBS=$ac_check_lib_save_LIBS 48 47 fi 49 - echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&550 -echo "${ECHO_T}$ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&6 48 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&5 49 -echo "${ECHO_T}$ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&6; } 51 50 -if test $ac_cv_lib_png_png_set_gray_1_2_4_to_8 = yes; then 52 + echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&553 +echo "${ECHO_T}$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6 51 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5 52 +echo "${ECHO_T}$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; } 54 53 +if test $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8 = yes; then 55 54 LIBS="$LIBS -lpng -lz" 56 55 cat >>confdefs.h <<\_ACEOF 57 56 #define USE_PNG 1 58 @@ - 5647,7 +5647,7 @@57 @@ -6984,7 +6984,7 @@ 59 58 echo 'FATAL: You need libungif to use gif images. pass proper LIBS to configure.' 60 59 exit 1 61 60 fi -
files/patch-freetype.patch
1 --- mgp.h.orig 2009-02-03 10:06:51.000000000 -05002 +++ mgp.h 2009-02-03 10:07:18.000000000 -05003 @@ -62,6 +62,8 @@4 #include <X11/cursorfont.h>5 #include <X11/Xatom.h>6 #ifdef USE_XFT27 +#include <ft2build.h>8 +#include FT_FREETYPE_H9 #include <freetype/freetype.h>10 #include <fontconfig/fontconfig.h>11 #include <X11/Xft/Xft.h> -
Portfile
2 2 PortSystem 1.0 3 3 4 4 name magicpoint 5 version 1.10a 6 revision 3 5 version 1.13a 7 6 categories graphics 8 7 maintainers fenner 9 8 homepage http://www.mew.org/mgp/ 10 master_sites http://cvs.fedoraproject.org/repo/dist/MagicPoint/magicpoint-1.10a.tar.gz/7a5d91b2b3bdabea704ee3cb6505d772/ 11 checksums md5 7a5d91b2b3bdabea704ee3cb6505d772 9 master_sites http://pkgs.fedoraproject.org/repo/pkgs/MagicPoint/${distfiles}/ebc403982956e918ab327c54a90b44e0/ 10 checksums md5 ebc403982956e918ab327c54a90b44e0 \ 11 rmd160 067d7dee3b90ec354975d9ad4ea0c0df48cca191 \ 12 sha256 205e6752e3cb024bcce0583b43dafc9b89490c0016daa91d2486891edcf2cfc1 12 13 platforms macosx darwin 13 14 description An X11 based presentation tool. 14 15 long_description Magic Point is an X11 based presentation tool. It \ … … 17 18 typically .mgp) is just text so that you can create presentation \ 18 19 files quickly with your favorite editor (e.g. Emacs, vi). 19 20 20 patchfiles patch-config.guess patch-image.h patch-new.c patch-parse.c \21 patch-default.mgp patch-configure patch-freetype.patch \22 patch-image_png.c23 24 21 depends_build port:pkgconfig \ 25 22 port:imake 26 23 … … 29 26 port:libpng \ 30 27 path:include/gif_lib.h:giflib 31 28 29 patchfiles patch-configure \ 30 patch-default.mgp \ 31 patch-image_png.c 32 32 33 universal_variant no 33 34 34 # LOCALPREFIX= is for configure to find libungif.35 # LOCALPREFIX= is for configure to find giflib. 35 36 configure.env LOCALPREFIX=${prefix} 36 configure.args --enable-gif --mandir=${prefix}/share/man37 configure.args --enable-gif 37 38 38 39 post-configure { 39 40 # unusual port: uses not just autoconf but also Imake 40 system "cd \"${worksrcpath}\" &&xmkmf && make Makefiles"41 system -W ${worksrcpath} "${prefix}/bin/xmkmf && make Makefiles" 41 42 } 42 43 43 44 destroot.target install install.man … … 52 53 LIBDIR=${prefix}/lib/X11 \ 53 54 FONTDIR=${prefix}/lib/X11/fonts \ 54 55 MANPATH=${prefix}/share/man 56 57 livecheck.type regex 58 livecheck.url http://pkgs.fedoraproject.org/repo/pkgs/MagicPoint/ 59 livecheck.regex ${name}-(\[0-9a-z.\]+)${extract.suffix}