1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net-im/psimedia/Makefile
Max Brazhnikov 21646392b0 - Support staging
- Use new LIB_DEPENDS syntax
- Use options helpers
- Convert to USES
- Minor changes/fixes
2013-10-23 13:08:41 +00:00

53 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= psimedia
PORTVERSION= 1.0.3
PORTREVISION= 1
CATEGORIES= net-im audio multimedia
MASTER_SITES= http://delta.affinix.com/download/psimedia/
MAINTAINER= makc@FreeBSD.org
COMMENT= Voice and video API for Psi-like IM clients
LIB_DEPENDS= liboil-0.3.so:${PORTSDIR}/devel/liboil
USES= pkgconfig
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_QT4= gui qmake_build moc_build uic_build
USE_GSTREAMER= jpeg speex theora vorbis
QT_NONSTANDARD= yes
CONFIGURE_ARGS= --qtdir=${LOCALBASE} \
--verbose
MAKE_JOBS_UNSAFE= yes
DESTDIRNAME= INSTALL_ROOT
PSI_PLUGIN_DIR= lib/psi/plugins
.if !defined(WITH_DEBUG)
CONFIGURE_ARGS+= --release
PLIST_SUB+= DEBUG="@comment "
.else
CONFIGURE_ARGS+= --debug
PLIST_SUB+= DEBUG=""
.endif
post-patch:
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/gstprovider/rwcontrol.h \
${WRKSRC}/gstprovider/gstthread.h \
${WRKSRC}/gstprovider/gstelements/static/gstelements.h \
${WRKSRC}/gstprovider/gstcustomelements/gstcustomelements.h
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${PSI_PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gstprovider/libgstprovider.so \
${STAGEDIR}${PREFIX}/${PSI_PLUGIN_DIR}
.if defined(WITH_DEBUG)
${INSTALL_DATA} ${WRKSRC}/gstprovider/libgstprovider.so.debug \
${STAGEDIR}${PREFIX}/${PSI_PLUGIN_DIR}
.endif
.include <bsd.port.mk>