ports/179969: [PATCH] multimedia/smpeg: fix build

William Grzybowski wg at FreeBSD.org
Tue Jun 25 15:30:00 UTC 2013


>Number:         179969
>Category:       ports
>Synopsis:       [PATCH] multimedia/smpeg: fix build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 25 15:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     William Grzybowski
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r251226: Sat Jun 1 21:56:43 UTC 2013 peter at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64

>Description:

	Fix build to use correct SDL config and disable gtk player which bombs build with -std=gnu89 (USE_GNOME= gtk12)

>How-To-Repeat:

>Fix:

	See attached patch



--- smpeg.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 321674)
+++ Makefile	(working copy)
@@ -1,50 +1,37 @@
-# New ports collection makefile for:	smpeg
-# Date created:		2 Feb 2000
-# Whom:			Chris Piazza <cpiazza at FreeBSD.org>
-#
+# Created by: Chris Piazza <cpiazza at FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	smpeg
 PORTVERSION=	0.4.4
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	multimedia
 MASTER_SITES=	ftp://sunsite.auc.dk/pub/os/linux/loki/open-source/smpeg/ \
 		${MASTER_SITE_GENTOO}
 MASTER_SITE_SUBDIR=	distfiles
 
 MAINTAINER=	acm at FreeBSD.org
-COMMENT=	A free MPEG1 video player library with sound support
+COMMENT=	Free MPEG1 video player library with sound support
 
 USE_AUTOTOOLS=	libtool
-WANT_GNOME=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 USE_SDL=	sdl
 USE_LDCONFIG=	yes
 CONFIGURE_ENV=	GLBASE="${LOCALBASE}" \
-		CC="${CXX}" REAL_CC="${CC}"
+		CC="${CXX}" REAL_CC="${CC}" \
+		SDL_CONFIG="${SDL_CONFIG}"
 CPPFLAGS+=	-I${LOCALBASE}/include
 
-#If you want to try the opengl player (which doesn't seem to work)
+#If you want to try the opengl/gtk player (which doesn't seem to work)
 #comment out the following line.
 CONFIGURE_ARGS=	--disable-opengl-player \
+		--disable-gtk-player \
 		--enable-mmx
 
 MAN1=		gtv.1 plaympeg.1
 
-.include <bsd.port.pre.mk>
-
-.if ${HAVE_GNOME:Mgtk12}!=""
-USE_GNOME+=	gtk12
-PLIST_SUB+=	GNOME=""
-.else
-CONFIGURE_ARGS+=	--disable-gtk-player
-PLIST_SUB+=	GNOME="@comment "
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
 		${WRKSRC}/configure
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 321674)
+++ pkg-plist	(working copy)
@@ -1,4 +1,3 @@
-%%GNOME%%bin/gtv
 bin/plaympeg
 bin/smpeg-config
 include/smpeg/MPEG.h
--- smpeg.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list