pkgsrc/x11/kdebase/Makefile
fredb b48eba1112 Give all packages which depend on "png" a version bump, and update
all dependencies on packages depending on "png" which contain shared
libraries, all for the (imminent) update to the "png" package.
[List courtesy of John Darrow, courtesy of "bulk-build".]
2002-03-13 17:36:35 +00:00

110 lines
3.4 KiB
Makefile

# $NetBSD: Makefile,v 1.84 2002/03/13 17:37:57 fredb Exp $
# FreeBSD Id: Makefile,v 1.6 1997/11/27 00:35:27 se Exp
DISTNAME= kdebase-1.1.2
PKGREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ftp://ftp.us.kde.org/pub/kde/Attic/old/1.1.2/distribution/tar/generic/source/bz2/ \
ftp://ftp.de.kde.org/pub/kde/Attic/old/1.1.2/distribution/tar/generic/source/bz2/ \
${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Daemon.png Daemon.README
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.kde.org/
COMMENT= Base modules for the KDE integrated X11 desktop
BUILD_USES_MSGFMT= yes
DEPENDS+= kdelibs-1.1.2nb1:../../x11/kdelibs
# kdebase doesn't manipulate GIFs, but KDE packages depending on kdebase
# often do, so put the dependency here.
#
DEPENDS+= libungif-[0-9]*:../../graphics/libungif
USE_X11BASE= YES
USE_MESA= YES
USE_RMAN= YES
USE_XPM= YES
USE_GMAKE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/admin/ltconfig
GNU_CONFIGURE= YES
EVAL_PREFIX+= QT1DIR=qt1
CONFIGURE_ARGS= "--datadir=${PREFIX}/share/kde" \
"--with-qt-dir=${QT1DIR}/qt1"
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV= KDEDIR=${PREFIX} \
CXXFLAGS="${CFLAGS} -DRMAN='\"${RMAN}\"'" \
all_libraries="-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -Wl,-R${X11BASE}/lib -L${X11BASE}/lib"
EXTRACT_ONLY= ${DISTNAME}.tar.bz2
PLIST_SRC= ${WRKDIR}/PLIST
PLIST_DIRS= share/kde/applnk share/kde/apps/kappfinder \
share/kde/apps/kdisknav share/kde/icons share/kde/mimelnk
IMAKEDIR= ${WRKDIR}/imake
KDE_DIRS= share/doc/kde/HTML/cs share/doc/kde/HTML/da \
share/doc/kde/HTML/de share/doc/kde/HTML/el \
share/doc/kde/HTML/fi share/doc/kde/HTML/fr \
share/doc/kde/HTML/it share/doc/kde/HTML/no \
share/doc/kde/HTML/pl share/doc/kde/HTML/pt \
share/doc/kde/HTML/sv
.include "../../mk/bsd.prefs.mk"
.if ${HAVE_BUILTIN_MESA} == "NO"
EVAL_PREFIX+= MESABASE=Mesa
.else
MESABASE= ${X11BASE}
.endif
CONFIGURE_ENV+= GL_INCLUDE="${MESABASE}/include"
.if ${OPSYS} == "SunOS"
PLIST_INIT= ${PKGDIR}/PLIST-${OPSYS}
.else
DEPENDS+= ncurses>=4.2:../../devel/ncurses
PLIST_INIT= ${PKGDIR}/PLIST
.endif
post-extract:
@${LN} -fs ${FILESDIR}/info_netbsd.cpp ${WRKSRC}/kcontrol/info
@${LN} -fs ${FILESDIR}/memory_netbsd.cpp ${WRKSRC}/kcontrol/info
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/klock
@${CHMOD} u+s ${PREFIX}/bin/*.kss
@${CP} ${PLIST_INIT} ${PLIST_SRC}
@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} -type f >>${PLIST_SRC})
@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} -type d | sort -r | \
${SED} "s/^/\@dirrm /" >>${PLIST_SRC})
.for DIR in ${KDE_DIRS}
@${INSTALL_DATA_DIR} ${PREFIX}/${DIR}
@${ECHO} "@exec mkdir -p %D/${DIR}" >>${PLIST_SRC}
@${ECHO} "@dirrm ${DIR}" >>${PLIST_SRC}
.endfor
#
# NetBSD Advertisement O:-)
cd ${PREFIX}/share/kde/config ; \
${CP} kdmrc kdmrc.new ; \
${SED} \
-e 's|^\(GreetString\)=.*|\1=Welcome to ${OPSYS}! [HOSTNAME]|' \
<kdmrc.new >kdmrc ; \
${ECHO} 'LogoPixmap=${PREFIX}/share/kde/icons/Daemon.png' >>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
#
# Make template links writeable, to prevent "Permission denied"
${CHMOD} u+w ${PREFIX}/share/kde/apps/kfm/Desktop/Templates/*.kdelnk
.include "../../mk/bsd.pkg.mk"