aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-03-06 20:48:45 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-03-06 20:48:45 +0000
commitb755211cd1ae7a942eea8f3542b1e7a6e965005e (patch)
tree698ac0b1858a2dfd478b33214286b1aa5ff510ef /multimedia
parent9bc810f9464e6c09516886570c9f185aa1a9145a (diff)
downloadports-b755211cd1ae7a942eea8f3542b1e7a6e965005e.tar.gz
ports-b755211cd1ae7a942eea8f3542b1e7a6e965005e.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gmencoder/Makefile17
-rw-r--r--multimedia/gmencoder/files/patch-src_mypopen.c13
-rw-r--r--multimedia/gmencoder/pkg-plist4
3 files changed, 29 insertions, 5 deletions
diff --git a/multimedia/gmencoder/Makefile b/multimedia/gmencoder/Makefile
index e9539e07627c..c5cef8607790 100644
--- a/multimedia/gmencoder/Makefile
+++ b/multimedia/gmencoder/Makefile
@@ -13,7 +13,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= gahr@FreeBSD.org
COMMENT= Gmencoder is Gnome2 front-end to mplayer/mencoder
BUILD_DEPENDS= mencoder:${PORTSDIR}/multimedia/mencoder
@@ -24,13 +24,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
USE_GNOME= gnomehack gnomeprefix libgnomeui
-USE_GETTEXT= yes
MAN1= gmencoder.1
DESKTOP_ENTRIES= "Gmencoder" "Gnome2 front-end to mplayer/mencoder" \
"" "gmencoder" "GNOME;Application;AudioVideo;" false
+.include <bsd.port.pre.mk>
+
.if defined(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
@@ -44,11 +45,21 @@ pre-everything::
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
.endif
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-O4||; s|type -path|which|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
${WRKSRC}/src/main.c ${WRKSRC}/src/interface.c
+.if defined(WITHOUT_NLS)
+ @${REINPLACE_CMD} -e '/^ALL_LINGUAS/d' ${WRKSRC}/configure
+.endif
post-install:
.if !defined(NOPORTDOCS)
@@ -59,4 +70,4 @@ post-install:
.endif
${INSTALL_MAN} ${WRKSRC}/man/gmencoder.1 ${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/multimedia/gmencoder/files/patch-src_mypopen.c b/multimedia/gmencoder/files/patch-src_mypopen.c
new file mode 100644
index 000000000000..17298067d073
--- /dev/null
+++ b/multimedia/gmencoder/files/patch-src_mypopen.c
@@ -0,0 +1,13 @@
+--- src/mypopen.c.orig 2008-03-06 21:12:35.000000000 +0100
++++ src/mypopen.c 2008-03-06 21:15:44.000000000 +0100
+@@ -108,7 +108,9 @@
+
+ int mypclose(FILE *ptr)
+ {
+- register f, r, (*hstat)(), (*istat)(), (*qstat)();
++ int f;
++ pid_t r;
++ void (*hstat)(), (*istat)(), (*qstat)();
+ int status;
+
+ f = fileno(ptr);
diff --git a/multimedia/gmencoder/pkg-plist b/multimedia/gmencoder/pkg-plist
index 7774924b6685..c5832d3c63ab 100644
--- a/multimedia/gmencoder/pkg-plist
+++ b/multimedia/gmencoder/pkg-plist
@@ -2,7 +2,7 @@ bin/gmencoder
share/pixmaps/gmencoder/media-pause.png
share/pixmaps/gmencoder/media-play.png
%%PORTDOCS%%%%DOCSDIR%%/README
-share/locale/es/LC_MESSAGES/gmencoder.mo
-share/locale/en/LC_MESSAGES/gmencoder.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gmencoder.mo
+%%NLS%%share/locale/en/LC_MESSAGES/gmencoder.mo
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm share/pixmaps/gmencoder