Lines 24-31
Link Here
|
24 |
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes |
24 |
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes |
25 |
|
25 |
|
26 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
27 |
USES+= cpe desktop-file-utils gettext gmake jpeg libtool pathfix \ |
27 |
USES+= cpe desktop-file-utils execinfo gettext gmake jpeg libtool \ |
28 |
pkgconfig tar:bzip2 |
28 |
localbase pathfix pkgconfig tar:bzip2 |
29 |
USE_XORG= xpm xmu xext |
29 |
USE_XORG= xpm xmu xext |
30 |
USE_GNOME+= intlhack gtk20 |
30 |
USE_GNOME+= intlhack gtk20 |
31 |
USE_LDCONFIG= yes |
31 |
USE_LDCONFIG= yes |
Lines 43-50
Link Here
|
43 |
--docdir=${PREFIX}/share/doc/gimp \ |
43 |
--docdir=${PREFIX}/share/doc/gimp \ |
44 |
--enable-default-binary |
44 |
--enable-default-binary |
45 |
CONFIGURE_ENV= GIMP_THREAD_LIBS=-lpthread |
45 |
CONFIGURE_ENV= GIMP_THREAD_LIBS=-lpthread |
46 |
CPPFLAGS+= -I${LOCALBASE}/include |
46 |
LIBS+= -lexecinfo |
47 |
LIBS+= -L${LOCALBASE}/lib |
|
|
48 |
CPE_PRODUCT= gimp |
47 |
CPE_PRODUCT= gimp |
49 |
CPE_VENDOR= gnu |
48 |
CPE_VENDOR= gnu |
50 |
|
49 |
|
Lines 56-68
Link Here
|
56 |
LIBMNG LIBRSVG2 POPPLER SIMD WMF |
55 |
LIBMNG LIBRSVG2 POPPLER SIMD WMF |
57 |
OPTIONS_DEFAULT= AA DBUS LIBEXIF GVFS HELPBROWSER LIBMNG LIBRSVG2 \ |
56 |
OPTIONS_DEFAULT= AA DBUS LIBEXIF GVFS HELPBROWSER LIBMNG LIBRSVG2 \ |
58 |
POPPLER WMF |
57 |
POPPLER WMF |
|
|
58 |
OPTIONS_SUB= yes |
59 |
AA_DESC= Ascii-art Plug-in |
59 |
AA_DESC= Ascii-art Plug-in |
60 |
HELPBROWSER_DESC= Internal help browser |
60 |
HELPBROWSER_DESC= Internal help browser |
61 |
|
61 |
|
62 |
.endif |
62 |
.endif |
63 |
|
63 |
|
64 |
.include <bsd.port.options.mk> |
|
|
65 |
|
66 |
.if defined(GIMP_SLAVE) |
64 |
.if defined(GIMP_SLAVE) |
67 |
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config |
65 |
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config |
68 |
GIMP_LIBS= `${PKG_CONFIG} --libs gimp-2.0` |
66 |
GIMP_LIBS= `${PKG_CONFIG} --libs gimp-2.0` |
Lines 73-185
Link Here
|
73 |
|
71 |
|
74 |
.else |
72 |
.else |
75 |
|
73 |
|
76 |
.if ${PORT_OPTIONS:MDEBUG} |
74 |
DEBUG_CONFIGURE_ON= --enable-debug |
77 |
CONFIGURE_ARGS+= --enable-debug |
|
|
78 |
.endif |
79 |
|
75 |
|
80 |
.if ${PORT_OPTIONS:MAA} |
76 |
AA_LIB_DEPENDS= libaa.so:${PORTSDIR}/graphics/aalib |
81 |
LIB_DEPENDS+= libaa.so:${PORTSDIR}/graphics/aalib |
77 |
AA_CONFIGURE_OFF= --without-aa |
82 |
PLIST_SUB+= AA="" |
|
|
83 |
.else |
84 |
CONFIGURE_ARGS+= --without-aa |
85 |
PLIST_SUB+= AA="@comment " |
86 |
.endif |
87 |
|
78 |
|
88 |
.if ${PORT_OPTIONS:MDBUS} |
79 |
DBUS_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib |
89 |
LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib |
80 |
DBUS_CONFIGURE_WITH= dbus |
90 |
CONFIGURE_ARGS+= --with-dbus |
|
|
91 |
.else |
92 |
CONFIGURE_ARGS+= --without-dbus |
93 |
.endif |
94 |
|
81 |
|
95 |
.if ${PORT_OPTIONS:MGHOSTSCRIPT} |
82 |
GHOSTSCRIPT_USES= ghostscript |
96 |
USES+= ghostscript |
83 |
GHOSTSCRIPT_CONFIGURE_WITH= gs |
97 |
CONFIGURE_ARGS+= --with-gs |
|
|
98 |
PLIST_SUB+= GS="" |
99 |
.else |
100 |
CONFIGURE_ARGS+= --without-gs |
101 |
PLIST_SUB+= GS="@comment " |
102 |
.endif |
103 |
|
84 |
|
104 |
.if ${PORT_OPTIONS:MGVFS} |
85 |
GVFS_USE= GNOME=gvfs |
105 |
USE_GNOME+= gvfs |
86 |
GVFS_LIB_DEPENDS_OFF= libcurl.so:${PORTSDIR}/ftp/curl |
106 |
.else |
87 |
GVFS_CONFIGURE_OFF= --without-gvfs |
107 |
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl |
|
|
108 |
CONFIGURE_ARGS+= --without-gvfs |
109 |
.endif |
110 |
|
88 |
|
111 |
.if ${PORT_OPTIONS:MHELPBROWSER} |
89 |
HELPBROWSER_LIB_DEPENDS= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2 |
112 |
LIB_DEPENDS+= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2 |
90 |
HELPBROWSER_CONFIGURE_WITH= webkit |
113 |
CONFIGURE_ARGS+= --with-webkit |
|
|
114 |
PLIST_SUB+= HELPBROWSER="" |
115 |
.else |
116 |
CONFIGURE_ARGS+= --without-webkit |
117 |
PLIST_SUB+= HELPBROWSER="@comment " |
118 |
.endif |
119 |
|
91 |
|
120 |
.if ${PORT_OPTIONS:MJASPER} |
92 |
JASPER_LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper |
121 |
LIB_DEPENDS+= libjasper.so:${PORTSDIR}/graphics/jasper |
93 |
JASPER_CONFIGURE_WITH= libjasper |
122 |
CONFIGURE_ARGS+= --with-libjasper |
|
|
123 |
PLIST_SUB+= JASPER="" |
124 |
.else |
125 |
CONFIGURE_ARGS+= --without-libjasper |
126 |
PLIST_SUB+= JASPER="@comment " |
127 |
.endif |
128 |
|
94 |
|
129 |
.if ${PORT_OPTIONS:MLIBEXIF} |
95 |
LIBEXIF_LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif |
130 |
LIB_DEPENDS+= libexif.so:${PORTSDIR}/graphics/libexif |
96 |
LIBEXIF_CONFIGURE_OFF= --without-libexif |
131 |
PLIST_SUB+= EXIF="" |
|
|
132 |
.else |
133 |
CONFIGURE_ARGS+= --without-libexif |
134 |
PLIST_SUB+= EXIF="@comment " |
135 |
.endif |
136 |
|
97 |
|
137 |
.if ${PORT_OPTIONS:MLIBMNG} |
98 |
LIBMNG_LIB_DEPENDS= libmng.so:${PORTSDIR}/graphics/libmng |
138 |
LIB_DEPENDS+= libmng.so:${PORTSDIR}/graphics/libmng |
99 |
LIBMNG_CONFIGURE_OFF= --without-libmng |
139 |
PLIST_SUB+= MNG="" |
|
|
140 |
.else |
141 |
CONFIGURE_ARGS+= --without-libmng |
142 |
PLIST_SUB+= MNG="@comment " |
143 |
.endif |
144 |
|
100 |
|
145 |
.if ${PORT_OPTIONS:MLIBRSVG2} |
101 |
LIBRSVG2_USE= GNOME=librsvg2 |
146 |
USE_GNOME+= librsvg2 |
102 |
LIBRSVG2_CONFIGURE_WITH=librsvg |
147 |
CONFIGURE_ARGS+= --with-librsvg |
|
|
148 |
PLIST_SUB+= SVG="" |
149 |
.else |
150 |
CONFIGURE_ARGS+= --without-librsvg |
151 |
PLIST_SUB+= SVG="@comment " |
152 |
.endif |
153 |
|
103 |
|
154 |
.if ${PORT_OPTIONS:MPOPPLER} |
104 |
POPPLER_LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib |
155 |
LIB_DEPENDS+= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib |
105 |
POPPLER_CONFIGURE_OFF= --without-poppler |
156 |
PLIST_SUB+= POPPLER="" |
|
|
157 |
.else |
158 |
CONFIGURE_ARGS+= --without-poppler |
159 |
PLIST_SUB+= POPPLER="@comment " |
160 |
.endif |
161 |
|
106 |
|
162 |
.if !${PORT_OPTIONS:MSIMD} |
107 |
SIMD_CONFIGURE_OFF= --disable-mmx \ |
163 |
CONFIGURE_ARGS+= --disable-mmx \ |
|
|
164 |
--disable-sse \ |
108 |
--disable-sse \ |
165 |
--disable-altivec |
109 |
--disable-altivec |
166 |
.endif |
|
|
167 |
|
110 |
|
168 |
.if ${PORT_OPTIONS:MWMF} |
111 |
WMF_LIB_DEPENDS= libwmf.so:${PORTSDIR}/graphics/libwmf |
169 |
LIB_DEPENDS+= libwmf.so:${PORTSDIR}/graphics/libwmf |
112 |
WMF_CONFIGURE_OFF= --without-wmf |
170 |
PLIST_SUB+= WMF="" |
|
|
171 |
.else |
172 |
CONFIGURE_ARGS+= --without-wmf |
173 |
PLIST_SUB+= WMF="@comment " |
174 |
.endif |
175 |
|
113 |
|
176 |
.endif |
114 |
.endif |
177 |
|
115 |
|
178 |
.if ${OSVERSION} < 1000052 |
|
|
179 |
LIB_DEPENDS+= libexecinfo.so:${PORTSDIR}/devel/libexecinfo |
180 |
.endif |
181 |
LIBS+=-lexecinfo |
182 |
|
183 |
post-patch: |
116 |
post-patch: |
184 |
@${REINPLACE_CMD} -e 's|%%GIMP_LIBS%%|${GIMP_LIBS}|; \ |
117 |
@${REINPLACE_CMD} -e 's|%%GIMP_LIBS%%|${GIMP_LIBS}|; \ |
185 |
s|%%GIMP_THUMB_LIBS%%|${GIMP_THUMB_LIBS}|; \ |
118 |
s|%%GIMP_THUMB_LIBS%%|${GIMP_THUMB_LIBS}|; \ |