aboutsummaryrefslogtreecommitdiff
path: root/x11/kde4-baseapps/Makefile
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2001-08-31 11:27:34 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2001-08-31 11:27:34 +0000
commit2f546fc008680684f3be24af6f1815b97d9aa2cd (patch)
tree379bd8a37b0551e445d378f5801cbab770bd1762 /x11/kde4-baseapps/Makefile
parent231901c7acc9be09e0bf12e3eacc3fcd60e086cb (diff)
downloadports-2f546fc008680684f3be24af6f1815b97d9aa2cd.tar.gz
ports-2f546fc008680684f3be24af6f1815b97d9aa2cd.zip
Notes
Diffstat (limited to 'x11/kde4-baseapps/Makefile')
-rw-r--r--x11/kde4-baseapps/Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/x11/kde4-baseapps/Makefile b/x11/kde4-baseapps/Makefile
index ae09c507e98e..2a4dfc2629ef 100644
--- a/x11/kde4-baseapps/Makefile
+++ b/x11/kde4-baseapps/Makefile
@@ -30,6 +30,26 @@ CONFIGURE_ARGS+=--with-xdmdir=${X11BASE}/lib/X11/xdm \
--disable-closure
USE_GMAKE= yes
+.include <bsd.port.pre.mk>
+
+.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
@@ -43,4 +63,4 @@ pre-configure:
post-configure:
${PERL} -pi -e "s@444@644@g" ${WRKSRC}/kdesktop/init/Templates/Makefile
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>