2001-12-31 07:30:53 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.32 2001/12/31 12:30:54 espie Exp $
|
2000-10-09 18:38:34 -04:00
|
|
|
|
2001-03-26 08:29:51 -05:00
|
|
|
COMMENT= "X11 toolkit, basic applications"
|
2001-04-24 07:44:03 -04:00
|
|
|
COMMENT-plugins= "X11 toolkit, netscape plugins"
|
2000-10-09 18:38:34 -04:00
|
|
|
CATEGORIES= x11 x11/kde
|
2001-12-31 07:30:53 -05:00
|
|
|
NEED_VERSION= 1.504
|
|
|
|
VERSION= 2.2.2
|
2000-10-09 18:38:34 -04:00
|
|
|
DISTNAME= kdebase-${VERSION}
|
2001-04-24 07:44:03 -04:00
|
|
|
PKGNAME-plugins= kdebase-ns-${VERSION}
|
2000-10-09 18:38:34 -04:00
|
|
|
DIST_SUBDIR= kde
|
|
|
|
|
2001-03-30 07:31:35 -05:00
|
|
|
HOMEPAGE= http://www.kde.org
|
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2001-08-21 06:59:38 -04:00
|
|
|
MASTER_SITE_SUBDIR= stable/${VERSION}/src/
|
2000-10-09 18:38:34 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2001-04-22 09:23:38 -04:00
|
|
|
# Parts of kde want shared libraries to work, as some symbols are
|
|
|
|
# duplicated over the place.
|
|
|
|
NOT_FOR_ARCHS=${NO_SHARED_ARCHS}
|
|
|
|
|
2001-04-24 07:44:03 -04:00
|
|
|
MULTI_PACKAGES=-plugins
|
2001-08-27 08:11:17 -04:00
|
|
|
MODULES=qt2
|
2001-04-24 07:44:03 -04:00
|
|
|
|
|
|
|
SUBPACKAGE?=
|
|
|
|
.if !defined(PACKAGING) || ${SUBPACKAGE} == "-plugins"
|
2001-04-18 11:01:02 -04:00
|
|
|
USE_MOTIF= any
|
2001-04-24 07:44:03 -04:00
|
|
|
.endif
|
|
|
|
|
2001-10-24 08:52:42 -04:00
|
|
|
LIB_DEPENDS= kdecore.3,kdeui,DCOP,artskde,kab,kdefakes,kdeprint,kdeprint_management,kdesu,kfile,khtml,kio,kjava,kmid,kparts,kscreensaver,kspell,kssl,ksycoca,ktexteditor,soundserver_idl::x11/kde/libs2 \
|
|
|
|
ldap.2,lber:openldap-client-2.*:databases/openldap \
|
|
|
|
vorbis,vorbisenc::audio/libvorbis \
|
|
|
|
cdda_paranoia,cdda_interface::audio/cdparanoia
|
2000-10-09 18:38:34 -04:00
|
|
|
|
2001-09-19 11:20:11 -04:00
|
|
|
BUILD_DEPENDS= ::x11/qt2-designer :zsh-*:shells/zsh/stable ::audio/lame
|
2001-03-26 08:29:51 -05:00
|
|
|
|
2001-04-22 10:59:43 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2001-12-31 07:30:53 -05:00
|
|
|
AUTOCONF_NEW= Yes
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/admin
|
2001-08-27 08:11:17 -04:00
|
|
|
CONFIGURE_ARGS= ${MODQT_CONFIGURE_ARGS}
|
2000-10-09 18:38:34 -04:00
|
|
|
CONFIGURE_ARGS+= --with-extra-libs=${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-extra-includes=${LOCALBASE}/include
|
2000-12-17 06:27:55 -05:00
|
|
|
CONFIGURE_ARGS+= --with-xdmdir=/var/X11/kdm
|
2001-08-27 01:44:37 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-debug
|
2001-08-27 08:11:17 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-final
|
2001-08-27 01:44:37 -04:00
|
|
|
#CONFIGURE_ARGS+= --enable-debug
|
2000-12-17 06:27:55 -05:00
|
|
|
#CONFIGURE_ARGS+= --without-motif
|
|
|
|
#CONFIGURE_ARGS+=--enable-static --enable-debug --disable-shared
|
2000-10-09 18:38:34 -04:00
|
|
|
|
2001-09-27 06:54:59 -04:00
|
|
|
PATCH_LIST=${PORTSDIR}/x11/kde/libs2/patches/p-* patch-*
|
|
|
|
|
2000-10-09 18:38:34 -04:00
|
|
|
# Not yet, too much time to compile
|
|
|
|
#CONFIGURE_ARGS+= --enable-static
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2001-08-27 08:11:17 -04:00
|
|
|
CONFIGURE_ENV= RUN_KAPPFINDER=no KDEDIR=${LOCALBASE}
|
2001-09-19 10:13:28 -04:00
|
|
|
CONFIGURE_ENV+= ac_aux_files=''
|
2001-03-11 11:13:47 -05:00
|
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
2000-10-09 18:38:34 -04:00
|
|
|
|
2001-08-26 08:04:44 -04:00
|
|
|
LAMEDIR=${WRKDIR}/lamestub
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
mkdir -p ${LAMEDIR}
|
|
|
|
cp ${FILESDIR}/lame.c ${LAMEDIR}
|
|
|
|
|
2001-04-22 09:23:38 -04:00
|
|
|
pre-build:
|
|
|
|
# Let zsh act as an sh replacement
|
|
|
|
ln -sf $(LOCALBASE)/bin/zsh ${WRKBUILD}/sh
|
2001-08-26 08:04:44 -04:00
|
|
|
cd ${LAMEDIR} && ${CC} -I${LOCALBASE}/include -o libmp3lame.so.0.0 -shared -fpic -O2 lame.c
|
|
|
|
|
2001-04-22 09:23:38 -04:00
|
|
|
|
2001-01-17 21:30:47 -05:00
|
|
|
# Ensure qt2 will always be at the front
|
2001-08-27 08:11:17 -04:00
|
|
|
MAKE_FLAGS=CXXLD='--tag CXX ${CXX} -L${MODQT_LIBDIR}'
|
2001-04-22 09:23:38 -04:00
|
|
|
MAKE_FLAGS+=LIBTOOL='$(WRKBUILD)/sh $(WRKBUILD)/libtool'
|
2001-08-27 01:44:37 -04:00
|
|
|
MAKE_FLAGS+=LAMEDIR='${LAMEDIR}'
|
2001-01-17 21:30:47 -05:00
|
|
|
|
2000-10-09 18:38:34 -04:00
|
|
|
# GPL
|
2001-08-26 08:04:44 -04:00
|
|
|
# Note that lame is not a problem, since kdebase is packaged with a
|
|
|
|
# stub lame library which does nothing, and can be overriden with a
|
|
|
|
# live one later.
|
2000-10-09 18:38:34 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2001-08-23 18:25:49 -04:00
|
|
|
post-install:
|
|
|
|
rm -rf ${PREFIX}/share/config/kdm
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kdm/kfrontend/genkdmconf ${PREFIX}/libexec
|
2001-08-26 08:04:44 -04:00
|
|
|
${INSTALL_DATA} ${LAMEDIR}/libmp3lame.so.0.0 ${PREFIX}/lib
|
2001-08-23 18:25:49 -04:00
|
|
|
|
2001-03-12 11:18:33 -05:00
|
|
|
MTREE_FILE=${PORTSDIR}/x11/kde/libs2/files/mtree
|
2000-10-09 18:38:34 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|