aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gmencoder
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-05-01 18:17:36 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-05-01 18:17:36 +0000
commitb946e6f7a601fd407808275bb6d34e84fb8b258d (patch)
treed0ed3fbc825e4691c201274eae7802286583a4f7 /multimedia/gmencoder
parent2c16ea8d58557656e0ea714f7a567b4390a2b814 (diff)
downloadports-b946e6f7a601fd407808275bb6d34e84fb8b258d.tar.gz
ports-b946e6f7a601fd407808275bb6d34e84fb8b258d.zip
Notes
Diffstat (limited to 'multimedia/gmencoder')
-rw-r--r--multimedia/gmencoder/Makefile27
1 files changed, 13 insertions, 14 deletions
diff --git a/multimedia/gmencoder/Makefile b/multimedia/gmencoder/Makefile
index 72bd582490a6..4b58ea6695b0 100644
--- a/multimedia/gmencoder/Makefile
+++ b/multimedia/gmencoder/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: gmencoder
-# Date created: Wed Feb 25 03:20:50 EST 2004
-# Whom: Michael Johnson <ahze@ahze.net>
-#
+# Created by: Michael Johnson <ahze@ahze.net>
# $FreeBSD$
-#
PORTNAME= gmencoder
PORTVERSION= 0.1.0
@@ -22,13 +18,23 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
USE_GMAKE= yes
-USE_GNOME= gnomehack gnomeprefix libgnomeui
+USE_GNOME= gnomeprefix libgnomeui
+USES= pathfix
MAN1= gmencoder.1
DESKTOP_ENTRIES= "Gmencoder" "Gnome2 front-end to mplayer/mencoder" \
"" "gmencoder" "GNOME;AudioVideo;" false
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
+.endif
+
.include <bsd.port.pre.mk>
.if defined(WITH_DVD_DEVICE)
@@ -44,13 +50,6 @@ 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
@@ -61,7 +60,7 @@ post-patch:
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}