mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Add OPTIONS for LUA and V4L
- Minor refactoring PR: 137021 Submitted by: Anonymous <swell.k@gmail.com>
This commit is contained in:
parent
fe7bfc1d17
commit
e93039a2a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=238321
2 changed files with 29 additions and 7 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= gegl
|
PORTNAME= gegl
|
||||||
PORTVERSION= 0.0.${GEGL_MINOR}
|
PORTVERSION= 0.0.${GEGL_MINOR}
|
||||||
PORTREVISION= 5
|
PORTREVISION= 6
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ftp://ftp.gimp.org/pub/gegl/0.0/
|
MASTER_SITES= ftp://ftp.gimp.org/pub/gegl/0.0/
|
||||||
|
|
||||||
|
@ -20,13 +20,16 @@ OPTIONS= CAIRO "Enable Cairo" on \
|
||||||
FFMPEG "Enable videos through ffmpeg" on \
|
FFMPEG "Enable videos through ffmpeg" on \
|
||||||
GRAPHVIZ "Enable Graphviz" on \
|
GRAPHVIZ "Enable Graphviz" on \
|
||||||
JPEG "Enable JPEG format support" on \
|
JPEG "Enable JPEG format support" on \
|
||||||
|
LUA "Enable LUA" on \
|
||||||
OPENEXR "Enable High Dynamic Range (HDR) format support" on \
|
OPENEXR "Enable High Dynamic Range (HDR) format support" on \
|
||||||
OPENRAW "Enable RAW camera format support" on \
|
OPENRAW "Enable RAW camera format support" on \
|
||||||
|
OPTIMIZE "Enable optimizations autodetection (MMX, SSE)" off \
|
||||||
PANGO "Enable rendering through Pango " on \
|
PANGO "Enable rendering through Pango " on \
|
||||||
PNG "Enable PNG format support" on \
|
PNG "Enable PNG format support" on \
|
||||||
RSVG "Enable RSVG format support" on \
|
RSVG "Enable RSVG format support" on \
|
||||||
|
SDL "Enable SDL" on \
|
||||||
SPIRO "Enable Spiro" on \
|
SPIRO "Enable Spiro" on \
|
||||||
SDL "Enable SDL" on
|
V4L "Enable Video4Linux" on
|
||||||
|
|
||||||
USE_GNOME= gtk20 glib20 pkgconfig gnomehack
|
USE_GNOME= gtk20 glib20 pkgconfig gnomehack
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
|
@ -35,10 +38,7 @@ USE_RUBY= build
|
||||||
USE_LDCONFIG= ${PREFIX}/lib/gegl-0.0
|
USE_LDCONFIG= ${PREFIX}/lib/gegl-0.0
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||||
CFLAGS="-I${LOCALBASE}/include" \
|
|
||||||
LDFLAGS="-L${LOCALBASE}/lib"
|
LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
CONFIGURE_ARGS+=--disable-sse \
|
|
||||||
--disable-mmx
|
|
||||||
|
|
||||||
GEGL_MINOR= 22
|
GEGL_MINOR= 22
|
||||||
PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}"
|
PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}"
|
||||||
|
@ -78,6 +78,12 @@ CONFIGURE_ARGS+=--without-libjpeg
|
||||||
PLIST_SUB+= JPEG="@comment "
|
PLIST_SUB+= JPEG="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_LUA)
|
||||||
|
USE_LUA= 5.1
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+=--without-lua
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !defined(WITHOUT_OPENEXR)
|
.if !defined(WITHOUT_OPENEXR)
|
||||||
LIB_DEPENDS+= IlmImf.6:${PORTSDIR}/graphics/OpenEXR
|
LIB_DEPENDS+= IlmImf.6:${PORTSDIR}/graphics/OpenEXR
|
||||||
PLIST_SUB+= OPENEXR=""
|
PLIST_SUB+= OPENEXR=""
|
||||||
|
@ -94,6 +100,11 @@ CONFIGURE_ARGS+=--without-libopenraw
|
||||||
PLIST_SUB+= OPENRAW="@comment "
|
PLIST_SUB+= OPENRAW="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITHOUT_OPTIMIZE)
|
||||||
|
CONFIGURE_ARGS+=--disable-mmx \
|
||||||
|
--disable-sse
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !defined(WITHOUT_PANGO)
|
.if !defined(WITHOUT_PANGO)
|
||||||
USE_GNOME+= pango
|
USE_GNOME+= pango
|
||||||
.else
|
.else
|
||||||
|
@ -130,6 +141,14 @@ LIB_DEPENDS+= spiro.0:${PORTSDIR}/graphics/libspiro
|
||||||
CONFIGURE_ARGS+=--without-libspiro
|
CONFIGURE_ARGS+=--without-libspiro
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_V4L)
|
||||||
|
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
|
||||||
|
PLIST_SUB+= V4L=""
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+=--without-libv4l
|
||||||
|
PLIST_SUB+= V4L="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc
|
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc
|
||||||
.else
|
.else
|
||||||
|
@ -138,6 +157,7 @@ CONFIGURE_ARGS+= --disable-docs
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's|-T||' ${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in
|
${REINPLACE_CMD} -e 's|-T||' ${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in
|
||||||
|
${REINPLACE_CMD} -e 's|\(lua\)\(5\.1\)|\1-\2|g' ${WRKSRC}/configure
|
||||||
|
|
||||||
post-build:
|
post-build:
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
|
|
|
@ -200,6 +200,8 @@ lib/gegl-0.0/tonemap.la
|
||||||
lib/gegl-0.0/tonemap.so
|
lib/gegl-0.0/tonemap.so
|
||||||
lib/gegl-0.0/unsharp-mask.la
|
lib/gegl-0.0/unsharp-mask.la
|
||||||
lib/gegl-0.0/unsharp-mask.so
|
lib/gegl-0.0/unsharp-mask.so
|
||||||
|
%%V4L%%lib/gegl-0.0/v4l.la
|
||||||
|
%%V4L%%lib/gegl-0.0/v4l.so
|
||||||
lib/gegl-0.0/value-invert.la
|
lib/gegl-0.0/value-invert.la
|
||||||
lib/gegl-0.0/value-invert.so
|
lib/gegl-0.0/value-invert.so
|
||||||
lib/gegl-0.0/whitebalance.la
|
lib/gegl-0.0/whitebalance.la
|
||||||
|
@ -259,8 +261,8 @@ libdata/pkgconfig/gegl.pc
|
||||||
@dirrm include/gegl-0.0
|
@dirrm include/gegl-0.0
|
||||||
@dirrm lib/gegl-0.0
|
@dirrm lib/gegl-0.0
|
||||||
%%PORTDOCS%%@dirrm share/gtk-doc/html/gegl
|
%%PORTDOCS%%@dirrm share/gtk-doc/html/gegl
|
||||||
%%PORTDOCS%%@dirrm share/gtk-doc/html
|
%%PORTDOCS%%@dirrmtry share/gtk-doc/html
|
||||||
%%PORTDOCS%%@dirrm share/gtk-doc
|
%%PORTDOCS%%@dirrmtry share/gtk-doc
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/gallery
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%/gallery
|
||||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/data
|
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/data
|
||||||
|
|
Loading…
Add table
Reference in a new issue