2010-07-08 17:28:48 -04:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.40 2010/07/08 21:28:48 espie Exp $
|
|
|
|
DIST_SUBDIR ?= kde
|
|
|
|
HOMEPAGE ?= http://www.kde.org
|
|
|
|
|
|
|
|
MASTER_SITES ?= ${MASTER_SITE_KDE:S@$@stable/${VERSION}/src/@}
|
|
|
|
EXTRACT_SUFX ?= .tar.bz2
|
|
|
|
MASTER_SITES0 = ${MASTER_SITE_KDE:=security_patches/}
|
2002-04-09 21:24:38 -04:00
|
|
|
|
|
|
|
# Parts of kde want shared libraries to work, as some symbols are
|
|
|
|
# duplicated over the place.
|
2010-07-08 17:28:48 -04:00
|
|
|
NOT_FOR_ARCHS ?= ${NO_SHARED_ARCHS}
|
|
|
|
SHARED_ONLY = Yes
|
|
|
|
MODKDE_VERSION ?= 3.1
|
|
|
|
MODULES ?= x11/kde
|
2002-04-09 21:24:38 -04:00
|
|
|
|
2010-07-08 17:28:48 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIR ?= ${MODKDE_CONFIG_GUESS_DIRS}
|
2002-04-09 21:24:38 -04:00
|
|
|
|
2010-07-08 17:28:48 -04:00
|
|
|
CONFIGURE_STYLE ?= autoconf
|
2007-05-14 10:06:43 -04:00
|
|
|
.if defined(MODKDE_VERSION)
|
2010-07-08 17:28:48 -04:00
|
|
|
. if ${MODKDE_VERSION} == "3.5.7"
|
|
|
|
AUTOCONF_VERSION ?= 2.60
|
2007-05-14 10:06:43 -04:00
|
|
|
. endif
|
2010-07-08 17:28:48 -04:00
|
|
|
. if ${MODKDE_VERSION} == "3.5.8"
|
|
|
|
AUTOCONF_VERSION ?= 2.61
|
2007-10-24 17:52:16 -04:00
|
|
|
. endif
|
2004-07-24 08:47:13 -04:00
|
|
|
.endif
|
2010-07-08 17:28:48 -04:00
|
|
|
AUTOCONF_VERSION ?= 2.57
|
|
|
|
CONFIGURE_ARGS += ${MODKDE_CONFIGURE_ARGS}
|
|
|
|
USE_GMAKE ?= Yes
|
2002-04-09 21:24:38 -04:00
|
|
|
|
2010-07-08 17:28:48 -04:00
|
|
|
PORTHOME ?= ${WRKDIR}
|
2002-04-09 21:24:38 -04:00
|
|
|
|
2010-07-08 17:28:48 -04:00
|
|
|
CONFIGURE_ENV += ${MODKDE_CONFIGURE_ENV}
|
|
|
|
MAKE_ENV = ${CONFIGURE_ENV}
|
2002-04-09 21:24:38 -04:00
|
|
|
|
2010-07-08 17:28:48 -04:00
|
|
|
MAKE_FLAGS += ${MODKDE_MAKE_FLAGS}
|
|
|
|
FAKE_FLAGS ?= TAR=tar
|
2002-04-09 21:24:38 -04:00
|
|
|
# GPL
|
2010-07-08 17:28:48 -04:00
|
|
|
PERMIT_DISTFILES_CDROM ?= Yes
|
|
|
|
PERMIT_DISTFILES_FTP ?= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM ?= Yes
|
|
|
|
PERMIT_PACKAGE_FTP ?= Yes
|
|
|
|
|
|
|
|
# let's do a sweet little dance for kde4's libs
|
|
|
|
post_install_libs = mkdir -p ${PREFIX}/lib/kde3; cd ${PREFIX}/lib/kde3
|
|
|
|
.for l v in ${SHARED_LIBS}
|
|
|
|
post_install_libs += ;test -e ../lib$l.so.$v && ln -sf ../lib$l.so.$v lib$l.so.$v
|
|
|
|
.endfor
|
|
|
|
.if !target(post-install)
|
|
|
|
post-install:
|
|
|
|
@${post_install_libs}
|
|
|
|
.endif
|