2007-09-15 16:04:18 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2007/09/15 20:04:23 merdely Exp $
|
2001-03-21 18:57:53 -05:00
|
|
|
|
2007-09-15 16:04:18 -04:00
|
|
|
COMMENT= designer for qt2
|
2001-03-21 18:57:53 -05:00
|
|
|
|
2001-12-23 07:11:33 -05:00
|
|
|
VERSION= 3.2
|
2001-03-21 18:57:53 -05:00
|
|
|
DISTNAME= qt-designer-2.${VERSION}
|
2006-01-13 14:18:49 -05:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
2001-03-24 10:24:31 -05:00
|
|
|
CATEGORIES= x11 devel
|
2006-01-13 14:18:49 -05:00
|
|
|
SHARED_LIBS= qutil 2.0
|
2002-10-29 14:48:57 -05:00
|
|
|
|
2001-03-21 18:57:53 -05:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
|
|
|
DISTFILES= qt-x11-2.${VERSION}.tar.gz
|
|
|
|
EXTRACT_ONLY=
|
|
|
|
|
2001-11-10 10:00:47 -05:00
|
|
|
BUILD_DEPENDS= ::x11/qt2:configure
|
|
|
|
RUN_DEPENDS= ::x11/qt2,-html
|
2001-03-21 18:57:53 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.trolltech.com/qt/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
|
2003-10-08 13:13:14 -04:00
|
|
|
# GPL
|
2001-03-21 18:57:53 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-19 15:18:55 -05:00
|
|
|
WANTLIB= c m stdc++ z
|
2001-03-21 18:57:53 -05:00
|
|
|
EXTRACT_ONLY=
|
|
|
|
WRKDIST= ${WRKDIR}/qt2-tools
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
mkdir -p ${WRKDIST}/lib ${WRKDIST}/bin
|
2002-04-24 17:34:48 -04:00
|
|
|
lndir ${WRKDIR}/x11/qt2/qt-*/tools ${WRKDIST}
|
2001-03-21 18:57:53 -05:00
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
MAKE_ENV= QTDIR="${WRKDIST}" EXTRA_SAMPLES="${EXTRA_SAMPLES}" \
|
|
|
|
SYS_CXX="${CXX}" SYS_CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
LD_LIBRARY_PATH="${WRKDIST}/lib" KDEDIR=${LOCALBASE}
|
|
|
|
|
|
|
|
MAKE_FLAGS= SYSCONF_CXXFLAGS_QT=-I${LOCALBASE}/include/X11/qt2 \
|
|
|
|
SYSCONF_LFLAGS_QT=-L${LOCALBASE}/lib/qt2 \
|
2005-12-29 09:35:07 -05:00
|
|
|
SYSCONF_MOC=${LOCALBASE}/bin/moc2 \
|
|
|
|
LIBqutil_VERSION=$(LIBqutil_VERSION)
|
2001-03-21 18:57:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-18 06:21:48 -04:00
|
|
|
LIB_DEPENDS= jpeg.>=62::graphics/jpeg \
|
|
|
|
png.>=2::graphics/png \
|
|
|
|
mng.>=1::graphics/libmng \
|
|
|
|
lib/qt2/qt.>=20::x11/qt2
|
2001-03-21 18:57:53 -05:00
|
|
|
|
|
|
|
TRUEDIR= ${TRUEPREFIX}/lib/qt2
|
|
|
|
QT_LIBDIR= ${PREFIX}/lib/qt2
|
|
|
|
QT_MANDIR= ${QT_LIBDIR}/man
|
|
|
|
QT_EXAMPLES= ${QT_LIBDIR}/examples
|
|
|
|
QT_TUTORIAL= ${QT_LIBDIR}/tutorial
|
|
|
|
QT_DOC= ${PREFIX}/share/doc/qt2
|
|
|
|
|
2002-10-29 14:48:57 -05:00
|
|
|
NO_REGRESS= Yes
|
2001-03-21 18:57:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_MAN_DIR} ${QT_MANDIR}/man1
|
|
|
|
${INSTALL_DATA_DIR} ${QT_LIBDIR}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${QT_LIBDIR}/tools/designer/templates
|
|
|
|
@if [ -f ${WRKBUILD}/lib/libqutil.a ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqutil.a ${QT_LIBDIR}; \
|
|
|
|
fi
|
2005-12-29 09:35:07 -05:00
|
|
|
@if [ -f ${WRKBUILD}/lib/libqutil.so.$(LIBqutil_VERSION) ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqutil.so.$(LIBqutil_VERSION) ${QT_LIBDIR}; \
|
|
|
|
ln -sf qt2/libqutil.so.$(LIBqutil_VERSION) ${PREFIX}/lib; \
|
2001-03-21 18:57:53 -05:00
|
|
|
fi
|
|
|
|
echo "#! /bin/sh" >${WRKDIR}/designer
|
|
|
|
echo "QTDIR=${TRUEDIR} exec ${TRUEDIR}/bin/designer" \
|
|
|
|
>>${WRKDIR}/designer
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/designer/templates/* \
|
|
|
|
${QT_LIBDIR}/tools/designer/templates
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/designer ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/designer ${QT_LIBDIR}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/uic ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/designer/uic/uic.1 ${QT_MANDIR}/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|