openbsd-ports/x11/kde/kde.port.mk
espie 1df0dd589a some tweaks in preparation of kde 3.5.7:
- the infrastructure now uses autoconf 2.60.
- don't bother to patch libtool, we have USE_LIBTOOL across the board.
- set LIBTOOL_FLAGS to ignore static libraries by default. We will no
longer bother building arts with static libs, since arts is going to
die with kde4, and nothing hardly ever uses it now (in fact, the 3.5.7
release of arts includes no new code, only infrastructure changes)
2007-05-14 14:06:43 +00:00

93 lines
3.5 KiB
Makefile

# $OpenBSD: kde.port.mk,v 1.25 2007/05/14 14:06:43 espie Exp $
SHARED_ONLY?= Yes
MODKDE_VERSION?=
MODULES+= x11/qt3
MODQT_OVERRIDE_UIC?=No
MODQT_MT?=Yes
MODKDE_NODEBUG?=No
.if !${MODKDE_NODEBUG:L} == "yes"
FLAVORS+= debug
.endif
FLAVOR?=
MODKDE_CONFIGURE_ARGS=${MODQT_CONFIGURE_ARGS}
MODKDE_CONFIGURE_ARGS+= --with-extra-libs="${LOCALBASE}/lib/db4:${LOCALBASE}/lib/samba:${LOCALBASE}/lib"
MODKDE_CONFIGURE_ARGS+= --with-extra-includes="${LOCALBASE}/include/db4:${LOCALBASE}/include/libpng:${LOCALBASE}/include"
MODKDE_CONFIGURE_ARGS+= --with-xdmdir=/var/X11/kdm
MODKDE_CONFIGURE_ARGS+= --disable-libfam
MODKDE_CONFIGURE_ARGS+= --enable-mitshm
MODKDE_CONFIGURE_ARGS+= --with-xinerama
.if ${FLAVOR:L:Mdebug}
MODKDE_CONFIGURE_ARGS+= --enable-debug=yes
.else
MODKDE_CONFIGURE_ARGS+= --disable-debug
MODKDE_CONFIGURE_ARGS+= --disable-dependency-tracking
.endif
MODKDE_CONFIGURE_ARGS+= --enable-final
MODKDE_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/admin
MODKDE_CONFIGURE_ENV= UIC_PATH="${MODQT_UIC}" UIC="${MODQT_UIC}"
MODKDE_CONFIGURE_ENV+= RUN_KAPPFINDER=no KDEDIR=${LOCALBASE}
MODKDE_MAKE_FLAGS= CXXLD='--tag CXX ${CXX} -L${MODQT_LIBDIR}'
MODKDE_MAKE_FLAGS+= LIBRESOLV=
MODX11/KDE_post-patch= find ${WRKDIST} -name Makefile.am -exec touch {}.in \;
MODKDE_LIBTOOL?=No
.if ${MODKDE_LIBTOOL:L} == "yes"
LIBTOOL?=${LOCALBASE}/bin/kdelibtool
BUILD_DEPENDS+= ::x11/kde/libs3
CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_FLAGS+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
.endif
KDE=lib/kde3
SUBST_VARS+= KDE
SUP_PATCH_LIST?=
.if ${MODKDE_VERSION} == "3.1"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.1/patch-* patch-* ${SUP_PATCH_LIST}
.elif ${MODKDE_VERSION} == "3.2"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.2/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.20::x11/qt3
.elif ${MODKDE_VERSION} == "3.2.3"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.2.3/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.20::x11/qt3
.elif ${MODKDE_VERSION} == "3.3.0"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.2.3/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.33::x11/qt3
.elif ${MODKDE_VERSION} == "3.4"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.4/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.33::x11/qt3
.elif ${MODKDE_VERSION} == "3.5"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.5/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.33::x11/qt3
.elif ${MODKDE_VERSION} == "3.5.2"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.5.2/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.33::x11/qt3
.elif ${MODKDE_VERSION} == "3.5.3"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.5.3/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.33::x11/qt3
.elif ${MODKDE_VERSION} == "3.5.7"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-3.5.7/patch-* patch-* ${SUP_PATCH_LIST}
AUTOCONF?= /bin/sh ${WRKDIST}/admin/cvs.sh configure
LIB_DEPENDS+=lib/qt3/qt-mt.>=3.33::x11/qt3
USE_LIBTOOL= Yes
LIBTOOL_FLAGS=--tag=disable-static
.elif ${MODKDE_VERSION} == "2.2.2"
PATCH_LIST= ${PORTSDIR}/x11/kde/patches-2.2.2/patch-* patch-* ${SUP_PATCH_LIST}
.endif