mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
46c968b9a4
Reviewed by: wca Approved by: knu (mentor)
147 lines
4.0 KiB
Makefile
147 lines
4.0 KiB
Makefile
#-*- mode: Fundamental; tab-width: 4; -*-
|
|
# ex:ts=4
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Please view me with 4 column tabs!
|
|
|
|
# Please make sure all changes to this file are past through the maintainer.
|
|
# Do not commit them yourself (unless of course you're the Port's Wraith ;).
|
|
KDE_MAINTAINER= will@FreeBSD.org
|
|
|
|
# This section contains the USE_ definitions.
|
|
# XXX: Write HAVE_ definitions sometime.
|
|
|
|
# USE_QT_VER - Says that the port uses the Qt toolkit. Possible values:
|
|
# 1, 2, or 3; each specify the major version of Qt to use.
|
|
# USE_KDELIBS_VER - Says that the port uses KDE libraries. Possible values:
|
|
# 1, 2, or 3; each specify the major version of KDE to use.
|
|
# This implies USE_QT of the appropriate version.
|
|
# USE_KDEBASE_VER - Says that the port uses the KDE base. Possible values:
|
|
# 1, 2, or 3; each specify the major version of KDE to use.
|
|
# This implies USE_KDELIBS of the appropriate version.
|
|
|
|
#
|
|
# WARNING! ACHTUNG! DANGER WILL ROBINSON!
|
|
# DO NOT USE USE_QT_VER=1 UNLESS YOU WILL NOT BE NEEDING ANY ASSISTANCE
|
|
# WHATSOEVER FROM THE MAINTAINER OF THIS FILE!
|
|
#
|
|
|
|
# Compat shims.
|
|
.if defined(USE_QT)
|
|
USE_QT_VER= 2
|
|
pre-everything::
|
|
@${ECHO} ">>> Warning: this port needs to be updated as it uses the old-style USE_QT variable!"
|
|
.endif
|
|
.if defined(USE_QT2)
|
|
USE_QT_VER= 2
|
|
pre-everything::
|
|
@${ECHO} ">>> Warning: this port needs to be updated as it uses the old-style USE_QT2 variable!"
|
|
.endif
|
|
|
|
# USE_KDEBASE_VER section
|
|
.if defined(USE_KDEBASE_VER)
|
|
|
|
.if ${USE_KDEBASE_VER} == 3
|
|
|
|
# kdebase 3.x common stuff
|
|
LIB_DEPENDS+= konq:${PORTSDIR}/x11/kdebase3
|
|
USE_KDELIBS_VER=3
|
|
|
|
.else
|
|
|
|
# kdebase 2.x common stuff -- DEFAULT
|
|
USE_KDELIBS_VER=2
|
|
|
|
.endif
|
|
.endif
|
|
# End of USE_KDEBASE_VER
|
|
|
|
# USE_KDELIBS_VER section
|
|
.if defined(USE_KDELIBS_VER)
|
|
|
|
.if ${USE_KDELIBS_VER} == 3
|
|
|
|
# kdelibs 3.x common stuff
|
|
LIB_DEPENDS+= kdecore:${PORTSDIR}/x11/kdelibs3
|
|
USE_QT_VER= 3
|
|
PREFIX= ${KDE_PREFIX}
|
|
|
|
.else
|
|
|
|
BROKEN= "KDE2 is gone. This port needs to be updated or deleted!"
|
|
|
|
# kdelibs 2.x common stuff -- DEFAULT
|
|
USE_QT_VER= 2
|
|
|
|
.endif
|
|
.endif
|
|
# End of USE_KDELIBS_VER section
|
|
|
|
# USE_QT_VER section
|
|
.if defined(USE_QT_VER)
|
|
|
|
# Qt 1.x common stuff
|
|
.if ${USE_QT_VER} == 1
|
|
LIB_DEPENDS+= qt1.3:${PORTSDIR}/x11-toolkits/qt145
|
|
MOC?= ${X11BASE}/bin/moc1
|
|
.if defined(PREFIX)
|
|
QTDIR= ${PREFIX}
|
|
.else
|
|
QTDIR= ${X11BASE}
|
|
.endif
|
|
CONFIGURE_ENV+= MOC="${MOC}" QTDIR="${QTDIR}"
|
|
|
|
.elif ${USE_QT_VER} == 3
|
|
|
|
# Yeah, it's namespace pollution, but this is really the best place for this
|
|
# stuff since arts/kdelibs use it.
|
|
KDE_VERSION= 3.0.3
|
|
KDE_ORIGVER= 3.0.1
|
|
KDE_PREFIX?= ${LOCALBASE}
|
|
|
|
QTCPPFLAGS?=
|
|
QTCGFLIBS?=
|
|
|
|
# Qt 3.x common stuff
|
|
QT_PREFIX?= ${X11BASE}
|
|
MOC?= ${QT_PREFIX}/bin/moc
|
|
#LIB_DEPENDS+= qt-mt.3:${PORTSDIR}/x11-toolkits/qt30
|
|
BUILD_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt30
|
|
RUN_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt30
|
|
QTCPPFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include \
|
|
-I${QT_PREFIX}/include -D_GETOPT_H
|
|
QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg \
|
|
-L${QT_PREFIX}/lib
|
|
.if !defined(QT_NONSTANDARD)
|
|
CONFIGURE_ARGS+=--with-qt-includes=${QT_PREFIX}/include \
|
|
--with-qt-libraries=${QT_PREFIX}/lib \
|
|
--with-extra-libs=${LOCALBASE}/lib
|
|
CONFIGURE_ENV+= MOC="${MOC}" CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"
|
|
.endif
|
|
|
|
.else
|
|
|
|
QTCPPFLAGS?=
|
|
QTCGFLIBS?=
|
|
|
|
# Qt 2.x common stuff -- DEFAULT
|
|
LIB_DEPENDS+= qt2.4:${PORTSDIR}/x11-toolkits/qt23
|
|
QTNAME= qt2
|
|
MOC?= ${X11BASE}/bin/moc2
|
|
QTCPPFLAGS+= -D_GETOPT_H -I${LOCALBASE}/include -I${PREFIX}/include \
|
|
-I${X11BASE}/include/qt2
|
|
QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg -lgcc -lstdc++
|
|
.if !defined(QT_NONSTANDARD)
|
|
CONFIGURE_ARGS+=--with-qt-includes=${X11BASE}/include/qt2 \
|
|
--with-qt-libraries=${X11BASE}/lib \
|
|
--with-extra-libs=${LOCALBASE}/lib
|
|
CONFIGURE_ENV+= MOC="${MOC}" LIBQT="-l${QTNAME}" \
|
|
CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"
|
|
.endif
|
|
.endif
|
|
.endif
|
|
# End of USE_QT_VER section
|
|
|
|
# End of use part.
|