mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -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
|
||||
PORTVERSION= 0.0.${GEGL_MINOR}
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= graphics
|
||||
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 \
|
||||
GRAPHVIZ "Enable Graphviz" on \
|
||||
JPEG "Enable JPEG format support" on \
|
||||
LUA "Enable LUA" on \
|
||||
OPENEXR "Enable High Dynamic Range (HDR) format support" on \
|
||||
OPENRAW "Enable RAW camera format support" on \
|
||||
OPTIMIZE "Enable optimizations autodetection (MMX, SSE)" off \
|
||||
PANGO "Enable rendering through Pango " on \
|
||||
PNG "Enable PNG format support" on \
|
||||
RSVG "Enable RSVG format support" on \
|
||||
SDL "Enable SDL" on \
|
||||
SPIRO "Enable Spiro" on \
|
||||
SDL "Enable SDL" on
|
||||
V4L "Enable Video4Linux" on
|
||||
|
||||
USE_GNOME= gtk20 glib20 pkgconfig gnomehack
|
||||
USE_BZIP2= yes
|
||||
|
@ -35,10 +38,7 @@ USE_RUBY= build
|
|||
USE_LDCONFIG= ${PREFIX}/lib/gegl-0.0
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS+=--disable-sse \
|
||||
--disable-mmx
|
||||
|
||||
GEGL_MINOR= 22
|
||||
PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}"
|
||||
|
@ -78,6 +78,12 @@ CONFIGURE_ARGS+=--without-libjpeg
|
|||
PLIST_SUB+= JPEG="@comment "
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_LUA)
|
||||
USE_LUA= 5.1
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-lua
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_OPENEXR)
|
||||
LIB_DEPENDS+= IlmImf.6:${PORTSDIR}/graphics/OpenEXR
|
||||
PLIST_SUB+= OPENEXR=""
|
||||
|
@ -94,6 +100,11 @@ CONFIGURE_ARGS+=--without-libopenraw
|
|||
PLIST_SUB+= OPENRAW="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_OPTIMIZE)
|
||||
CONFIGURE_ARGS+=--disable-mmx \
|
||||
--disable-sse
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_PANGO)
|
||||
USE_GNOME+= pango
|
||||
.else
|
||||
|
@ -130,6 +141,14 @@ LIB_DEPENDS+= spiro.0:${PORTSDIR}/graphics/libspiro
|
|||
CONFIGURE_ARGS+=--without-libspiro
|
||||
.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)
|
||||
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc
|
||||
.else
|
||||
|
@ -138,6 +157,7 @@ CONFIGURE_ARGS+= --disable-docs
|
|||
|
||||
post-patch:
|
||||
${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:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
|
|
@ -200,6 +200,8 @@ lib/gegl-0.0/tonemap.la
|
|||
lib/gegl-0.0/tonemap.so
|
||||
lib/gegl-0.0/unsharp-mask.la
|
||||
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.so
|
||||
lib/gegl-0.0/whitebalance.la
|
||||
|
@ -259,8 +261,8 @@ libdata/pkgconfig/gegl.pc
|
|||
@dirrm include/gegl-0.0
|
||||
@dirrm lib/gegl-0.0
|
||||
%%PORTDOCS%%@dirrm share/gtk-doc/html/gegl
|
||||
%%PORTDOCS%%@dirrm share/gtk-doc/html
|
||||
%%PORTDOCS%%@dirrm share/gtk-doc
|
||||
%%PORTDOCS%%@dirrmtry share/gtk-doc/html
|
||||
%%PORTDOCS%%@dirrmtry share/gtk-doc
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/gallery
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/data
|
||||
|
|
Loading…
Add table
Reference in a new issue