f18cbf2fa6
- switch devel/gettext (0.11.1) on, installing full package - flip devel/gettext-old (0.10.35) to installing only static binaries with a "-old" suffix -- gettext-old will have its deorbit burn sequence initiated just after 4.6-RELEASE - fix up ports for the new world order Reviewed by: portmgr
70 lines
1.7 KiB
Makefile
70 lines
1.7 KiB
Makefile
# New ports collection Makefile for: cervisia
|
|
# Date created: 17 Nov 1999
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cervisia
|
|
PORTVERSION= 1.4.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel kde
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= andrey@novikov.com
|
|
|
|
.if defined(KDE_VERSION) && ${KDE_VERSION} == "1"
|
|
USE_KDELIBS_VER=1
|
|
QT_VER= ""
|
|
.else
|
|
USE_KDELIBS_VER=2
|
|
QT_VER= 2
|
|
.endif
|
|
LIB_DEPENDS+= intl.2:${PORTSDIR}/devel/gettext
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAN1= cervisia.1
|
|
|
|
pre-everything::
|
|
.if !defined(KDE_VERSION)
|
|
@${ECHO}
|
|
@${ECHO} "You may define USE_KDE_VERSION=1 (make USE_KDE_VERSION=1)"
|
|
@${ECHO} "to build ${PORTNAME} against KDE1.1."
|
|
@${ECHO}
|
|
@sleep 3
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Hack to make pthread support work correctly.
|
|
.if exists(${X11BASE}/lib/libqt2-mt.so)
|
|
.if exists(${X11BASE}/lib/libXThrStub.so)
|
|
QT_ADD= -mt
|
|
.else
|
|
QT_ADD= ""
|
|
PTHREAD_CFLAGS=
|
|
PTHREAD_LIBS=
|
|
.endif
|
|
.endif
|
|
CFLAGS+= ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
|
|
CONFIGURE_ARGS+=--with-kde-version=${KDE_VERSION} \
|
|
--with-extra-includes="${LOCALBASE}/include" \
|
|
--with-extra-libs="${LOCALBASE}/lib" \
|
|
--with-qt-libraries=${X11BASE}/lib \
|
|
--with-qt-includes="${X11BASE}/include/qt${QT_VER}"
|
|
CONFIGURE_ENV+= MOC="${MOC}" LIBQT="-lqt${QT_VER}${QT_ADD}" LIBQTFILE="libqt${QT_VER}${QT_ADD}" KDEDIR="${LOCALBASE}/kde" \
|
|
CPPFLAGS="${PTHREAD_CFLAGS}" \
|
|
LIBS="${PTHREAD_LIBS}" \
|
|
USER_LDFLAGS="${PTHREAD_LIBS}"
|
|
|
|
post-configure:
|
|
@${CP} ${WRKSRC}/libtool ${WRKSRC}/libtool.orig
|
|
@${SED} -e 's@\\\$$compiler_flags@\\\$$compiler_flags ${PTHREAD_LIBS}@g' ${WRKSRC}/libtool.orig \
|
|
> ${WRKSRC}/libtool
|
|
|
|
.include <bsd.port.post.mk>
|