freebsd-ports/sysutils/xvidcap/Makefile
2014-07-04 22:25:48 +00:00

57 lines
1.5 KiB
Makefile

# Created by: thierry@pompo.net
# $FreeBSD$
PORTNAME= xvidcap
PORTVERSION= 1.1.7
PORTEPOCH= 1
CATEGORIES= sysutils multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Capture your X display to individual frames or MPEG video
LICENSE= GPLv3
BUILD_DEPENDS= xml2po:${PORTSDIR}/textproc/gnome-doc-utils \
scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper
LIB_DEPENDS= libswscale.so:${PORTSDIR}/multimedia/ffmpeg \
libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
libmp3lame.so:${PORTSDIR}/audio/lame
RUN_DEPENDS= animate:${PORTSDIR}/graphics/ImageMagick \
gimp:${PORTSDIR}/graphics/gimp-app
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
# --export-dynamic fixes libglade problems
LDFLAGS+= -L${LOCALBASE}/lib -Wl,--export-dynamic
USE_GNOME= glib20 libglade2
USES= gettext gmake pkgconfig
USE_XORG= x11 xmu ice xfixes xdamage
INSTALLS_OMF= yes
MANLANG= "" de es it
.if !defined(CFLAGS) || ${CFLAGS:M-fno-strict-aliasing*} == ""
CFLAGS+= -O2 -fno-strict-aliasing
.endif
PORTDOCS= AUTHORS ChangeLog README
NULLDOCS= COPYING
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
pre-configure:
.if empty(PORT_OPTIONS:MDOCS)
${REINPLACE_CMD} -e 's|pkgdataDATA install-xvidcapdocDATA|pkgdataDATA|' \
${WRKSRC}/Makefile.in
.endif
${REINPLACE_CMD} -e 's|/bin/bash | /bin/sh|' ${WRKSRC}/ppm2mpeg.sh
post-install:
.if ${PORT_OPTIONS:MDOCS}
${RM} -f ${NULLDOCS:S|^|${STAGEDIR}${DOCSDIR}/|}
.endif
.include <bsd.port.mk>