mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
bda8e9b3d4
- Move all stuff specific to kde core ports to x11/kde2/Makefile.kde. + Default to compile optimized for speed, not debugging, in ports builds, not just packages. We don't really get that many backtraces or debugging information, and there's a better way to provide these things to people willing to spend some time working on KDE. It's at (as announced before): http://freebsd.kde.org/. - Remove teTeX dependency for kdegraphics2 upon request, and being unable to find any reason not to. Apparently, kdegraphics still compiles libkdvi and kdvi -- I guess dvips is merely a runtime dependency. Therefore to enable its use one just needs to add the teTeX package. Bump PORTREVISION to reflect dependency change. - Fix koffice port by removing PYTHON_VERSION, which is unnecessary. PR: 33650 (part of) Submitted by: John Merryweather Cooper <jmcoopr@johncoop.MSHOME.bmi.net> Reviewed by: kde-freebsd@lists.csociety.org (teTeX dep removal, and optimizing for speed, not debugging capability)
71 lines
2.0 KiB
Makefile
71 lines
2.0 KiB
Makefile
# New ports collection makefile for: KDE2 Graphics
|
|
# Date created: Saturday 2 September 2000
|
|
# Whom: Will Andrews <will@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= kdegraphics
|
|
PORTVERSION= 2.2.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics kde
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
|
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
|
|
DIST_SUBDIR= KDE
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= autoconf213:${PORTSDIR}/devel/autoconf213 \
|
|
automake14:${PORTSDIR}/devel/automake14
|
|
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
|
|
|
|
USE_KDELIBS_VER=2
|
|
USE_BZIP2= yes
|
|
INSTALLS_SHLIB= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
CONFIGURE_ARGS+=--without-kamera
|
|
|
|
.include "${.CURDIR}/../../x11/kde2/Makefile.kde"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# temporarily disable kamera, it requires gphoto2
|
|
PLIST_SUB+= KAMERA="@comment "
|
|
|
|
SANE_CONFIG= ${LOCALBASE}/bin/sane-config
|
|
|
|
.if exists(${SANE_CONFIG})
|
|
WITH_SANE= yes
|
|
.endif
|
|
|
|
.if defined(WITH_SANE) && ${WITH_SANE} == yes
|
|
LIB_DEPENDS+= sane.1:${PORTSDIR}/graphics/sane-backends
|
|
PLIST_SUB+= SANE=""
|
|
.else
|
|
PLIST_SUB+= SANE="@comment "
|
|
pre-everything::
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "If you want to compile with scanner (SANE) support,"
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SANE=yes\""
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
pre-configure:
|
|
${MKDIR} ${WRKSRC}/auto-bin
|
|
.for AC in autoconf autoheader
|
|
${LN} -sf ${LOCALBASE}/bin/${AC}213 ${WRKSRC}/auto-bin/${AC}
|
|
.endfor
|
|
.for AM in automake aclocal
|
|
${LN} -sf ${LOCALBASE}/bin/${AM}14 ${WRKSRC}/auto-bin/${AM}
|
|
.endfor
|
|
cd ${WRKSRC} && env PATH=${WRKSRC}/auto-bin:$$PATH \
|
|
${GMAKE} -f Makefile.cvs
|
|
${PERL} -pi -e "s@libkscan_la_LIBADD =@libkscan_la_LIBADD= -lintl@g" ${WRKSRC}/libkscan/Makefile.in
|
|
${PERL} -pi -e "s@libkcm_kamera_la_LIBADD =@libkcm_kamera_la_LIBADD= -lintl@g" ${WKRSRC}/kamera/kcontrol/Makefile.in
|
|
${PERL} -pi -e "s@name = item@name=(char*)item@g" ${WRKSRC}/kamera/kcontrol/kamera.cpp
|
|
find ${WRKSRC} -name Makefile.in | xargs ${PERL} -pi -e \
|
|
"s@GPHOTO2_LIBS =@GPHOTO2_LIBS= -lintl@g"
|
|
|
|
.include <bsd.port.post.mk>
|