2001-11-06 20:44:14 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2001/11/07 01:44:19 kevlo Exp $
|
2000-10-09 18:37:53 -04:00
|
|
|
|
2001-03-26 08:29:51 -05:00
|
|
|
COMMENT= "X11 toolkit, libraries"
|
2000-10-09 18:37:53 -04:00
|
|
|
CATEGORIES= x11 x11/kde
|
2001-10-28 07:30:13 -05:00
|
|
|
NEED_VERSION= 1.483
|
2001-09-19 10:13:28 -04:00
|
|
|
VERSION= 2.2.1
|
2000-10-09 18:37:53 -04:00
|
|
|
DISTNAME= kdelibs-${VERSION}
|
|
|
|
DIST_SUBDIR= kde
|
|
|
|
|
2001-03-30 07:31:35 -05:00
|
|
|
HOMEPAGE= http://www.kde.org
|
2000-10-09 18:37:53 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2001-08-21 06:59:38 -04:00
|
|
|
MASTER_SITE_SUBDIR= stable/${VERSION}/src
|
2000-10-09 18:37:53 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2001-04-22 09:20:45 -04:00
|
|
|
# Parts of kde want shared libraries to work, as some symbols are
|
|
|
|
# duplicated over the place.
|
|
|
|
NOT_FOR_ARCHS=${NO_SHARED_ARCHS}
|
|
|
|
|
2001-08-27 05:58:35 -04:00
|
|
|
MODULES= qt2
|
2001-09-19 11:20:11 -04:00
|
|
|
LIB_DEPENDS= png.2::graphics/png \
|
|
|
|
jpeg.62::graphics/jpeg \
|
|
|
|
tiff.35::graphics/tiff \
|
|
|
|
audiofile::devel/libaudiofile \
|
2001-10-24 08:52:42 -04:00
|
|
|
pcreposix,pcre::devel/pcre \
|
2001-11-06 20:44:14 -05:00
|
|
|
xml2:libxml->=2.3.13:textproc/libxml \
|
2001-08-21 06:59:38 -04:00
|
|
|
bz2::archivers/bzip2
|
2000-11-01 19:02:34 -05:00
|
|
|
|
2001-09-19 11:20:11 -04:00
|
|
|
BUILD_DEPENDS= :zsh-*:shells/zsh/stable ::x11/qt2,-html
|
2000-11-01 19:02:34 -05:00
|
|
|
|
2001-08-21 06:59:38 -04:00
|
|
|
# glib2.0
|
|
|
|
# qt docs
|
|
|
|
# CUPS
|
|
|
|
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/admin
|
|
|
|
|
2000-11-28 19:46:38 -05:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2001-08-27 05:58:35 -04:00
|
|
|
CONFIGURE_ARGS= ${MODQT_CONFIGURE_ARGS}
|
2000-10-09 18:37:53 -04:00
|
|
|
CONFIGURE_ARGS+= --with-extra-libs=${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-extra-includes=${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --disable-threading
|
2000-11-28 19:46:38 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-mitshm
|
2001-04-22 09:20:45 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-debug
|
2001-08-27 05:58:35 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-final
|
2001-09-27 06:52:15 -04:00
|
|
|
PATCH_LIST= p-* patch-*
|
2001-08-20 19:40:18 -04:00
|
|
|
#CONFIGURE_ARGS+= --enable-debug
|
2000-11-28 19:46:38 -05:00
|
|
|
#CONFIGURE_ARGS+=--enable-static --enable-debug --disable-shared
|
|
|
|
|
|
|
|
#CONFIGURE_ARGS+= --enable-static --disable-shared
|
2000-11-01 19:02:34 -05:00
|
|
|
|
2000-10-09 18:37:53 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2001-08-27 05:58:35 -04:00
|
|
|
CONFIGURE_ENV= QTDOCDIR=${LOCALBASE}/share/doc/qt2/html
|
2001-09-19 10:13:28 -04:00
|
|
|
|
|
|
|
# you don't want to know...
|
|
|
|
CONFIGURE_ENV+= ac_aux_files=''
|
|
|
|
|
2001-03-11 11:13:47 -05:00
|
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
2000-10-09 18:37:53 -04:00
|
|
|
|
2001-04-22 09:20:45 -04:00
|
|
|
pre-build:
|
2001-08-21 13:04:55 -04:00
|
|
|
@if pkg dependencies check kdelibs-\*; then \
|
|
|
|
if pkg dependencies check ${DISTNAME}; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
echo 1>&2 "Error: you must remove your old kdelibs first"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi
|
|
|
|
|
2001-04-22 09:20:45 -04:00
|
|
|
# Let zsh act as an sh replacement
|
|
|
|
ln -sf $(LOCALBASE)/bin/zsh ${WRKBUILD}/sh
|
|
|
|
|
2001-01-17 21:30:47 -05:00
|
|
|
# Ensure qt2 will always be at the front
|
2001-08-27 05:58:35 -04:00
|
|
|
MAKE_FLAGS=CXXLD='--tag CXX ${CXX} -L${MODQT_LIBDIR}'
|
2001-04-22 09:20:45 -04:00
|
|
|
MAKE_FLAGS+=LIBTOOL='$(WRKBUILD)/sh $(WRKBUILD)/libtool'
|
2001-01-17 21:30:47 -05:00
|
|
|
|
2000-10-09 18:37:53 -04:00
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|