summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/libwmf/Makefile13
-rw-r--r--graphics/libwmf/pkg-plist2
2 files changed, 11 insertions, 4 deletions
diff --git a/graphics/libwmf/Makefile b/graphics/libwmf/Makefile
index 66499f43719e..8ef7ed3b7fda 100644
--- a/graphics/libwmf/Makefile
+++ b/graphics/libwmf/Makefile
@@ -14,12 +14,19 @@ MASTER_SITE_SUBDIR= wvware
MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 # XXX
-LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
- png.5:${PORTSDIR}/graphics/png \
- freetype.8:${PORTSDIR}/print/freetype2 \
+LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
+ png:${PORTSDIR}/graphics/png \
+ freetype:${PORTSDIR}/print/freetype2 \
xml2.5:${PORTSDIR}/textproc/libxml2
+.ifndef (WITHOUT_X11)
USE_XLIB= yes
+PLIST_SUB+= X11=''
+.else
+PKGNAMESUFFIX= -nox11
+PLIST_SUB+= X11='@comment '
+.endif
+
GNU_CONFIGURE= yes
CONFIGURE_TARGET= # none
CONFIGURE_ARGS= --build=${ARCH}-portbld-freebsd${OSREL} \
diff --git a/graphics/libwmf/pkg-plist b/graphics/libwmf/pkg-plist
index d3eed90124fd..8530fa8467e2 100644
--- a/graphics/libwmf/pkg-plist
+++ b/graphics/libwmf/pkg-plist
@@ -5,7 +5,7 @@ bin/wmf2fig
bin/wmf2gd
bin/wmf2magick
bin/wmf2svg
-bin/wmf2x
+%%X11%%bin/wmf2x
include/libwmf/api.h
include/libwmf/color.h
include/libwmf/defs.h