Ticket #32013: gmic-1.5.0.6.diff
File gmic-1.5.0.6.diff, 4.1 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
files/patch-Makefile.diff
1 --- Makefile.orig 2011- 02-02 03:28:31.000000000 -06002 +++ Makefile 2011-11- 09 20:41:11.000000000 -06001 --- Makefile.orig 2011-11-04 06:09:46.000000000 -0500 2 +++ Makefile 2011-11-10 00:11:10.000000000 -0600 3 3 @@ -51,13 +51,8 @@ 4 4 ifeq ($(OS),GNU/kFreeBSD) 5 5 OS = Linux … … 8 8 -PLUGINDIR = ~/Library/Application\ Support/Gimp/plug-ins 9 9 -USR = /opt/local 10 10 -else 11 PLUGINDIR =`gimptool-2.0 --gimpplugindir`/plug-ins11 PLUGINDIR = `gimptool-2.0 --gimpplugindir`/plug-ins 12 12 USR = /usr 13 13 -endif 14 14 ifeq ($(OS),MINGW32_NT-5.1) 15 15 EXE = .exe 16 16 endif 17 @@ - 96,12 +91,12 @@17 @@ -107,12 +102,12 @@ 18 18 19 19 # Flags to enable image display, using X11 20 20 # (keep /usr/ dirname here since X11 is located in /usr/ on Mac too). 21 -X11_CFLAGS = -Dcimg_display=1 -Dcimg_ display_classname=\\\"G\'MIC\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr21 -X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr 22 22 -X11_LDFLAGS = -L/usr/X11R6/lib -lX11 -lpthread #-lXrandr 23 +X11_CFLAGS = -Dcimg_display=1 -Dcimg_ display_classname=\\\"G\'MIC\\\" -I$(USR)/include #-Dcimg_use_xrandr23 +X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" -I$(USR)/include #-Dcimg_use_xrandr 24 24 +X11_LDFLAGS = -L$(USR)/lib -lX11 -lpthread #-lXrandr 25 25 26 26 # Flags to enable fast display, using XShm. … … 29 29 +XSHM_LDFLAGS = -L$(USR)/lib -lXext 30 30 31 31 # Flags to enable image display, using GDI32. 32 GDI32_CFLAGS = -Dcimg_display=2 33 @@ -324,8 +319,7 @@ 32 GDI32_CFLAGS = -Dcimg_display=2 -Dcimg_appname=\\\"gmic\\\" 33 @@ -352,8 +347,7 @@ 34 mkdir -p $(DESTDIR)$(USR)/share/man/fr/man1/ 34 35 cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz 35 36 cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz 36 mkdir -p $(DESTDIR)$(USR)/share/doc/gmic/html/img/37 37 - if test -d /etc/bash_completion.d/; then mkdir -p $(DESTDIR)/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR)/etc/bash_completion.d/gmic; fi 38 38 - if test -d /opt/local/etc/bash_completion.d/; then mkdir -p $(DESTDIR)/opt/local/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic; fi 39 + mkdir -p $(DESTDIR)$(USR)/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR) $(USR)/etc/bash_completion.d/gmic40 for pixmap in ../html/*.*; do \41 if test -f $$pixmap; then \42 cp -f $$pixmap $(DESTDIR)$(USR)/share/doc/gmic/html/; \39 + mkdir -p $(DESTDIR)$(USR)/etc/bash_completion.d/; cp -f gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic 40 41 uninstall: 42 rm -f $(DESTDIR)$(USR)/bin/gmic -
Portfile
4 4 PortSystem 1.0 5 5 6 6 name gmic 7 version 1. 4.8.07 version 1.5.0.6 8 8 license CeCILL 9 9 categories science 10 10 platforms darwin … … 23 23 different platforms (Windows, Unix, Mac OS X). 24 24 25 25 homepage http://gmic.sourceforge.net/ 26 master_sites sourceforge:project/gmic /old26 master_sites sourceforge:project/gmic 27 27 28 28 distfiles ${name}_${version}${extract.suffix} 29 29 30 30 worksrcdir ${worksrcdir}/src 31 31 32 checksums rmd160 f545c18c1a4ec2de982e9cffc5426abbbfd07221\33 sha256 0dc6fc61093380479288db7e9cb29dc11d19d017a9ed81c7bf382acc74bab91d32 checksums rmd160 dc994f0abb6110ee4aa98e0beb8ac1da49f1d716 \ 33 sha256 6eb4370242637854f806bb8fb9b69781e2f75d066e795cad8b450b9ce5154c68 34 34 35 35 depends_lib port:opencv \ 36 36 path:lib/libavcodec.dylib:ffmpeg \ … … 52 52 # opencv is not universal 53 53 universal_variant no 54 54 55 # build uses far more memory per job than MacPorts expects 56 use_parallel_build no 57 55 58 build.args CC="${configure.cxx} [get_canonical_archflags]" \ 56 59 IS_GCC=yes \ 57 60 USR=${prefix}