diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-08-21 19:33:03 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-08-21 19:33:03 +0800 |
commit | 030ea3eb8a5367e40aa134bdf821be617914bd97 (patch) | |
tree | c2f8375eadfcc08f826f00086ecf78b00daaee81 /graphics/kdegraphics3 | |
parent | 17a86c2f9fbd0dce442ec5e4033168c78072731c (diff) | |
download | freebsd-ports-gnome-030ea3eb8a5367e40aa134bdf821be617914bd97.tar.gz freebsd-ports-gnome-030ea3eb8a5367e40aa134bdf821be617914bd97.tar.zst freebsd-ports-gnome-030ea3eb8a5367e40aa134bdf821be617914bd97.zip |
Let this port autodetect SANE and define WITH_SANE automatically. Also,
make a better message for advertising the WITH_SANE option.
Diffstat (limited to 'graphics/kdegraphics3')
-rw-r--r-- | graphics/kdegraphics3/Makefile | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/graphics/kdegraphics3/Makefile b/graphics/kdegraphics3/Makefile index 860081288b68..0c935986db94 100644 --- a/graphics/kdegraphics3/Makefile +++ b/graphics/kdegraphics3/Makefile @@ -16,25 +16,36 @@ MAINTAINER= will@FreeBSD.org BUILD_DEPENDS= dvips:${PORTSDIR}/print/teTeX RUN_DEPENDS= dvips:${PORTSDIR}/print/teTeX +USE_KDELIBS_VER=2 +USE_BZIP2= yes +INSTALLS_SHLIB= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_ARGS+=--without-kamera + +.include <bsd.port.pre.mk> + # temporarily disable kamera, it requires gphoto2 PLIST_SUB+= KAMERA:="@comment " -.if defined(WITH_SANE) +SANE_CONFIG= ${LOCALBASE}/bin/sane-config + +.if exists(${SANE_CONFIG}) +WITH_SANE= yes +.endif + +.if defined(WITH_SANE) && ${WITH_SANE} == yes LIB_DEPENDS+= sane.1:${PORTSDIR}/graphics/sane-backends PLIST_SUB+= SANE:="" .else PLIST_SUB+= SANE:="@comment " pre-everything:: - @${ECHO_MSG} "===> If you want to compile this port with scanner support, use \"make WITH_SANE=yes\"" + @${ECHO_MSG} + @${ECHO_MSG} "If you want to compile with scanner (SANE) support," + @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SANE=yes\"" + @${ECHO_MSG} .endif -USE_KDELIBS_VER=2 -USE_BZIP2= yes -INSTALLS_SHLIB= yes -GNU_CONFIGURE= yes -USE_GMAKE= yes -CONFIGURE_ARGS+=--without-kamera - pre-configure: ${PERL} -pi -e "s@libkscan_la_LIBADD =@libkscan_la_LIBADD= -lintl@g" ${WRKSRC}/libkscan/Makefile.in ${PERL} -pi -e "s@libkcm_kamera_la_LIBADD =@libkcm_kamera_la_LIBADD= -lintl@g" ${WKRSRC}/kamera/kcontrol/Makefile.in @@ -42,4 +53,4 @@ pre-configure: find ${WRKSRC} -name Makefile.in | xargs ${PERL} -pi -e \ "s@GPHOTO2_LIBS =@GPHOTO2_LIBS= -lintl@g" -.include <bsd.port.mk> +.include <bsd.port.post.mk> |