Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/gmic/files: gmic-1.5.1.6-makefile.patch
Date: Thu, 21 Jun 2012 21:05:39
Message-Id: 20120621210523.A0C312004C@flycatcher.gentoo.org
1 radhermit 12/06/21 21:05:23
2
3 Added: gmic-1.5.1.6-makefile.patch
4 Log:
5 Version bump.
6
7 (Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-gfx/gmic/files/gmic-1.5.1.6-makefile.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/gmic/files/gmic-1.5.1.6-makefile.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/gmic/files/gmic-1.5.1.6-makefile.patch?rev=1.1&content-type=text/plain
14
15 Index: gmic-1.5.1.6-makefile.patch
16 ===================================================================
17 --- gmic-1.5.1.6/src/Makefile
18 +++ gmic-1.5.1.6/src/Makefile
19 @@ -89,7 +89,7 @@
20
21 # Flags that are mandatory to compile 'gmic'.
22 MANDATORY_CFLAGS += -Dgmic_build -I$(USR)/include
23 -MANDATORY_LDFLAGS += -L$(USR)/lib
24 +MANDATORY_LDFLAGS +=
25 ifeq ($(IS_GCC),yes)
26 MANDATORY_CFLAGS += -Wall -W
27 MANDATORY_LDFLAGS += -lm
28 @@ -99,14 +98,6 @@
29 # Flags to enable debugging.
30 -DEBUG_CFLAGS = -Dcimg_use_vt100 -Dcimg_verbosity=3 -g
31 -
32 -# Flags to enable optimizations.
33 -ifeq ($(IS_GCC),yes)
34 -OPT_CFLAGS = -O3 -fno-tree-pre # -ffast-math
35 -endif
36 -ifeq ($(CC),icc)
37 -OPT_CFLAGS = -O3 -ipo -no-prec-div -override-limits
38 -endif
39 +DEBUG_CFLAGS = -Dcimg_use_vt100 -Dcimg_verbosity=3
40
41 # Flags to enable image display, using X11
42 # (keep /usr/ dirname here since X11 is located in /usr/ on Mac too).
43 # This requires the presence of the X11 include and library files.
44 @@ -164,14 +155,8 @@
45 # Flags to enable native support of webcams, using the OpenCV library.
46 # This requires the presence of the OpenCV include and library files.
47 # (package 'libcv3-2-dev' on Debian).
48 -ifeq ($(OS),Darwin)
49 OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include -I$(USR)/include/opencv
50 OPENCV_LDFLAGS = `pkg-config opencv --libs` #-> Use this for OpenCV 2.2.0 !
51 -else
52 -# OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include -I$(USR)/include/opencv
53 -# OPENCV_LDFLAGS = -lcv -lhighgui
54 -# OPENCV_LDFLAGS = -lopencv_core -lopencv_highgui #-> Use this for OpenCV 2.2.0 !
55 -endif
56
57 # Flags to enable native support of most classical image file formats, using the GraphicsMagick++ library.
58 # This requires the presence of the GraphicsMagick++ include and library files.
59 @@ -216,11 +201,11 @@
60 $(EXR_LDFLAGS) $(FFTW_LDFLAGS) # $(OPENCV_LDFLAGS) $(FFMPEG_LDFLAGS) $(XSHM_LDFLAGS) # $(MAGICK_LDFLAGS)
61
62 CUST_UNIX_CFLAGS = $(MANDATORY_CFLAGS) $(X11_CFLAGS) $(XSHM_CFLAGS) $(PNG_CFLAGS) \
63 - $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(MINC2_CFLAGS) $(ZLIB_CFLAGS) \
64 - $(FFTW_CFLAGS) $(BOARD_CFLAGS) $(EXR_CFLAGS) $(MAGICK_CFLAGS) # $(FFMPEG_CFLAGS) $(OPENCV_CFLAGS)
65 + $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(ZLIB_CFLAGS) \
66 + $(FFTW_CFLAGS) $(EXR_CFLAGS) $(MAGICK_CFLAGS) $(FFMPEG_CFLAGS) $(OPENCV_CFLAGS)
67 CUST_UNIX_LDFLAGS = $(MANDATORY_LDFLAGS) $(X11_LDFLAGS) $(XSHM_LDFLAGS) $(PNG_LDFLAGS) \
68 - $(JPEG_LDFLAGS) $(TIFF_LDFLAGS) $(MINC2_LDFLAGS) $(ZLIB_LDFLAGS) \
69 - $(FFTW_LDFLAGS) $(BOARD_LDFLAGS) $(EXR_LDFLAGS) $(MAGICK_LDFLAGS) # $(FFMPEG_LDFLAGS) $(OPENCV_LDFLAGS)
70 + $(JPEG_LDFLAGS) $(TIFF_LDFLAGS) $(ZLIB_LDFLAGS) \
71 + $(FFTW_LDFLAGS) $(EXR_LDFLAGS) $(MAGICK_LDFLAGS) $(FFMPEG_LDFLAGS) $(OPENCV_LDFLAGS)
72
73 DEBUG_UNIX_CFLAGS = $(MANDATORY_CFLAGS) $(DEBUG_CFLAGS) $(X11_CFLAGS) $(XSHM_CFLAGS) $(PNG_CFLAGS) \
74 $(JPEG_CFLAGS) $(TIFF_CFLAGS) $(ZLIB_CFLAGS) $(FFTW_CFLAGS) \
75 @@ -246,7 +231,7 @@
76 STD_WINDOWS_LDFLAGS = $(MANDATORY_LDFLAGS) $(GDI32_LDFLAGS) $(ZLIB_LDFLAGS) $(PNG_LDFLAGS) $(JPEG_LDFLAGS) $(FFTW_LDFLAGS)
77
78 STD_GIMP_CFLAGS = -Dgmic_build -Dcimg_display=0 -Dcimg_use_rng -I$(USR)/include $(FFTW_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS) ${IS_BETA_CFLAGS}
79 -STD_GIMP_LDFLAGS = -L$(USR)/lib -lpthread $(FFTW_LDFLAGS) $(PNG_LDFLAGS) $(ZLIB_LDFLAGS)
80 +STD_GIMP_LDFLAGS = -lpthread $(FFTW_LDFLAGS) $(PNG_LDFLAGS) $(ZLIB_LDFLAGS)
81 ifeq ($(OS),MINGW32_NT-5.1)
82 STD_GIMP_LDFLAGS += -mwindows
83 endif
84 @@ -292,10 +277,10 @@
85 endif
86
87 gimp:
88 - $(MAKE) "CFLAGS=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_GIMP_LDFLAGS) $(OPT_LDFLAGS)" "STRIP_EXE=1" gmic_gimp
89 + $(MAKE) "CFLAGS+=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_GIMP_LDFLAGS) $(OPT_LDFLAGS)" gmic_gimp
90
91 lib:
92 - $(MAKE) "CFLAGS=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS) $(OPT_LDFLAGS)" gmic_lib
93 + $(MAKE) "CFLAGS+=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS) $(OPT_LDFLAGS)" gmic_lib
94
95 zart: lib
96 ifneq ($(OS),Darwin)
97 @@ -312,10 +297,10 @@
98 $(MAKE) "CFLAGS+=$(DEBUG_UNIX_CFLAGS)" "LDFLAGS+=$(DEBUG_UNIX_LDFLAGS)" gmic_minimal
99
100 linux:
101 - $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
102 + $(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_UNIX_LDFLAGS)" gmic_gmic
103
104 custom:
105 - $(MAKE) "CFLAGS=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(CUST_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
106 + $(MAKE) "CFLAGS+=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(CUST_UNIX_LDFLAGS)" gmic_gmic
107
108 solaris:
109 $(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS) -R$(USR)/X11R6/lib -lrt -lnsl -lsocket" "STRIP_EXE=1" gmic_gmic
110 @@ -345,7 +330,6 @@
111 $(CC) -o gmic_gimp.o -c gmic.cpp -Dgmic_gimp -Dgmic_minimal -Dgmic_float $(CFLAGS)
112 gmic_gimp : gmic_gimp.o gmic_gimp.cpp
113 $(CC) -o gmic_gimp gmic_gimp.cpp gmic_gimp.o `gimptool-2.0$(EXE) --cflags` $(CFLAGS) `gimptool-2.0$(EXE) --libs` $(LDFLAGS)
114 - strip gmic_gimp$(EXE)
115
116 gmic_minimal: gmic.cpp
117 $(CC) -o gmic gmic.cpp -Dgmic_minimal -Dgmic_float -Dgmic_main $(CFLAGS) $(LDFLAGS)
118 @@ -370,7 +354,6 @@
119 $(CC) -o gmic_double.o -c gmic.cpp -Dgmic_separate_compilation -Dgmic_double $(CFLAGS)
120 gmic_gmic: gmic.cpp gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o gmic_uint.o gmic_int.o gmic_float.o gmic_double.o gmic_def.h
121 $(CC) -o gmic gmic.cpp -Dgmic_separate_compilation -Dgmic_main $(CFLAGS) gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o gmic_uint.o gmic_int.o gmic_float.o gmic_double.o $(LDFLAGS)
122 - strip gmic$(EXE)
123
124 def:
125 @echo "#ifndef gmic_gimp" > gmic_def.h