openbsd-ports/net/psi/Makefile
2011-09-16 11:13:37 +00:00

87 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2011/09/16 11:13:39 espie Exp $
COMMENT= multiplatform Jabber client
DISTNAME= psi-0.10
REVISION= 1
CATEGORIES= net
HOMEPAGE= http://psi-im.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=psi/}
EXTRACT_SUFX= .tar.bz2
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext Xss m c pthread pthread-stubs stdc++ xcb z \
qca>=1
MODULES= x11/qt3
MODQT_OVERRIDE_UIC= No
USE_GMAKE= Yes
LIB_DEPENDS= security/qca
RUN_DEPENDS= security/qca-tls
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+= --qtdir=${MODQT_QTDIR} \
--with-qca-inc=${LOCALBASE}/include \
--with-qca-lib=${LOCALBASE}/lib \
--disable-growl \
--disable-dnotify \
--disable-ghbnr
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \
KDEDIR=${LOCALBASE}
# For QSettings to write its setup
PORTHOME= ${WRKDIST}
NO_REGRESS= Yes
pre-configure:
@perl -pi -e "s@%%X11BASE%%@${X11BASE}@" ${WRKSRC}/configure
# compilation breaks if /usr/local/include/socks.h (from security/dante) is
# found before psi's own socks.h, so add a workaround.
pre-build:
@perl -pi -e 's,INCLUDEPATH.*,,' ${WRKSRC}/conf.pri
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/psi ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/psi
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/psi
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/psi
cp -R ${WRKSRC}/iconsets ${PREFIX}/share/psi
cp -R ${WRKSRC}/sound ${PREFIX}/share/psi
cp -R ${WRKSRC}/certs ${PREFIX}/share/psi
cp -R ${WRKSRC}/certs ${PREFIX}/share/psi
${INSTALL_DATA} ${WRKSRC}/libpsi/psiwidgets/libpsiwidgets.so \
${PREFIX}/share/psi
# Icons for KDE
${INSTALL_DATA_DIR} ${PREFIX}/share/applnk/Internet
${INSTALL_DATA} ${WRKSRC}/psi.desktop \
${PREFIX}/share/applnk/Internet/
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/16x16/apps
${INSTALL_DATA} ${WRKSRC}/iconsets/system/default/icon_16.png \
${PREFIX}/share/icons/hicolor/16x16/apps/psi.png
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/32x32/apps
${INSTALL_DATA} ${WRKSRC}/iconsets/system/default/icon_32.png \
${PREFIX}/share/icons/hicolor/32x32/apps/psi.png
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/48x48/apps
${INSTALL_DATA} ${WRKSRC}/iconsets/system/default/icon_48.png \
${PREFIX}/share/icons/hicolor/48x48/apps/psi.png
.include <bsd.port.mk>