Date: Fri, 12 Jul 2002 12:22:16 -0700 (PDT) From: KATO Tsuguru <tkato@prontomail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/40497: Update port: graphics/gopchop Message-ID: <200207121922.g6CJMGUw006219@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 40497 >Category: ports >Synopsis: Update port: graphics/gopchop >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 12 12:30:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: 4.6-RELEASE i386 >Organization: >Environment: >Description: - Fix build on -stable - Fix LIB_DEPENDS New file: files/patch-src::ElementStream.h files/patch-src::Parser.h files/patch-src::mpegcat.c >How-To-Repeat: >Fix: diff -urN /usr/ports/graphics/gopchop/Makefile graphics/gopchop/Makefile --- /usr/ports/graphics/gopchop/Makefile Wed Jul 10 12:07:56 2002 +++ graphics/gopchop/Makefile Fri Jul 12 01:33:04 2002 @@ -8,6 +8,7 @@ PORTNAME= gopchop PORTVERSION= 0.6 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://outflux.net/unix/software/GOPchop/download/ @@ -17,19 +18,21 @@ MAINTAINER= ports@FreeBSD.org BUILD_DEPENDS= ${LOCALBASE}/lib/libvo.a:${PORTSDIR}/graphics/libmpeg2 -LIB_DEPENDS= mpeg2:${PORTSDIR}/graphics/libmpeg2 \ - SDL-1.1:${PORTSDIR}/devel/sdl12 \ - gnugetopt:${PORTSDIR}/devel/libgnugetopt +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \ + mpeg2.0:${PORTSDIR}/graphics/libmpeg2 -USE_REINPLACE= yes USE_GTK= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -D__GNU_LIBRARY__" \ - LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lSDL-1.1 -lgnugetopt" +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" + +CPPFLAGS= -I${LOCALBASE}/include -D__GNU_LIBRARY__ ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS} post-patch: - @${REINPLACE_CMD} -e "s|-lSDL|-lSDL-1.1|g" \ - -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure - @${REINPLACE_CMD} -e "s|-lglib||g" ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e 's|-lSDL |-lSDL-1.1 |g ; \ + s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-lglib||g' ${WRKSRC}/src/Makefile.in .include <bsd.port.mk> diff -urN /usr/ports/graphics/gopchop/files/patch-src::ElementStream.h graphics/gopchop/files/patch-src::ElementStream.h --- /usr/ports/graphics/gopchop/files/patch-src::ElementStream.h Thu Jan 1 09:00:00 1970 +++ graphics/gopchop/files/patch-src::ElementStream.h Fri Jul 12 00:34:39 2002 @@ -0,0 +1,13 @@ +--- src/ElementStream.h.orig Fri Jul 12 00:30:21 2002 ++++ src/ElementStream.h Fri Jul 12 00:33:44 2002 +@@ -29,7 +29,10 @@ + + #include "config.h" + #include "Vector.h" ++ ++#ifdef HAVE_STDINT_H + #include <stdint.h> ++#endif + + class ElementStream: public Vector + { diff -urN /usr/ports/graphics/gopchop/files/patch-src::Parser.h graphics/gopchop/files/patch-src::Parser.h --- /usr/ports/graphics/gopchop/files/patch-src::Parser.h Thu Jan 1 09:00:00 1970 +++ graphics/gopchop/files/patch-src::Parser.h Fri Jul 12 00:34:57 2002 @@ -0,0 +1,12 @@ +--- src/Parser.h.orig Fri Jul 12 00:30:21 2002 ++++ src/Parser.h Fri Jul 12 00:32:50 2002 +@@ -42,7 +42,9 @@ + // strlen + #include <string.h> + ++#ifdef HAVE_STDINT_H + #include <stdint.h> ++#endif + + #include "List.h" + diff -urN /usr/ports/graphics/gopchop/files/patch-src::mpegcat.c graphics/gopchop/files/patch-src::mpegcat.c --- /usr/ports/graphics/gopchop/files/patch-src::mpegcat.c Thu Jan 1 09:00:00 1970 +++ graphics/gopchop/files/patch-src::mpegcat.c Fri Jul 12 01:34:08 2002 @@ -0,0 +1,16 @@ +--- src/mpegcat.c.orig Mon Mar 11 23:53:10 2002 ++++ src/mpegcat.c Fri Jul 12 00:50:19 2002 +@@ -143,11 +143,11 @@ + break; + + case 'n': +- num_bytes = atoll(optarg); ++ num_bytes = strtoll(optarg, (char **)NULL, 10); + break; + + case 'b': +- begin_at = atoll(optarg); ++ begin_at = strtoll(optarg, (char **)NULL, 10); + break; + + default: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207121922.g6CJMGUw006219>