summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2002-02-21 17:02:20 +0000
committerMikhail Teterin <mi@FreeBSD.org>2002-02-21 17:02:20 +0000
commit60021c04f1359b6ad41ee275431d2096b4ba28b8 (patch)
tree676934143182b9143c3a1add07e3c38568fad84f /graphics
parentAllow it be compiled without svgalib support. (diff)
Obey the WITHOUT_X11 knob. One utility -- wmf2x is not installed in this
case, and USE_XLIB will not be defined, which will result in the LOCALBASE for PREFIX. LOCALBASE should, probably, be used in both cases, but libwmf-config is giving the right values... Also the -nox11 suffix is added to the package name in the WITHOUT_X11 case. Ignore the major numbers of -lfreetype, -ljpg, and -lpng -- the software will work with any reasonably recent version. I'm not sure about -lxml2, so I left that alone.
Notes
Notes: svn path=/head/; revision=55038
Diffstat (limited to 'graphics')
-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