2003-01-28 19:36:58 +01:00
|
|
|
# -*-mode: makefile-*-
|
2002-06-15 18:16:32 +02:00
|
|
|
# New ports collection makefile for: KDE3 Graphics
|
2000-09-15 23:40:47 +02:00
|
|
|
# Date created: Saturday 2 September 2000
|
|
|
|
# Whom: Will Andrews <will@FreeBSD.org>
|
1998-02-21 16:09:22 +01:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-02-21 16:09:22 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= kdegraphics
|
2002-07-04 21:39:36 +02:00
|
|
|
PORTVERSION= ${KDE_VERSION}
|
2004-02-22 04:31:25 +01:00
|
|
|
PORTREVISION= 2
|
1998-02-21 16:09:22 +01:00
|
|
|
CATEGORIES= graphics kde
|
2000-09-15 23:40:47 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2004-02-05 02:23:10 +01:00
|
|
|
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
|
2001-09-10 22:22:28 +02:00
|
|
|
DIST_SUBDIR= KDE
|
1998-02-21 16:09:22 +01:00
|
|
|
|
2001-08-25 04:17:59 +02:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Graphics utilities for the KDE3 integrated X11 desktop
|
1998-02-21 16:09:22 +01:00
|
|
|
|
2004-02-09 05:50:35 +01:00
|
|
|
LIB_DEPENDS= fribidi:${PORTSDIR}/converters/fribidi \
|
|
|
|
glut:${PORTSDIR}/graphics/libglut
|
|
|
|
RUN_DEPENDS= pdfinfo:${PORTSDIR}/graphics/xpdf
|
2004-01-01 15:32:34 +01:00
|
|
|
|
2002-04-22 01:47:50 +02:00
|
|
|
USE_KDELIBS_VER=3
|
2003-01-28 19:36:58 +01:00
|
|
|
PREFIX= ${KDE_PREFIX}
|
|
|
|
KDE_BUILD_PLIST=yes
|
|
|
|
|
2001-08-21 13:33:03 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2004-02-04 18:30:41 +01:00
|
|
|
WANT_GNOME= yes
|
2002-06-15 18:16:32 +02:00
|
|
|
|
2003-01-28 19:36:58 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
|
|
|
|
|
2003-08-22 15:08:38 +02:00
|
|
|
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
IMLIB_CONFIG= ${X11BASE}/bin/imlib-config
|
|
|
|
|
|
|
|
.if exists(${IMLIB_CONFIG})
|
|
|
|
WITH_IMLIB?= yes
|
|
|
|
.endif
|
|
|
|
|
2002-06-15 18:16:32 +02:00
|
|
|
.if defined(WITH_IMLIB) || defined(KDE_WITH_IMLIB)
|
2002-09-03 04:46:49 +02:00
|
|
|
USE_GNOME= imlib
|
2003-01-28 19:36:58 +01:00
|
|
|
PLIST_APPEND+= plist.imlib
|
|
|
|
CONFIGURE_ARGS+=--with-imlib-config=${X11BASE}/bin
|
2002-06-15 18:16:32 +02:00
|
|
|
.else
|
|
|
|
WITHOUT_IMLIB= yes
|
2003-01-28 19:36:58 +01:00
|
|
|
CONFIGURE_ARGS+=--without-imlib-config
|
2003-08-22 15:08:38 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "======================================================="
|
|
|
|
@${ECHO_MSG} "If you want to compile with imlib support (enables"
|
|
|
|
@${ECHO_MSG} "kuickshow), hit Ctrl-C right now and use"
|
|
|
|
@${ECHO_MSG} "\"make WITH_IMLIB=yes\""
|
|
|
|
@${ECHO_MSG} "======================================================="
|
|
|
|
@${ECHO_MSG}
|
2003-01-28 19:36:58 +01:00
|
|
|
.endif # defined(WITH_IMLIB) || defined(KDE_WITH_IMLIB)
|
2002-03-30 10:07:53 +01:00
|
|
|
|
2002-07-14 16:31:49 +02:00
|
|
|
GPHOTO2_CONFIG= ${LOCALBASE}/bin/gphoto2-config
|
|
|
|
|
|
|
|
.if exists(${GPHOTO2_CONFIG})
|
|
|
|
WITH_GPHOTO2?= yes
|
2003-01-28 19:36:58 +01:00
|
|
|
.endif # exists(${GPHOTO2_CONFIG})
|
2002-07-14 16:31:49 +02:00
|
|
|
|
2003-01-28 19:36:58 +01:00
|
|
|
.if defined(WITH_GPHOTO2)
|
2002-07-14 16:31:49 +02:00
|
|
|
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/gphoto2
|
2003-01-28 19:36:58 +01:00
|
|
|
PLIST_APPEND+= plist.gphoto2
|
2002-07-14 16:31:49 +02:00
|
|
|
.else
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "======================================================="
|
|
|
|
@${ECHO_MSG} "If you want to compile with digital camera support,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GPHOTO2=yes\""
|
|
|
|
@${ECHO_MSG} "======================================================="
|
|
|
|
@${ECHO_MSG}
|
2003-01-28 19:36:58 +01:00
|
|
|
.endif # defined(WITH_GPHOTO2)
|
2001-08-19 02:04:22 +02:00
|
|
|
|
2001-08-21 13:33:03 +02:00
|
|
|
SANE_CONFIG= ${LOCALBASE}/bin/sane-config
|
|
|
|
|
|
|
|
.if exists(${SANE_CONFIG})
|
2002-07-14 16:31:49 +02:00
|
|
|
WITH_SANE?= yes
|
2003-01-28 19:36:58 +01:00
|
|
|
.endif # exists(${SANE_CONFIG})
|
2001-08-21 13:33:03 +02:00
|
|
|
|
2003-01-28 19:36:58 +01:00
|
|
|
.if defined(WITH_SANE)
|
2001-08-20 22:51:37 +02:00
|
|
|
LIB_DEPENDS+= sane.1:${PORTSDIR}/graphics/sane-backends
|
2003-01-28 19:36:58 +01:00
|
|
|
PLIST_APPEND+= plist.sane
|
2003-07-29 06:26:22 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/gocr:${PORTSDIR}/graphics/gocr
|
2001-08-19 02:04:22 +02:00
|
|
|
.else
|
|
|
|
pre-everything::
|
2001-08-21 13:33:03 +02:00
|
|
|
@${ECHO_MSG}
|
2002-07-14 16:31:49 +02:00
|
|
|
@${ECHO_MSG} "======================================================="
|
2001-08-21 13:33:03 +02:00
|
|
|
@${ECHO_MSG} "If you want to compile with scanner (SANE) support,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SANE=yes\""
|
2002-07-14 16:31:49 +02:00
|
|
|
@${ECHO_MSG} "======================================================="
|
2001-08-21 13:33:03 +02:00
|
|
|
@${ECHO_MSG}
|
2003-01-28 19:36:58 +01:00
|
|
|
.endif # defined(WITH_SANE)
|
2001-08-19 02:04:22 +02:00
|
|
|
|
2001-08-21 13:33:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|