pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/pixmap Various fixes:
details: https://anonhg.NetBSD.org/pkgsrc/rev/3c569797de38
branches: trunk
changeset: 550821:3c569797de38
user: obache <obache%pkgsrc.org@localhost>
date: Sun Nov 30 08:43:16 2008 +0000
description:
Various fixes:
* Remove copy of X11 header files for old X11,
it may cause build failure with recent X, like a PR 39975.
* Need rgb.txt, add dependency on x11/rgb for X11_TYPE=modular.
And fix path for the file (SUBST.rgb and patch-ac).
* Add DESTDIR support. it seems that rules of imake deal spaces after cammna
as part of the argument (patch-ac).
* Replace IMAKE_MANNEWSUFFIX with IMAKE_MAN_SUFFIX in PLIST.
* hard coded errno and sys_errlist is not portable these days (patch-ab)
* sort PLIST
* regen patches with unfied diff.
Bump PKGREVISION.
diffstat:
graphics/pixmap/Makefile | 27 +++++++++++++++++++++++----
graphics/pixmap/PLIST | 8 ++++----
graphics/pixmap/distinfo | 8 ++++----
graphics/pixmap/patches/patch-aa | 32 ++++++++++++--------------------
graphics/pixmap/patches/patch-ab | 34 ++++++++++++++--------------------
graphics/pixmap/patches/patch-ac | 23 +++++++++++++++++------
6 files changed, 74 insertions(+), 58 deletions(-)
diffs (213 lines):
diff -r 612858d4e70b -r 3c569797de38 graphics/pixmap/Makefile
--- a/graphics/pixmap/Makefile Sun Nov 30 08:42:38 2008 +0000
+++ b/graphics/pixmap/Makefile Sun Nov 30 08:43:16 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2006/12/15 20:32:57 joerg Exp $
+# $NetBSD: Makefile,v 1.32 2008/11/30 08:43:16 obache Exp $
DISTNAME= pixmap2.6
PKGNAME= pixmap-2.6.4
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=applications/pixmap/}
@@ -15,11 +15,30 @@
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
COMMENT= Pixmap editor based on XPM library
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/pixmap
USE_IMAKE= YES
-MAKE_ENV+= LOCAL_LDFLAGS=${LDFLAGS:M*:Q}
-MAKE_ENV+= MOTIFBASE=${MOTIFBASE:Q}
+MAKE_ENV+= LOCAL_LDFLAGS=${LDFLAGS:Q}
+MAKE_ENV+= MOTIFBASE=${MOTIFBASE}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "modular"
+DEPENDS+= rgb>=1.0.1:../../x11/rgb
+RGBTXT= ${PREFIX}/share/X11/rgb.txt
+.else
+RGBTXT= ${X11BASE}/lib/X11/rgb.txt
+.endif
+
+SUBST_CLASSES+= rgb
+SUBST_STAGE.rgb= pre-configure
+SUBST_FILES.rgb= Imakefile
+SUBST_VARS.rgb= RGBTXT
+
+post-extract:
+ rm -rf ${WRKSRC}/X11
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
diff -r 612858d4e70b -r 3c569797de38 graphics/pixmap/PLIST
--- a/graphics/pixmap/PLIST Sun Nov 30 08:42:38 2008 +0000
+++ b/graphics/pixmap/PLIST Sun Nov 30 08:43:16 2008 +0000
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2003/03/02 19:47:24 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.4 2008/11/30 08:43:16 obache Exp $
bin/pixmap
-lib/X11/app-defaults/Pixmap
lib/X11/Pixmap/MDown
lib/X11/Pixmap/MFlipHoriz
lib/X11/Pixmap/MFlipVert
@@ -9,6 +8,7 @@
lib/X11/Pixmap/MRight
lib/X11/Pixmap/MRotateLeft
lib/X11/Pixmap/MRotateRight
+lib/X11/Pixmap/MUp
lib/X11/Pixmap/Stipple
-lib/X11/Pixmap/MUp
-${IMAKE_MAN_DIR}/pixmap.${IMAKE_MANNEWSUFFIX}
+lib/X11/app-defaults/Pixmap
+${IMAKE_MAN_DIR}/pixmap.${IMAKE_MAN_SUFFIX}
diff -r 612858d4e70b -r 3c569797de38 graphics/pixmap/distinfo
--- a/graphics/pixmap/distinfo Sun Nov 30 08:42:38 2008 +0000
+++ b/graphics/pixmap/distinfo Sun Nov 30 08:43:16 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/02/24 08:45:11 agc Exp $
+$NetBSD: distinfo,v 1.7 2008/11/30 08:43:16 obache Exp $
SHA1 (pixmap2.6.tar.gz) = f9b0c610ed73254fbde9a25346ed78d493d97752
RMD160 (pixmap2.6.tar.gz) = 862bf8a40c95e410035243c5bbd75df8d5c7e617
@@ -15,6 +15,6 @@
SHA1 (pixmap_2.6.patch4.gz) = 1a994cdbe837ac36d0cb4d5c2109f18b5732d7b6
RMD160 (pixmap_2.6.patch4.gz) = 0f9c67cc6e2db6efe27b88d19640ebccde8e64fc
Size (pixmap_2.6.patch4.gz) = 1269 bytes
-SHA1 (patch-aa) = 83e783b4308374e638a5b129f219a2b45d93126e
-SHA1 (patch-ab) = 67f64b30aa72d8a1fefe24d264c27d028cb8056b
-SHA1 (patch-ac) = 501d8c73092abae755bdd33dba15dcec39784eb7
+SHA1 (patch-aa) = b51ced9659d8360f96d9434d670ad66016e81988
+SHA1 (patch-ab) = d7da0a7998bbac1e25763eea5a64afb79d98d1e6
+SHA1 (patch-ac) = c42f312a041693f2ab94ad7efbbaba7c91cf2c30
diff -r 612858d4e70b -r 3c569797de38 graphics/pixmap/patches/patch-aa
--- a/graphics/pixmap/patches/patch-aa Sun Nov 30 08:42:38 2008 +0000
+++ b/graphics/pixmap/patches/patch-aa Sun Nov 30 08:43:16 2008 +0000
@@ -1,21 +1,13 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:52 agc Exp $
+$NetBSD: patch-aa,v 1.3 2008/11/30 08:43:16 obache Exp $
-*** Pixmap.h~ Fri May 13 04:03:29 1994
---- Pixmap.h Sun Feb 19 03:35:48 1995
-***************
-*** 69,75 ****
- #include <X11/Xmu/Converters.h>
- #include <X11/Xos.h>
- #include <X11/Xfuncproto.h>
-! #include "xpm.h"
-
- /* Resources:
-
---- 69,75 ----
- #include <X11/Xmu/Converters.h>
- #include <X11/Xos.h>
- #include <X11/Xfuncproto.h>
-! #include <X11/xpm.h>
-
- /* Resources:
-
+--- Pixmap.h.orig 2008-11-30 06:21:45.000000000 +0000
++++ Pixmap.h
+@@ -69,7 +69,7 @@
+ #include <X11/Xmu/Converters.h>
+ #include <X11/Xos.h>
+ #include <X11/Xfuncproto.h>
+-#include "xpm.h"
++#include <X11/xpm.h>
+
+ /* Resources:
+
diff -r 612858d4e70b -r 3c569797de38 graphics/pixmap/patches/patch-ab
--- a/graphics/pixmap/patches/patch-ab Sun Nov 30 08:42:38 2008 +0000
+++ b/graphics/pixmap/patches/patch-ab Sun Nov 30 08:43:16 2008 +0000
@@ -1,21 +1,15 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 10:40:53 agc Exp $
+$NetBSD: patch-ab,v 1.3 2008/11/30 08:43:16 obache Exp $
-*** SelFile/SelFile.c~ Mon May 30 04:02:59 1994
---- SelFile/SelFile.c Sun Feb 19 03:40:43 1995
-***************
-*** 46,52 ****
- /* BSD 4.3 errno.h does not declare errno */
- extern int errno;
- extern int sys_nerr;
-! extern char *sys_errlist[];
-
- #include <sys/param.h>
- #include <X11/cursorfont.h>
---- 46,52 ----
- /* BSD 4.3 errno.h does not declare errno */
- extern int errno;
- extern int sys_nerr;
-! /* extern char *sys_errlist[];*/
-
- #include <sys/param.h>
- #include <X11/cursorfont.h>
+--- SelFile/SelFile.c.orig 1993-12-27 12:14:20.000000000 +0000
++++ SelFile/SelFile.c
+@@ -43,10 +43,6 @@
+
+ #include <stdio.h>
+ #include <errno.h>
+-/* BSD 4.3 errno.h does not declare errno */
+-extern int errno;
+-extern int sys_nerr;
+-extern char *sys_errlist[];
+
+ #include <sys/param.h>
+ #include <X11/cursorfont.h>
diff -r 612858d4e70b -r 3c569797de38 graphics/pixmap/patches/patch-ac
--- a/graphics/pixmap/patches/patch-ac Sun Nov 30 08:42:38 2008 +0000
+++ b/graphics/pixmap/patches/patch-ac Sun Nov 30 08:43:16 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.5 2002/10/08 12:38:26 jlam Exp $
+$NetBSD: patch-ac,v 1.6 2008/11/30 08:43:16 obache Exp $
---- Imakefile.orig Fri May 13 06:04:38 1994
+--- Imakefile.orig 1994-05-13 11:04:38.000000000 +0000
+++ Imakefile
-@@ -8,7 +8,7 @@
+@@ -8,7 +8,7 @@ XCOMM Created: April 20, 1991.
XCOMM
XCOMM def/undef USE_MOTIF there if you want Pixmap to use Motif or not.
@@ -11,12 +11,12 @@
#ifdef HPArchitecture
CCOPTIONS = -Aa -D_HPUX_SOURCE -DNO_EDITRES
#if ProjectX > 4
-@@ -21,22 +21,20 @@
+@@ -21,22 +21,20 @@ R5EXT = -I.
#endif
XCOMM Where you have rgb.txt
-RGBTXT = $(LIBDIR)/rgb.txt
-+RGBTXT = ${X11BASE}/lib/X11/rgb.txt
++RGBTXT = @RGBTXT@
XCOMM LUCS extra variable for where bitmaps go
PIXMAPDIR = $(LIBDIR)/Pixmap
@@ -39,7 +39,18 @@
BITMAPS = MDown MFlipHoriz MFlipVert MFold MLeft MRight MRotateLeft \
MRotateRight Stipple MUp
#else
-@@ -89,7 +87,7 @@
+@@ -70,8 +68,8 @@ LOCAL_LIBRARIES = -L$(XPM_LIBDIR) -lXpm
+
+ ComplexProgramTarget(pixmap)
+ InstallAppDefaults(Pixmap)
+-MakeDirectories(install, $(PIXMAPDIR))
+-InstallMultipleFlags($(BITMAPS), $(PIXMAPDIR), $(INSTDATFLAGS))
++MakeDirectories(install,$(PIXMAPDIR))
++InstallMultipleFlags($(BITMAPS),$(PIXMAPDIR),$(INSTDATFLAGS))
+
+ AllTarget(dotpixmap)
+
+@@ -89,7 +87,7 @@ NamedMakeSubdirs(Xgnu, SelFile)
Pixmap.ad: APixmap.ad
@echo Pixmap compiled with Athena.
Home |
Main Index |
Thread Index |
Old Index