source: trunk/dports/science/gmic/files/patch-Makefile.diff @ 147739

Last change on this file since 147739 was 147739, checked in by khindenburg@…, 4 years ago

gmic: update to 1.7.0 #33008

Testing: the plugin and command line appear to work as the previous
versions. Disable new Qt GUI zart for now.

File size: 2.6 KB
  • Makefile

     
    8888endif
    8989
    9090ifeq ($(OS),Darwin)
    91 PLUGINDIR = ~/Library/Application\ Support/Gimp/plug-ins
    92 ifeq (,$(wildcard /opt/local))
    93 USR = /usr/local
    94 else
    95 USR = /opt/local
    96 endif
     91USR = @PREFIX@
    9792WGET = curl -k -L --silent -o
    9893endif
    9994
     
    176171# (keep /usr/ dirname here since X11 is located in /usr/ on Mac too).
    177172# This requires the presence of the X11 include and library files.
    178173ifneq ($(OS),Darwin)
    179 X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" `pkg-config --cflags x11 || echo -I/usr/X11R6/include` #-Dcimg_use_xrandr
    180 X11_LIBS = `pkg-config --libs x11 || echo -L/usr/X11R6/lib -lX11` -lpthread #`pkg-config --libs xrandr || echo -lXrandr`
     174X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" `pkg-config --cflags x11 || echo -I$(USR)/include` #-Dcimg_use_xrandr
     175X11_LIBS = `pkg-config --libs x11 || echo -L$(USR)/lib -lX11` -lpthread #`pkg-config --libs xrandr || echo -lXrandr`
    181176else
    182177ifeq (,$(wildcard /usr/X11R6))
    183178X11_CFLAGS = -Dcimg_display=0 -Dcimg_appname=\\\"gmic\\\" #-Dcimg_use_xrandr
     
    190185# Flags to enable fast display, using XShm.
    191186# This requires the presence of the X11 extension include and library files.
    192187XSHM_CFLAGS = -Dcimg_use_xshm `pkg-config --cflags xcb-shm`
    193 XSHM_LIBS = `pkg-config --libs xcb-shm || echo -L$(USR)/X11R6/lib -lXext`
     188XSHM_LIBS = `pkg-config --libs xcb-shm || echo -L$(USR)/lib -lXext`
    194189
    195190# Flags to enable image display, using GDI32.
    196191# This requires the presence of the GDI32 include and library files (Windows only).
     
    386381        @echo "**"
    387382        @echo "** Start building G'MIC with default MacOSX configuration."
    388383        @echo "**"
    389         $(MAKE) cli gimp lib libc zart
     384        $(MAKE) cli gimp lib libc
    390385else
    391386        @echo "**"
    392387        @echo "** Start building G'MIC with default Windows configuration."
     
    605600        mkdir -p $(DESTDIR)$(USR)/share/man/fr/man1/
    606601        cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz
    607602        cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz
    608         if [ -d /etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/etc/bash_completion.d/gmic; fi
    609         if [ -d /opt/local/etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/opt/local/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic; fi
     603        mkdir -p $(DESTDIR)$(USR)/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)$(USR)/etc/bash_completion.d/gmic
    610604
    611605uninstall:
    612606        rm -f $(DESTDIR)$(USR)/$(BIN)/gmic
Note: See TracBrowser for help on using the repository browser.