summaryrefslogtreecommitdiff
path: root/graphics/kdegraphics4
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-03-28 12:55:41 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-03-28 12:55:41 +0000
commit4dcaa9a533ab97b446bc08b18f2bbe9ed87fd135 (patch)
tree79db8dfaa15173f3a0823eaa619d46cfb8429eb0 /graphics/kdegraphics4
parentAvoid linking with libintl. As found by kris, opmixer does not (diff)
Respect WITHOUT_FOO.
Notes
Notes: svn path=/head/; revision=105500
Diffstat (limited to 'graphics/kdegraphics4')
-rw-r--r--graphics/kdegraphics4/Makefile55
1 files changed, 8 insertions, 47 deletions
diff --git a/graphics/kdegraphics4/Makefile b/graphics/kdegraphics4/Makefile
index b5af061b9e05..6fe18ea500d1 100644
--- a/graphics/kdegraphics4/Makefile
+++ b/graphics/kdegraphics4/Makefile
@@ -44,32 +44,11 @@ OPTIONS= IMLIB "Build Kuickshow, a fast and versatile image viewer" off \
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
-.if exists (${X11BASE}/bin/imlib-config)
-. if !defined(WITH_IMLIB)
-IMLIB_OVERRIDE= yes
-WITH_IMLIB= yes
-. endif
-.endif
-
-.if exists(${LOCALBASE}/bin/gphoto2-config)
-. if !defined(WITH_GPHOTO2)
-GPHOTO2_OVERRIDE= yes
-WITH_GPHOTO2= yes
-. endif
-.endif
-
-.if exists (${LOCALBASE}/bin/sane-config)
-. if !defined(WITH_SANE)
-SANE_OVERRIDE= yes
-WITH_SANE= yes
-. endif
-.endif
-
.if defined(WITH_IMLIB)
USE_GNOME= imlib
PLIST_APPEND+= plist.imlib
CONFIGURE_ARGS+=--with-imlib-config=${X11BASE}/bin
-.else
+.elseif defined(WITHOUT_IMLIB)
WITHOUT_IMLIB= yes
CONFIGURE_ARGS+=--without-imlib-config
.endif
@@ -77,38 +56,20 @@ CONFIGURE_ARGS+=--without-imlib-config
.if defined(WITH_GPHOTO2)
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/libgphoto2
PLIST_APPEND+= plist.gphoto2
+.elseif defined(WITHOUT_GPHOTO2)
+CONFIGURE_ARGS+=--without-kamera
.endif
.if defined(WITH_SANE)
LIB_DEPENDS+= sane.1:${PORTSDIR}/graphics/sane-backends
PLIST_APPEND+= plist.sane
RUN_DEPENDS+= ${LOCALBASE}/bin/gocr:${PORTSDIR}/graphics/gocr
+.elseif defined(WITHOUT_SANE)
+DO_NOT_COMPILE+=kooka
.endif
-pre-everything::
-.if defined(IMLIB_OVERRIDE)
- @${ECHO_MSG}
- @${ECHO_MSG} "********************************************************"
- @${ECHO_MSG} "* imlib is installed but WITH_IMLIB is not set! *"
- @${ECHO_MSG} "* WITH_IMLIB has been enabled automatically. *"
- @${ECHO_MSG} "********************************************************"
- @${ECHO_MSG}
-.endif
-.if defined(GPHOTO2_OVERRIDE)
- @${ECHO_MSG}
- @${ECHO_MSG} "********************************************************"
- @${ECHO_MSG} "* gphoto2 is installed but WITH_GPHOTO2 is not set! *"
- @${ECHO_MSG} "* WITH_GPHOTO2 has been enabled automatically. *"
- @${ECHO_MSG} "********************************************************"
- @${ECHO_MSG}
-.endif
-.if defined(SANE_OVERRIDE)
- @${ECHO_MSG}
- @${ECHO_MSG} "********************************************************"
- @${ECHO_MSG} "* sane-backends is installed but WITH_SANE is not set! *"
- @${ECHO_MSG} "* WITH_SANE has been enabled automatically. *"
- @${ECHO_MSG} "********************************************************"
- @${ECHO_MSG}
-.endif
+.if defined(DO_NOT_COMPILE)
+CONFIGURE_ENV+=DO_NOT_COMPILE="${DO_NOT_COMPILE}"
+.endif # defined(DO_NOT_COMPILE)
.include <bsd.port.post.mk>