View | Details | Raw Unified | Return to bug 51869
Collapse All | Expand All

(-)multimedia/gopchop/Makefile (-11 / +16 lines)
Lines 18-39 Link Here
18
MAINTAINER=	ports@FreeBSD.org
18
MAINTAINER=	ports@FreeBSD.org
19
COMMENT=	MPEG2 GOP-accurate editor
19
COMMENT=	MPEG2 GOP-accurate editor
20
20
21
LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
21
LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
22
		mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
22
		mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
23
		SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
23
24
		intl.4:${PORTSDIR}/devel/gettext \
24
SDLCONFIG?=	${LOCALBASE}/bin/sdl11-config
25
		iconv.3:${PORTSDIR}/converters/libiconv
26
25
27
USE_GNOME=	gtk12
26
USE_GNOME=	gtk12
27
USE_GETOPT_LONG=	yes
28
USE_REINPLACE=	yes
28
USE_REINPLACE=	yes
29
SDLCONFIG?=	${LOCALBASE}/bin/sdl11-config
30
GNU_CONFIGURE=	yes
29
GNU_CONFIGURE=	yes
31
CONFIGURE_ENV=	\
30
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
32
	CPPFLAGS="${CXXFLAGS} -DHAVE_DECL_GETOPT -I${LOCALBASE}/include" \
31
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
33
	LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" \
32
		SDLCONFIG="${SDLCONFIG}"
34
	SDLCONFIG="${SDLCONFIG}"
33
CONFIGURE_ARGS=	--disable-mlib
34
35
CPPFLAGS=	-I${LOCALBASE}/include -DHAVE_DECL_GETOPT 
36
LDFLAGS=	-L${LOCALBASE}/lib
35
37
36
post-patch:
38
post-patch:
37
	@${REINPLACE_CMD} -e 's|-lglib||g' ${WRKSRC}/src/Makefile.in
39
	@${REINPLACE_CMD} -e 's| -mcpu=.*"|"|g' ${WRKSRC}/configure
40
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
41
		's|pixmaps/\$$(PACKAGE)|\$$(PACKAGE)/pixmaps|g ; \
42
		 s|-lglib||g'
38
43
39
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)multimedia/gopchop/files/patch-Makefile.in (-15 lines)
Lines 1-15 Link Here
1
--- Makefile.in.orig	Tue Apr 15 19:04:54 2003
2
+++ Makefile.in	Tue Apr 15 19:09:09 2003
3
@@ -438,10 +438,10 @@
4
 install-data-local:
5
 	@$(NORMAL_INSTALL)
6
 	if test -d $(srcdir)/pixmaps; then \
7
-	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
8
+	  $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/pixmaps; \
9
 	  for pixmap in $(srcdir)/pixmaps/*; do \
10
 	    if test -f $$pixmap; then \
11
-	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
12
+	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/$(PACKAGE)/pixmaps; \
13
 	    fi \
14
 	  done \
15
 	fi
(-)multimedia/gopchop/files/patch-src::ElementStream.h (+13 lines)
Line 0 Link Here
1
--- src/ElementStream.h.orig	Thu Jan 17 06:32:23 2002
2
+++ src/ElementStream.h	Tue May  6 21:35:30 2003
3
@@ -29,7 +29,10 @@
4
 
5
 #include "config.h"
6
 #include "Vector.h"
7
+
8
+#ifdef HAVE_STDINT_H
9
 #include <stdint.h>
10
+#endif
11
 
12
 class ElementStream: public Vector
13
 {
(-)multimedia/gopchop/files/patch-src::Parser.h (+12 lines)
Line 0 Link Here
1
--- src/Parser.h.orig	Mon Apr  7 07:24:42 2003
2
+++ src/Parser.h	Tue May  6 21:36:18 2003
3
@@ -42,7 +42,9 @@
4
 // strlen
5
 #include <string.h>
6
 
7
+#ifdef HAVE_STDINT_H
8
 #include <stdint.h>
9
+#endif
10
 
11
 #include "List.h"
12
 
(-)multimedia/gopchop/files/patch-src::mpegcat.c (+22 lines)
Line 0 Link Here
1
--- src/mpegcat.c.orig	Mon Apr 14 12:21:04 2003
2
+++ src/mpegcat.c	Tue May  6 21:46:58 2003
3
@@ -390,11 +390,19 @@
4
 			break;
5
 
6
 		case 'n':
7
+#ifdef __FreeBSD__
8
+			num_bytes = strtoll(optarg, NULL, 10);
9
+#else
10
 			num_bytes = atoll(optarg);
11
+#endif
12
 			break;
13
 
14
 		case 'b':
15
+#ifdef __FreeBSD__
16
+			begin_at = strtoll(optarg, NULL, 10);
17
+#else
18
 			begin_at = atoll(optarg);
19
+#endif
20
 			break;
21
 
22
 		case 'w':

Return to bug 51869