1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/x11/kdebase4/Makefile
2002-09-20 23:32:02 +00:00

79 lines
1.8 KiB
Makefile

# New ports collection makefile for: kdebase3
# Date created: Fri Apr 14 2000 15:05:00 EDT
# Whom: will
#
# $FreeBSD$
#
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
DIST_SUBDIR= KDE
MAINTAINER?= kde@FreeBSD.org
BUILD_DEPENDS= xgettext:${PORTSDIR}/devel/gettext
USE_KDELIBS_VER=3
USE_XPM= yes
USE_BZIP2= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= RUN_KAPPFINDER=no
CONFIGURE_ARGS+=--with-xdmdir=${X11BASE}/lib/X11/xdm \
--without-ldap --disable-closure
USE_GMAKE= yes
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if exists(${X11BASE}/bin/mkfontdir)
PLIST_SUB+= MKFONTDIR=""
.else
PLIST_SUB+= MKFONTDIR="@comment "
.endif
.if exists(${X11BASE}/include/Xm/Xm.h)
WITH_MOTIF= yes
.endif
.if defined(WITH_MOTIF) && ${WITH_MOTIF} == yes
USE_MOTIF= yes
PLIST_SUB+= MOTIF=""
.else
PLIST_SUB+= MOTIF="@comment "
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "If you want to compile with Motif support,"
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_MOTIF=yes\""
@${ECHO_MSG}
@${ECHO_MSG} "Motif is used for Netscape plugin compatibility."
@${ECHO_MSG}
.endif
post-extract:
@${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
@${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv
post-patch:
@${PERL} -pi -e "s@Exec=ee@Exec=ElectricEyes@g" \
${WRKSRC}/kappfinder/apps/Graphics/ElectricEyes.desktop
.if ${MACHINE_ARCH} == "alpha"
pre-configure:
${PERL} -pi -e "s@-O2@-O@g" ${WRKSRC}/admin/acinclude.m4.in
.endif
post-configure:
${PERL} -pi -e "s@444@644@g" ${WRKSRC}/kdesktop/init/Templates/Makefile
post-install:
${CHMOD} u+s ${PREFIX}/bin/kcheckpass
${CHGRP} kmem ${PREFIX}/bin/ksysguardd && \
${CHMOD} g+s ${PREFIX}/bin/ksysguardd
.include <bsd.port.post.mk>