Date: Sun, 16 Jun 2002 23:36:39 +0400 (MSD) From: "Lev A. Serebryakov" <lev@serebryakov.spb.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/39376: Additional knob for port devel/kdevelop: port could be build for KDE 2.2.x TOO! Message-ID: <200206161936.g5GJadl94684@ftp.translate.ru>
next in thread | raw e-mail | index | archive | help
>Number: 39376 >Category: ports >Synopsis: Additional knob for port devel/kdevelop: port could be build for KDE 2.2.x TOO! >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 16 12:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Lev A. Serebryakov <lev@serebryakov.spb.ru> >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD freebsd.sereb.net 4.4-STABLE FreeBSD 4.4-STABLE #1: Sat Dec 8 13:48:40 MSK 2001 root@freebsd.sereb.net:/usr/obj/usr/src/sys/LEVMAIL i386 Ports collection: 16 Jun 2002 >Description: This PR adds ability to build not onky KDevelop 2.1.1 for KDE3, but for KDE 2.2.x too. Default is KDE3, and user could specify FOR_KDE=2 on command line and KDevelop 2.1.1 for KDE 2.2.2 will be build. This PR is result of ports/39363 duscussion in ports mailing list. ADDED FILES: distinfo.kde2 distinfo.kde3 REMOVED FILES: distinfo >How-To-Repeat: >Fix: diff -ruN kdevelop.orig/Makefile kdevelop/Makefile --- kdevelop.orig/Makefile Sun Jun 16 23:18:21 2002 +++ kdevelop/Makefile Sun Jun 16 23:26:59 2002 @@ -5,13 +5,22 @@ # $FreeBSD: ports/devel/kdevelop/Makefile,v 1.46 2002/06/15 16:16:04 will Exp $ # +FOR_KDE?= 3 + PORTNAME= kdevelop PORTVERSION= 2.1.1 CATEGORIES?= devel kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/3.0.1/src DIST_SUBDIR= KDE + +.if ${FOR_KDE} == 3 DISTNAME= ${PORTNAME}-${PORTVERSION}_for_KDE_3.0 +MD5_FILE= ${MASTERDIR}/distinfo.kde3 +.elif ${FOR_KDE} == 2 +DISTNAME= ${PORTNAME}-${PORTVERSION}_for_KDE_2.2 +MD5_FILE= ${MASTERDIR}/distinfo.kde2 +.endif MAINTAINER?= kde@FreeBSD.org @@ -19,14 +28,14 @@ .if defined(WITH_OPTIONAL_DEPENDS) RUN_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf \ automake:${PORTSDIR}/devel/automake \ - kiconedit:${PORTSDIR}/graphics/kdegraphics3 \ - ark:${PORTSDIR}/misc/kdeutils3 \ + kiconedit:${PORTSDIR}/graphics/kdegraphics${FOR_KDE} \ + ark:${PORTSDIR}/misc/kdeutils${FOR_KDE} \ glimpse:${PORTSDIR}/textproc/glimpse \ - kbabel:${PORTSDIR}/devel/kdesdk3 \ + kbabel:${PORTSDIR}/devel/kdesdk${FOR_KDE} \ a2ps:${PORTSDIR}/print/a2ps-letter .endif -USE_KDELIBS_VER=3 +USE_KDELIBS_VER=${FOR_KDE} USE_BZIP2= yes USE_GMAKE= yes GNU_CONFIGURE= yes @@ -35,6 +44,20 @@ CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} pre-everything:: +.if ${FOR_KDE} == 3 + @${ECHO_MSG} + @${ECHO_MSG} "You selected to build KDevelop ${PORTVERSION} for KDE 3.x + @${ECHO_MSG} "If you want KDevelop for KDE 2.2.x, please run make with + @${ECHO_MSG} +.elif ${FOR_KDE} == 2 + @${ECHO_MSG} + @${ECHO_MSG} "You selected to build KDevelop ${PORTVERSION} for KDE 2.2.x + @${ECHO_MSG} "If you want KDevelop for KDE 3.x, please run make with + @${ECHO_MSG} "FOR_KDE=3 parameter" + @${ECHO_MSG} +.else +BROKEN= "Please, select FOR_KDE version 2 or 3" +.endif .if !defined(WITH_OPTIONAL_DEPENDS) @${ECHO_MSG} @${ECHO_MSG} "You may define WITH_OPTIONAL_DEPENDS (make WITH_OPTIONAL_DEPENDS=YES)" diff -ruN kdevelop.orig/distinfo kdevelop/distinfo --- kdevelop.orig/distinfo Sun Jun 16 23:18:21 2002 +++ kdevelop/distinfo Thu Jan 1 03:00:00 1970 @@ -1 +0,0 @@ -MD5 (KDE/kdevelop-2.1.1_for_KDE_3.0.tar.bz2) = eea8e3b3b3d3bb88933185b3bdf29d75 diff -ruN kdevelop.orig/distinfo.kde2 kdevelop/distinfo.kde2 --- kdevelop.orig/distinfo.kde2 Thu Jan 1 03:00:00 1970 +++ kdevelop/distinfo.kde2 Sun Jun 16 23:27:14 2002 @@ -0,0 +1 @@ +MD5 (KDE/kdevelop-2.1.1_for_KDE_2.2.tar.bz2) = c41db80c84e57d1184dcf4eb40b26e11 diff -ruN kdevelop.orig/distinfo.kde3 kdevelop/distinfo.kde3 --- kdevelop.orig/distinfo.kde3 Thu Jan 1 03:00:00 1970 +++ kdevelop/distinfo.kde3 Sun Jun 16 11:33:15 2002 @@ -0,0 +1 @@ +MD5 (KDE/kdevelop-2.1.1_for_KDE_3.0.tar.bz2) = eea8e3b3b3d3bb88933185b3bdf29d75 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206161936.g5GJadl94684>