2005-02-27 03:20:34 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.45 2005/02/27 08:20:34 brad Exp $
|
2002-03-23 12:00:12 -05:00
|
|
|
|
2004-04-13 00:22:36 -04:00
|
|
|
COMMENT= "K Desktop Environment, graphic applications"
|
|
|
|
COMMENT-kamera= "KDE interface to digital cameras"
|
|
|
|
COMMENT-kpov= "KDE modeller for povray"
|
2002-03-23 12:00:12 -05:00
|
|
|
CATEGORIES= x11 x11/kde
|
2004-12-12 06:33:23 -05:00
|
|
|
VERSION= 3.3.2
|
2002-03-23 12:00:12 -05:00
|
|
|
DISTNAME= kdegraphics-${VERSION}
|
2004-09-18 05:36:42 -04:00
|
|
|
MODKDE_VERSION= 3.3.0
|
2002-03-23 12:00:12 -05:00
|
|
|
|
2004-02-01 09:59:21 -05:00
|
|
|
FLAVORS=debug
|
2003-04-09 20:00:23 -04:00
|
|
|
SEPARATE_BUILD=flavored
|
2003-06-12 15:16:15 -04:00
|
|
|
MULTI_PACKAGES=-kpov -kamera
|
2005-02-27 03:20:34 -05:00
|
|
|
PKGNAME=${DISTNAME}p2
|
2004-12-30 10:55:14 -05:00
|
|
|
FULLPKGNAME-kamera=kamera-${VERSION}p0
|
|
|
|
FULLPKGNAME-kpov=kpovmodeller-${VERSION}p0
|
2003-04-09 20:00:23 -04:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
LIB_DEPENDS= \
|
2004-02-04 04:13:58 -05:00
|
|
|
kdecore.6,DCOP,kdefx,kdeprint,kdesu,kdeui,khtml,kjs,kio,kparts,kutils,kwalletclient::x11/kde/libs3 \
|
2004-10-18 20:25:23 -04:00
|
|
|
fribidi::devel/fribidi \
|
|
|
|
t1.5::devel/t1lib
|
2004-12-30 10:55:14 -05:00
|
|
|
WANTLIB= X11 art_lgpl_2 pthread ICE png util jpeg z SM Xext m
|
2003-04-09 20:00:23 -04:00
|
|
|
|
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-kamera"
|
|
|
|
LIB_DEPENDS+= gphoto2,gphoto2_port::graphics/libgphoto2
|
2004-12-30 10:55:14 -05:00
|
|
|
WANTLIB+= iconv exif Xrender intl
|
2003-04-09 20:00:23 -04:00
|
|
|
. elif ${SUBPACKAGE} == "-kpov"
|
|
|
|
RUN_DEPENDS+= ::graphics/povray
|
2004-12-30 10:55:14 -05:00
|
|
|
WANTLIB+= GL stdc++ freetype Xrender Xmu GLU c Xi
|
2003-04-09 20:00:23 -04:00
|
|
|
. elif ${SUBPACKAGE} == ""
|
2003-12-07 21:17:43 -05:00
|
|
|
RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
2003-04-09 20:00:23 -04:00
|
|
|
LIB_DEPENDS+= Imlib::graphics/imlib \
|
2005-01-31 05:16:45 -05:00
|
|
|
ungif::graphics/libungif \
|
|
|
|
Iex,Half,Imath,IlmImf::graphics/openexr
|
2004-12-30 10:55:14 -05:00
|
|
|
WANTLIB+= tiff fontconfig lcms Xrender ICE c \
|
2005-01-31 05:16:45 -05:00
|
|
|
freetype stdc++ pcreposix pcre Xxf86vm SM Xext
|
2003-04-09 20:00:23 -04:00
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+=Imlib::graphics/imlib \
|
2002-03-23 12:12:10 -05:00
|
|
|
ungif::graphics/libungif \
|
2003-08-28 01:13:30 -04:00
|
|
|
gphoto2,gphoto2_port::graphics/libgphoto2
|
2003-04-09 20:00:23 -04:00
|
|
|
.endif
|
2004-10-09 10:50:45 -04:00
|
|
|
BUILD_DEPENDS+= ::print/teTeX/base \
|
|
|
|
:pkgconfig-*:devel/pkgconfig
|
2002-03-23 12:00:12 -05:00
|
|
|
|
2004-08-01 12:20:01 -04:00
|
|
|
CONFIGURE_ENV+= \
|
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
|
|
|
|
|
2004-03-23 17:14:59 -05:00
|
|
|
post-patch:
|
|
|
|
@cp ${FILESDIR}/part_init.cpp ${WRKSRC}/kghostview
|
|
|
|
|
2004-03-21 14:43:47 -05:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
2004-04-10 09:00:16 -04:00
|
|
|
SUP_PATCH_LIST= gcc-*
|
2004-03-21 14:43:47 -05:00
|
|
|
.endif
|
|
|
|
|
2002-03-23 12:00:12 -05:00
|
|
|
.include <bsd.port.mk>
|