summaryrefslogtreecommitdiffstats
path: root/sysutils/xvidcap/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xvidcap/Makefile')
-rw-r--r--sysutils/xvidcap/Makefile68
1 files changed, 68 insertions, 0 deletions
diff --git a/sysutils/xvidcap/Makefile b/sysutils/xvidcap/Makefile
new file mode 100644
index 000000000..75c1af26f
--- /dev/null
+++ b/sysutils/xvidcap/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: xvidcap
+# Date created: Sat 24 April 2004
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= xvidcap
+DISTVERSION= 1.1.4p1
+PORTREVISION= 1
+PORTEPOCH= 1
+CATEGORIES= sysutils multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Capture your X display to individual frames or MPEG video
+
+BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian \
+ xml2po:${PORTSDIR}/textproc/gnome-doc-utils \
+ texi2html:${PORTSDIR}/textproc/texi2html
+# To be reactivated when ffmpeg-devel will install libswscale.
+#LIB_DEPENDS= avutil.1:${PORTSDIR}/multimedia/ffmpeg-devel
+LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame
+RUN_DEPENDS= animate:${PORTSDIR}/graphics/ImageMagick
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+# Remove MAKE="${GMAKE}" after ffmpeg-devel's upgrade
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ MAKE="${GMAKE}"
+CONFIGURE_ARGS= --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib \
+ -with-forced-embedded-ffmpeg # To be removed after ffmpeg-devel's upgrade
+USE_GETOPT_LONG= yes
+
+USE_GMAKE= yes # To be removed after ffmpeg-devel's upgrade
+USE_GNOME= glib20 libglade2
+USE_GETTEXT= yes
+INSTALLS_OMF= yes
+
+.if !defined(CFLAGS) || ${CFLAGS:M-fno-strict-aliasing*} == ""
+CFLAGS+= -O2 -fno-strict-aliasing
+.endif
+
+PORTDOCS= AUTHORS ChangeLog README
+NULLDOCS= COPYING
+
+MAN1= xvidcap.1
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libavutil.so)
+# To be removed after ffmep-devel'upgrade
+BROKEN= Cannot compile when ffmpeg-devel is installed
+.endif
+
+.if ${OSVERSION} < 500000
+BROKEN= Compilation error with gcc-2.95.
+.endif
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+
+post-install:
+ @${RM} ${NULLDOCS:S|^|${DOCSDIR}/|}
+
+.include <bsd.port.post.mk>