2013-05-01 20:17:36 +02:00
|
|
|
# Created by: Michael Johnson <ahze@ahze.net>
|
2004-02-25 11:22:27 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gmencoder
|
|
|
|
PORTVERSION= 0.1.0
|
2013-01-23 16:00:18 +01:00
|
|
|
PORTREVISION= 16
|
2004-02-25 11:22:27 +01:00
|
|
|
CATEGORIES= multimedia
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
|
2004-02-25 11:22:27 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2014-12-10 23:29:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-01-23 00:12:20 +01:00
|
|
|
COMMENT= Gnome2 front-end to mplayer/mencoder
|
2004-02-25 11:22:27 +01:00
|
|
|
|
2007-08-11 17:33:56 +02:00
|
|
|
BUILD_DEPENDS= mencoder:${PORTSDIR}/multimedia/mencoder
|
|
|
|
RUN_DEPENDS= mencoder:${PORTSDIR}/multimedia/mencoder
|
2004-02-25 11:22:27 +01:00
|
|
|
|
2004-03-05 21:56:40 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-11 16:49:59 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2013-05-01 20:17:36 +02:00
|
|
|
USE_GNOME= gnomeprefix libgnomeui
|
2013-09-06 14:12:00 +02:00
|
|
|
USES= pathfix gmake pkgconfig
|
2004-02-25 11:22:27 +01:00
|
|
|
|
2014-02-14 11:07:26 +01:00
|
|
|
DESKTOP_ENTRIES="Gmencoder" "Gnome2 front-end to mplayer/mencoder" \
|
2013-01-23 00:12:20 +01:00
|
|
|
"" "gmencoder" "GNOME;AudioVideo;" false
|
2006-03-26 03:47:25 +02:00
|
|
|
|
2014-02-14 11:07:26 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-05-01 20:17:36 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-03-06 21:48:45 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-09-01 10:03:48 +02:00
|
|
|
.if defined(WITH_DVD_DEVICE)
|
|
|
|
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
|
|
|
|
.else
|
|
|
|
DEFAULT_DVD_DEVICE=/dev/acd0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_DVD_DEVICE)
|
|
|
|
@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
|
|
|
|
@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
|
|
|
|
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
|
|
|
|
.endif
|
|
|
|
|
2004-02-25 11:22:27 +01:00
|
|
|
post-patch:
|
2004-03-05 21:56:40 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-O4||; s|type -path|which|' \
|
|
|
|
${WRKSRC}/configure
|
2004-09-01 10:03:48 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
|
|
|
|
${WRKSRC}/src/main.c ${WRKSRC}/src/interface.c
|
2013-05-06 12:22:41 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
2008-03-06 21:48:45 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^ALL_LINGUAS/d' ${WRKSRC}/configure
|
|
|
|
.endif
|
2004-02-25 11:22:27 +01:00
|
|
|
|
|
|
|
post-install:
|
2014-02-14 11:07:26 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/gmencoder.1 ${STAGEDIR}${PREFIX}/man/man1
|
2004-02-25 11:22:27 +01:00
|
|
|
|
2008-03-06 21:48:45 +01:00
|
|
|
.include <bsd.port.post.mk>
|