aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/imlib2/Makefile11
-rw-r--r--graphics/imlib2/pkg-plist12
2 files changed, 13 insertions, 10 deletions
diff --git a/graphics/imlib2/Makefile b/graphics/imlib2/Makefile
index d07058ff1eec..93e802cd2062 100644
--- a/graphics/imlib2/Makefile
+++ b/graphics/imlib2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= imlib2
PORTVERSION= 1.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://enlightenment.freedesktop.org/files/
@@ -22,13 +22,11 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
USE_LIBLTDL= yes
USE_LIBTOOL_VER= 15
-USE_X_PREFIX= yes
USE_GNOME= gnomehack pkgconfig gnometarget
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_AUTOCONF_VER= 259
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${PREFIX}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -L${PREFIX}/lib"
+CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
@@ -37,6 +35,11 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS+= --enable-mmx
.endif
+.if defined(WITHOUT_X11)
+CONFIGURE_ARGS+= --without-x
+PLIST_SUB= X11="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
's|round|rint|g' ${WRKSRC}/src/lib/color_helpers.c
diff --git a/graphics/imlib2/pkg-plist b/graphics/imlib2/pkg-plist
index 18596c6abe5f..0536ff5b1de1 100644
--- a/graphics/imlib2/pkg-plist
+++ b/graphics/imlib2/pkg-plist
@@ -1,10 +1,10 @@
-bin/imlib2_bumpmap
-bin/imlib2_colorspace
+%%X11%%bin/imlib2_bumpmap
+%%X11%%bin/imlib2_colorspace
bin/imlib2_conv
-bin/imlib2_poly
-bin/imlib2_show
-bin/imlib2_test
-bin/imlib2_view
+%%X11%%bin/imlib2_poly
+%%X11%%bin/imlib2_show
+%%X11%%bin/imlib2_test
+%%X11%%bin/imlib2_view
bin/imlib2-config
include/Imlib2.h
lib/libImlib2.a