2002-06-15 16:16:32 +00:00
|
|
|
# This is a simple set of Makefile macros which allow the core kde ports to
|
|
|
|
# bring these in automatically since it's tiring to modify all of them to
|
|
|
|
# add more of these. These don't belong in bsd.kde.mk because they aren't
|
|
|
|
# very likely to apply outside of KDE core modules. Nonetheless, also
|
|
|
|
# provide variables to remove one or more of these.
|
|
|
|
#
|
2004-11-08 00:34:12 +00:00
|
|
|
# DON'T INCLUDE THIS FILE FROM YOUR PORT. THIS FILE SHOULD BE CONSIDERED OFF-
|
|
|
|
# LIMITS FOR ANY MAINTAINER != kde@freebsd.org
|
|
|
|
#
|
2002-06-15 16:16:32 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
CONFIGURE_ARGS?=
|
|
|
|
|
|
|
|
# Stop the docs from regenerating.
|
|
|
|
COPY= -c -p
|
|
|
|
|
2002-07-04 19:39:36 +00:00
|
|
|
# For ports that have I18N components only.
|
|
|
|
.if defined(KDE_I18N)
|
|
|
|
_NO_KDE_FINAL= yes
|
|
|
|
_NO_KDE_NDEBUG= yes
|
2004-03-09 22:51:35 +00:00
|
|
|
DISTNAME?= ${PORTNAME}-${PKGNAMEPREFIX:S/-$//}-${PORTVERSION}
|
2003-07-29 04:26:22 +00:00
|
|
|
# Since KDE 3.1.3, the kde-i18n tarballs have the ${KDE_VERSION}
|
|
|
|
# as part of the name of their toplevel directory, while the
|
|
|
|
# koffice-i18n ones have not, so we need to take care of that.
|
2005-07-06 10:29:13 +00:00
|
|
|
.if ${PORTNAME}==koffice-i18n && ${PORTVERSION}!="1.3.5"
|
2005-07-31 22:46:35 +00:00
|
|
|
.if !defined(DISTNAME_OVERRIDE)
|
2005-07-06 10:29:13 +00:00
|
|
|
DISTNAME= ${PORTNAME:S/i18n/l10n/}-${PKGNAMEPREFIX:S/-$//}-${PORTVERSION}
|
|
|
|
WRKSRC= ${WRKDIR}/koffice-l10n-${PKGNAMEPREFIX:S/-$//}-${PORTVERSION}
|
2003-07-29 04:26:22 +00:00
|
|
|
.endif
|
2005-07-31 22:46:35 +00:00
|
|
|
.endif
|
2003-01-28 18:36:58 +00:00
|
|
|
DIST_SUBDIR= KDE/kde-i18n
|
2002-12-22 00:06:41 +00:00
|
|
|
|
|
|
|
# nasty hack to force newer timestamps on cache
|
|
|
|
# required to enable correct building
|
|
|
|
.if !target(post-extract)
|
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKDIR} -type f -name index.cache.bz2 \
|
|
|
|
| ${XARGS} -n 10 -x ${TOUCH}
|
2003-05-19 19:42:38 +00:00
|
|
|
@${TOUCH} ${WRKSRC}/config.h.in
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # !target(post-extract)
|
|
|
|
.endif # defined(KDE_I18N)
|
2002-07-04 19:39:36 +00:00
|
|
|
|
2003-01-12 20:34:45 +00:00
|
|
|
.if !defined(_NO_KDE_FINAL) && defined(WANT_KDE_FINAL)
|
2002-06-15 16:16:32 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-final
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(_NO_KDE_NDEBUG)
|
2003-01-29 12:07:16 +00:00
|
|
|
.if defined(PARALLEL_PACKAGE_BUILD) || !defined(WANT_KDE_DEBUG)
|
|
|
|
CONFIGURE_ARGS+=--disable-debug
|
|
|
|
.else
|
2003-07-29 04:26:22 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-debug=full
|
2002-06-15 16:16:32 +00:00
|
|
|
STRIP=''
|
2003-01-29 12:07:16 +00:00
|
|
|
.endif # defined(PARALLEL_PACKAGE_BUILD) || !defined(WANT_KDE_DEBUG)
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # !defined(_NO_KDE_NDEBUG)
|
2002-06-15 16:16:32 +00:00
|
|
|
|
2003-04-05 22:16:12 +00:00
|
|
|
.if !defined(_NO_KDE_XINERAMA)
|
|
|
|
.if !defined(WITHOUT_XINERAMA)
|
|
|
|
CONFIGURE_ARGS+= --with-xinerama
|
2002-06-15 16:16:32 +00:00
|
|
|
.endif
|
2003-04-05 22:16:12 +00:00
|
|
|
.endif # !defined(_NO_KDE_XINERAMA)
|
2002-06-15 16:16:32 +00:00
|
|
|
|
2004-03-09 19:41:12 +00:00
|
|
|
.if defined(KDE_SPLIT)
|
|
|
|
KDE_SPLIT_VER?= ${KDE_VERSION}
|
|
|
|
# needed for case where src dir name != doc dir name
|
|
|
|
KDE_DOC_SPLIT?= ${KDE_SPLIT}
|
|
|
|
DISTNAME?= ${KDE_SPLIT_DIST}-${KDE_SPLIT_VER}
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
.endif
|
|
|
|
# This must always be defined.
|
|
|
|
SPLITDEP_PREFIX?= ${PREFIX}/share/applications
|
|
|
|
|
|
|
|
# Targets section
|
|
|
|
.if defined(KDE_SPLIT)
|
|
|
|
kde-split:
|
|
|
|
${ECHO} "${KDE_SPLIT} doc" > ${WRKSRC}/inst-apps
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
"s,^SUBDIRS =.*${KDE_DOC_SPLIT}.*$$,SUBDIRS =\. ${KDE_DOC_SPLIT},g" \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
|
|
|
|
kde-split-postinstall:
|
2004-03-15 15:34:38 +00:00
|
|
|
${TOUCH} ${SPLITDEP_PREFIX}/${PORTNAME}-${PORTVERSION}
|
2004-03-09 19:41:12 +00:00
|
|
|
|
|
|
|
.if !defined(KDE_SPLIT_NONSTANDARD)
|
|
|
|
pre-configure: kde-split
|
|
|
|
post-install: kde-split-postinstall
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
2003-10-03 22:34:44 +00:00
|
|
|
.if defined(KDE_I18N)
|
|
|
|
_NO_KDE_FIXPTHREAD= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(_NO_KDE_FIXPTHREAD)
|
|
|
|
USE_REINPLACE= yes
|
2004-11-08 00:34:12 +00:00
|
|
|
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2003-10-03 22:34:44 +00:00
|
|
|
|
2003-11-02 15:56:12 +00:00
|
|
|
pre-configure: kde-fix-configure kde-fix-ltmain.sh
|
|
|
|
kde-fix-configure:
|
|
|
|
|
|
|
|
kde-fix-ltmain.sh:
|
2006-01-08 19:32:36 +00:00
|
|
|
|
2003-10-03 22:34:44 +00:00
|
|
|
.endif
|
|
|
|
|
2002-06-15 16:16:32 +00:00
|
|
|
kde-version-check:
|
|
|
|
.if exists(${LOCALBASE}/include/kfm.h)
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} " NOTICE"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You have KDE1 headers installed! Installing this port"
|
|
|
|
@${ECHO} "will result in conflicts between KDE3 and KDE1!"
|
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/include/defaultprogress.h)
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} " NOTICE"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You have KDE2 headers installed! Installing this port"
|
|
|
|
@${ECHO} "will result in conflicts between KDE3 and KDE2!"
|
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|