summaryrefslogtreecommitdiff
path: root/x11/kdebase2/Makefile
blob: 3b02a3cab86aa4bc753b8d9e9003b7a7ea28d519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $NetBSD: Makefile,v 1.8 2001/03/26 02:38:32 hubertf Exp $

DISTNAME=	kdebase-2.1
CATEGORIES=	x11 kde
.include "../../x11/kde2/Makefile.part1"
COMMENT=	Base modules for the KDE 2 integrated X11 desktop

DISTFILES=	${DISTNAME}${EXTRACT_SUFX} Daemon.png Daemon.README

BUILD_DEPENDS+=	${LOCALBASE}/bin/automake:../../devel/automake
BUILD_DEPENDS+=	${QT2DIR}/qt2/bin/uic:../../x11/qt2-designer
DEPENDS+=	kdelibs-2.1:../../x11/kdelibs2

USE_XPM=	yes
USE_MOTIF=	yes
.include "../../x11/kde2/Makefile.part2"

CONFIGURE_ARGS+=	--disable-greet-lib
CONFIGURE_ENV+=	LIBS="-Wl,--export-dynamic"

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
IMAKEDIR=	${WRKDIR}/imake

.include "../../mk/bsd.prefs.mk"

.if ${OBJECT_FMT} == "a.out"
BROKEN=		"This package doesn't build on a.out. This is being worked on."
.endif

PLIST_INIT=	${PKGDIR}/PLIST
PLIST_SRC=	${WRKDIR}/PLIST
PLIST_DIRS=	share/kde/applnk \
		share/kde/apps/kappfinder

post-configure:
	${MKDIR} ${IMAKEDIR}
	${LN} -fs ${FILESDIR}/Imakefile ${IMAKEDIR}
	cd ${IMAKEDIR} && \
	${XMKMF} && ${MAKE} hasxdmauth >>${WRKSRC}/kdm/kdm-config.h
	${RM} -rf ${IMAKEDIR}

post-install:
	@${CHMOD} u+s ${PREFIX}/bin/konsole_grantpty
	@${CHMOD} u+s ${PREFIX}/bin/*.kss
	@${CHMOD} u+s ${PREFIX}/bin/ksysguardd
	@${CP} ${PLIST_INIT} ${PLIST_SRC}
	@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} \! -type d | sort >>${PLIST_SRC})
	@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} -type d | sort -r | \
	    ${SED} "s/^/\@dirrm /" >>${PLIST_SRC})
	@for DIR in ${KDE_DIRS}; do \
		${INSTALL_DATA_DIR} ${PREFIX}/${DIR}; \
		${ECHO} "@exec mkdir -p %D/${DIR}" >>${PLIST_SRC}; \
		${ECHO} "@dirrm ${DIR}" >>${PLIST_SRC}; \
	done
	@# NetBSD Advertisement O:-)
	@cd ${PREFIX}/share/kde/config ; \
	${CP} kdmrc kdmrc.new ; \
	${SED} \
		-e 's|^\(GreetString\)=.*|\1=Welcome to ${OPSYS}! [HOSTNAME]|' \
		-e 's|^#\(LogoPixmap\)=.*|\1=${PREFIX}/share/kde/icons/Daemon.png|' \
		<kdmrc.new >kdmrc ; \
	${RM} kdmrc.new
	@${INSTALL_DATA} ${DISTDIR}/Daemon.png ${PREFIX}/share/kde/icons
	@${INSTALL_DATA} ${DISTDIR}/Daemon.README \
	  ${PREFIX}/share/doc/kde/HTML/en/kdm

.include "../../mk/bsd.pkg.mk"