From owner-svn-ports-head@FreeBSD.ORG Fri Dec 26 12:29:18 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6A17196; Fri, 26 Dec 2014 12:29:18 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 875CA66857; Fri, 26 Dec 2014 12:29:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sBQCTIVY077216; Fri, 26 Dec 2014 12:29:18 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sBQCTIZ5077211; Fri, 26 Dec 2014 12:29:18 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201412261229.sBQCTIZ5077211@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Fri, 26 Dec 2014 12:29:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r375619 - in head/misc/magicpoint: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2014 12:29:18 -0000 Author: antoine Date: Fri Dec 26 12:29:17 2014 New Revision: 375619 URL: https://svnweb.freebsd.org/changeset/ports/375619 QAT: https://qat.redports.org/buildarchive/r375619/ Log: - Add missing run dependency on perl - Fix shebangs - Allow building with either giflib 4.2 or 5.0 Modified: head/misc/magicpoint/Makefile head/misc/magicpoint/files/patch-gif.c Modified: head/misc/magicpoint/Makefile ============================================================================== --- head/misc/magicpoint/Makefile Fri Dec 26 11:11:02 2014 (r375618) +++ head/misc/magicpoint/Makefile Fri Dec 26 12:29:17 2014 (r375619) @@ -3,7 +3,7 @@ PORTNAME= magicpoint PORTVERSION= 1.13a -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES?= misc MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/ @@ -18,11 +18,13 @@ RUN_DEPENDS+= pnmscale:${PORTSDIR}/graph MAKE_JOBS_UNSAFE= yes -USES= imake:env pkgconfig +USES= imake:env perl5 pkgconfig +USE_PERL5= run USE_XORG= x11 xext xmu xt sm ice xi xtst WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-vflib --enable-locale +CONFIGURE_ENV= mgp_cv_path_perl=${PERL} CPPFLAGS+= -I.. LATE_INSTALL_ARGS= install.man Modified: head/misc/magicpoint/files/patch-gif.c ============================================================================== --- head/misc/magicpoint/files/patch-gif.c Fri Dec 26 11:11:02 2014 (r375618) +++ head/misc/magicpoint/files/patch-gif.c Fri Dec 26 12:29:17 2014 (r375619) @@ -1,81 +1,147 @@ ---- image/gif.c.orig 2000-03-07 07:59:56.000000000 +0100 -+++ image/gif.c 2012-06-02 09:10:25.000000000 +0200 -@@ -19,6 +19,17 @@ +--- image/gif.c.orig 2000-03-07 06:59:56 UTC ++++ image/gif.c +@@ -15,10 +15,31 @@ + + #ifdef USE_GIF + ++#include + #include "image.h" #include static void ++#if GIFLIB_MAJOR >= 5 ++localPrintGifError(int ErrorCode) ++#else +localPrintGifError(void) ++#endif +{ ++#if GIFLIB_MAJOR >= 5 ++ char *Err = GifErrorString(ErrorCode); ++#else + char *Err = GifErrorString(); ++ int ErrorCode = GifError(); ++#endif + + if (Err != NULL) + fprintf(stderr, "\nGIF-LIB error: %s.\n", Err); + else -+ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError()); ++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", ErrorCode); +} + +static void tellAboutImage(name, gifp) char *name; GifFileType *gifp; -@@ -87,13 +98,13 @@ +@@ -50,7 +71,11 @@ gifLoad(fullname, name, verbose) + ColorMapObject *ColorMap; + GifColorType *ColorMapEntry; + ++#if GIFLIB_MAJOR >= 5 ++ GifFile = DGifOpenFileName(fullname, NULL); ++#else + GifFile = DGifOpenFileName(fullname); ++#endif + if (GifFile == NULL) + return NULL; + +@@ -87,13 +112,21 @@ gifLoad(fullname, name, verbose) /* Scan the content of the GIF file and load the image(s) in: */ do { if (DGifGetRecordType(GifFile, &RecordType) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } switch (RecordType) { case IMAGE_DESC_RECORD_TYPE: if (DGifGetImageDesc(GifFile) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } Row = GifFile->Image.Top; /* Image Position relative to Screen. */ -@@ -113,7 +124,7 @@ +@@ -113,7 +146,11 @@ gifLoad(fullname, name, verbose) j += InterlacedJumps[i]) { if (DGifGetLine(GifFile, &ScreenBuffer[j][Col], Width) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } } -@@ -122,7 +133,7 @@ +@@ -122,7 +159,11 @@ gifLoad(fullname, name, verbose) for (i = 0; i < Height; i++) { if (DGifGetLine(GifFile, &ScreenBuffer[Row++][Col], Width) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } } -@@ -131,7 +142,7 @@ +@@ -131,7 +172,11 @@ gifLoad(fullname, name, verbose) case EXTENSION_RECORD_TYPE: /* Skip any extension blocks in file: */ if (DGifGetExtension(GifFile, &ExtCode, &Extension) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } /* very adhoc transparency support */ -@@ -141,7 +152,7 @@ +@@ -141,7 +186,11 @@ gifLoad(fullname, name, verbose) } while (Extension != NULL) { if (DGifGetExtensionNext(GifFile, &Extension) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } } -@@ -180,7 +191,7 @@ +@@ -180,7 +229,11 @@ gifLoad(fullname, name, verbose) } if (DGifCloseFile(GifFile) == GIF_ERROR) { - PrintGifError(); ++#if GIFLIB_MAJOR >= 5 ++ localPrintGifError(GifFile->Error); ++#else + localPrintGifError(); ++#endif exit(-1); } +@@ -196,7 +249,11 @@ gifIdent(fullname, name) + GifFileType *gifp; + int ret; + ++#if GIFLIB_MAJOR >= 5 ++ gifp = DGifOpenFileName(fullname, NULL); ++#else + gifp = DGifOpenFileName(fullname); ++#endif + if (gifp == NULL) + ret = 0; + else {