pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mpeg_encode Fix build on SunOS (socket libr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d9c3ae7cac6a
branches: trunk
changeset: 639697:d9c3ae7cac6a
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue Sep 23 14:29:50 2014 +0000
description:
Fix build on SunOS (socket libraries, use strerror()).
diffstat:
multimedia/mpeg_encode/Makefile | 4 +++-
multimedia/mpeg_encode/distinfo | 4 ++--
multimedia/mpeg_encode/patches/patch-ac | 13 ++++++++++---
3 files changed, 15 insertions(+), 6 deletions(-)
diffs (68 lines):
diff -r 09fd0f9b2f29 -r d9c3ae7cac6a multimedia/mpeg_encode/Makefile
--- a/multimedia/mpeg_encode/Makefile Tue Sep 23 14:26:35 2014 +0000
+++ b/multimedia/mpeg_encode/Makefile Tue Sep 23 14:29:50 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2012/10/08 09:21:09 asau Exp $
+# $NetBSD: Makefile,v 1.18 2014/09/23 14:29:50 jperkin Exp $
#
DISTNAME= mpeg_encode-1.5b-src
@@ -15,6 +15,8 @@
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+LDFLAGS.SunOS+= -lsocket -lnsl
+
post-build:
@cd ${WRKSRC}/convert && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
diff -r 09fd0f9b2f29 -r d9c3ae7cac6a multimedia/mpeg_encode/distinfo
--- a/multimedia/mpeg_encode/distinfo Tue Sep 23 14:26:35 2014 +0000
+++ b/multimedia/mpeg_encode/distinfo Tue Sep 23 14:29:50 2014 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.9 2012/11/01 19:40:08 joerg Exp $
+$NetBSD: distinfo,v 1.10 2014/09/23 14:29:50 jperkin Exp $
SHA1 (mpeg_encode-1.5b-src.tar.gz) = 853cd175f73b8064ce28deb256e4b81159a684ed
RMD160 (mpeg_encode-1.5b-src.tar.gz) = 24c0a1090076630c292936639c5fb275778f6470
Size (mpeg_encode-1.5b-src.tar.gz) = 2028724 bytes
SHA1 (patch-aa) = 04221eb3d4cf85b206d27a2f425719ed7c4a5ec1
SHA1 (patch-ab) = 19fcf1b6ef88f3cdba29a71eb619e467fa621f4f
-SHA1 (patch-ac) = 152c0bd7737a307d1aa89ae820e219300c124085
+SHA1 (patch-ac) = fe4bcb9082ed830020e3c0e8993664a7dc04af90
SHA1 (patch-ad) = 670a244680d09cb9f558a8777ec8f189145342f8
SHA1 (patch-ae) = 414b8c45c65892b9e161c285c5c0327103f8f474
SHA1 (patch-ag) = 8014bf6347a3c95d279f989c027fb2c90e33aa6e
diff -r 09fd0f9b2f29 -r d9c3ae7cac6a multimedia/mpeg_encode/patches/patch-ac
--- a/multimedia/mpeg_encode/patches/patch-ac Tue Sep 23 14:26:35 2014 +0000
+++ b/multimedia/mpeg_encode/patches/patch-ac Tue Sep 23 14:29:50 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.2 2006/01/03 14:20:41 joerg Exp $
+$NetBSD: patch-ac,v 1.3 2014/09/23 14:29:50 jperkin Exp $
--- libpnmrw.c.orig 1995-08-16 22:24:26.000000000 +0000
+++ libpnmrw.c
@@ -10,14 +10,21 @@
#include "libpnmrw.h"
/* if don't have string.h, try strings.h */
-@@ -126,8 +127,9 @@ static void
+@@ -126,11 +127,16 @@ static void
pm_perror( reason )
char* reason;
{
-+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__)
++#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__sun)
extern char* sys_errlist[];
- extern int errno;
+#endif
char* e;
++#ifdef __sun
++ e = strerror(errno);
++#else
e = sys_errlist[errno];
++#endif
+
+ if ( reason != 0 && reason[0] != '\0' )
+ (void) fprintf( stderr, "%s: %s - %s\n", progname, reason, e );
Home |
Main Index |
Thread Index |
Old Index