openbsd-ports/x11/kde/graphics3/Makefile
ajacoutot 861a799ae0 Use @unexec-delete instead of @unexec for the *-update-* goos.
prodded by espie@
discussed with espie@ sthen@ landry@
2009-12-21 20:46:00 +00:00

90 lines
3.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.89 2009/12/21 20:46:01 ajacoutot Exp $
COMMENT-main = K Desktop Environment, graphic applications
COMMENT-kamera = KDE interface to digital cameras
COMMENT-kpov = KDE modeller for povray
COMMENT-sane = KDE interface to scanners
CATEGORIES = x11 x11/kde
VERSION = 3.5.10
DISTNAME = kdegraphics-${VERSION}
MODKDE_VERSION = 3.5.8
FLAVORS = debug
SEPARATE_BUILD = flavored
MULTI_PACKAGES = -main -kpov -kamera -sane
PKGNAME = ${DISTNAME}
PKGNAME-main = ${DISTNAME}p5
PKGNAME-kamera = kamera-${VERSION}p3
PKGNAME-kpov = kpovmodeller-${VERSION}p3
PKGNAME-sane = ksane-${VERSION}p4
SHARED_LIBS += kghostviewlib 1.0 # .0.0
SHARED_LIBS += kpovmodeler 1.0 # .0.0
SHARED_LIBS += text2path 1.0 # .0.0
SHARED_LIBS += ksvg 1.0 # .0.1
SHARED_LIBS += kimageviewer 1.0 # .0.0
SHARED_LIBS += kmultipage 1.0 # .0.0
SHARED_LIBS += kscan 2.0 # .1.0
MODULES = x11/kde devel/gettext
BUILD_DEPENDS = ::print/texlive/base
WANTLIB = X11 art_lgpl_2 ICE png util jpeg z SM Xext \
m idn Xau Xdmcp fam rpcsvc stdc++ \
pthread-stubs qt-mt xcb
RUN_DEPENDS-main = ${RUN_DEPENDS} \
:ghostscript-*:print/ghostscript/gnu \
:desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS-main = ${MODGETTEXT_LIB_DEPENDS} \
kdecore.>=6,DCOP,kio,kwalletclient,kdefx,kdeui,kdesu,kdeprint,khtml,kjs,kparts,kutils::x11/kde/libs3 \
Imlib::graphics/imlib \
ungif::graphics/libungif \
fribidi::devel/fribidi \
paper::print/libpaper \
poppler::print/poppler \
poppler-qt::print/poppler,-qt
WANTLIB-main = ${WANTLIB} \
Half Iex IlmImf IlmThread Imath \
tiff fontconfig lcms Xrender ICE c \
freetype pcreposix pcre Xxf86vm SM Xext Xft \
expat xml2 pthread
LIB_DEPENDS-kpov = ${MODGETTEXT_LIB_DEPENDS} \
kdecore.>=6,DCOP,kio,kwalletclient,kdefx,kdeui,kdesu,kparts::x11/kde/libs3
RUN_DEPENDS-kpov = ::graphics/povray \
:desktop-file-utils-*:devel/desktop-file-utils
WANTLIB-kpov = ${WANTLIB} GL freetype Xrender Xmu GLU c Xi \
Xt pthread
LIB_DEPENDS-kamera = ${MODGETTEXT_LIB_DEPENDS} \
gphoto2,gphoto2_port::graphics/libgphoto2 \
kdecore.>=6,DCOP,kio,kwalletclient,kdefx,kdeui,kdesu::x11/kde/libs3
WANTLIB-kamera = ${WANTLIB} exif Xrender ltdl
RUN_DEPENDS-sane = :desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS-sane = ${MODGETTEXT_LIB_DEPENDS} \
kdecore.>=6,DCOP,kio,kwalletclient,kdefx,kdeui,kdesu,ktexteditor,vcard,kabc,kparts,kresources,kspell,kdeprint::x11/kde/libs3 \
sane::graphics/sane-backends
WANTLIB-sane = ${WANTLIB-kamera} usb tiff c ltdl pthread avahi-client avahi-common dbus-1 \
gphoto2 gphoto2_port
CONFIGURE_ENV += \
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
post-patch:
@cp ${FILESDIR}/part_init.cpp ${WRKSRC}/kghostview
.if ${MACHINE_ARCH} == "sparc64"
SUP_PATCH_LIST = gcc-*
.endif
CONFIGURE_ENV += TIFF_LIBS='-L${LOCALBASE}/lib -ltiff -ljpeg -lz' \
TIFF_CFLAGS='-I${LOCALBASE}/include'
.include <bsd.port.mk>