Make this compile with the current GNUstep. Bump PKGREVISION.diff -r1.20 -r1.21 pkgsrc/sysutils/burn/Makefile
(rh)
@@ -1,40 +1,42 @@ | @@ -1,40 +1,42 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2010/01/24 13:26:12 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2012/10/22 23:47:15 rh Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= burn-0.4.1 | 4 | DISTNAME= burn-0.4.1 | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= sysutils gnustep | 6 | CATEGORIES= sysutils gnustep | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gsburn/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gsburn/} | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://gsburn.sourceforge.net/ | 10 | HOMEPAGE= http://gsburn.sourceforge.net/ | |
11 | COMMENT= GNUstep based CD burning program | 11 | COMMENT= GNUstep based CD burning program | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | DEPENDS+= cdparanoia>=3.0.9.8:../../audio/cdparanoia | 14 | DEPENDS+= cdparanoia>=3.0.9.8:../../audio/cdparanoia | |
15 | DEPENDS+= cdrtools>=1.10:../../sysutils/cdrtools | 15 | DEPENDS+= cdrtools>=1.10:../../sysutils/cdrtools | |
16 | DEPENDS+= cdrdao>=1.1.5:../../sysutils/cdrdao | 16 | DEPENDS+= cdrdao>=1.1.5:../../sysutils/cdrdao | |
17 | DEPENDS+= gworkspace-[0-9]*:../../sysutils/gworkspace | 17 | DEPENDS+= gworkspace-[0-9]*:../../sysutils/gworkspace | |
18 | 18 | |||
19 | PKG_DESTDIR_SUPPORT= user-destdir | 19 | PKG_DESTDIR_SUPPORT= user-destdir | |
20 | 20 | |||
21 | NO_CONFIGURE= YES | |||
22 | MAKE_FILE= GNUmakefile | 21 | MAKE_FILE= GNUmakefile | |
23 | USE_TOOLS+= gmake | 22 | USE_TOOLS+= gmake | |
24 | USE_LANGUAGES= objc | 23 | USE_LANGUAGES= objc | |
25 | WRKSRC= ${WRKDIR}/Burn | 24 | WRKSRC= ${WRKDIR}/Burn | |
26 | MAKE_JOBS_SAFE= no | 25 | MAKE_JOBS_SAFE= no | |
27 | MAKE_ENV+= ADDITIONAL_CPPFLAGS=-D_POSIX_SOURCE | 26 | MAKE_ENV+= ADDITIONAL_CPPFLAGS=-D_POSIX_SOURCE | |
28 | MAKE_ENV+= ADDITIONAL_LDFLAGS=-lutil | 27 | MAKE_ENV+= ADDITIONAL_LDFLAGS=-lutil | |
29 | 28 | |||
30 | FIX_GNUSTEP_INSTALLATION_DIR= yes | 29 | FIX_GNUSTEP_INSTALLATION_DIR= yes | |
31 | SUBST_FILES.gnustep_installation_dir+= Bundles/CDparanoia/GNUmakefile | 30 | SUBST_FILES.gnustep_installation_dir+= Bundles/CDparanoia/GNUmakefile | |
32 | SUBST_FILES.gnustep_installation_dir+= Bundles/CDrecord/GNUmakefile | 31 | SUBST_FILES.gnustep_installation_dir+= Bundles/CDrecord/GNUmakefile | |
33 | SUBST_FILES.gnustep_installation_dir+= Bundles/MkIsoFs/GNUmakefile | 32 | SUBST_FILES.gnustep_installation_dir+= Bundles/MkIsoFs/GNUmakefile | |
34 | 33 | |||
35 | .include "../../devel/gnustep-make/gnustep.mk" | 34 | .include "../../devel/gnustep-make/gnustep.mk" | |
36 | 35 | |||
36 | do-configure: | |||
37 | ${LN} -s AudioCD ${BUILDLINK_DIR.cdplayer}/include/CDPlayer | |||
38 | ||||
37 | .include "../../audio/cdplayer/buildlink3.mk" | 39 | .include "../../audio/cdplayer/buildlink3.mk" | |
38 | .include "../../x11/gnustep-back/buildlink3.mk" | 40 | .include "../../x11/gnustep-back/buildlink3.mk" | |
39 | .include "../../mk/pthread.buildlink3.mk" | 41 | .include "../../mk/pthread.buildlink3.mk" | |
40 | .include "../../mk/bsd.pkg.mk" | 42 | .include "../../mk/bsd.pkg.mk" |
@@ -1,8 +1,8 @@ | @@ -1,8 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2009/04/25 12:07:04 rh Exp $ | 1 | $NetBSD: distinfo,v 1.3 2012/10/22 23:47:15 rh Exp $ | |
2 | 2 | |||
3 | SHA1 (burn-0.4.1.tar.gz) = 7beb4610a8ca8ff6eb84e905f962d71dcc28a59b | 3 | SHA1 (burn-0.4.1.tar.gz) = 7beb4610a8ca8ff6eb84e905f962d71dcc28a59b | |
4 | RMD160 (burn-0.4.1.tar.gz) = 9b2b794b2e607d7a627e23ee45bf61dd74e0074a | 4 | RMD160 (burn-0.4.1.tar.gz) = 9b2b794b2e607d7a627e23ee45bf61dd74e0074a | |
5 | Size (burn-0.4.1.tar.gz) = 554243 bytes | 5 | Size (burn-0.4.1.tar.gz) = 554243 bytes | |
6 | SHA1 (patch-aa) = 5c306e0fe5a7bc154494c04fd00d6c888388f30a | 6 | SHA1 (patch-aa) = 7276928e9c9a590810ba6eb9294701780ce42f25 | |
7 | SHA1 (patch-ab) = 0d22bb31aa041e656f317f4ce68bf6b9d937bc32 | 7 | SHA1 (patch-ab) = 465cd737ba5b24390599de3c8b6587088e6b3030 | |
8 | SHA1 (patch-ac) = bdc2e026e1ae6192f1df6a902a3e3ca3f2797b5c | 8 | SHA1 (patch-ac) = 8202a3aa5398c01d5665c78d710c8641562db403 |
@@ -1,16 +1,36 @@ | @@ -1,16 +1,36 @@ | |||
1 | $NetBSD: patch-aa,v 1.1 2009/04/25 12:07:04 rh Exp $ | 1 | $NetBSD: patch-aa,v 1.2 2012/10/22 23:47:15 rh Exp $ | |
2 | 2 | |||
3 | --- ExtProgressIndicator.m.orig 2005-05-13 01:58:49.000000000 +1000 | 3 | Make this compile with recent versions of GNUstep. | |
4 | ||||
5 | --- ExtProgressIndicator.m.orig 2005-05-12 15:58:49.000000000 +0000 | |||
4 | +++ ExtProgressIndicator.m | 6 | +++ ExtProgressIndicator.m | |
5 | @@ -22,8 +22,11 @@ | 7 | @@ -22,8 +22,11 @@ | |
6 | */ | 8 | */ | |
7 | 9 | |||
8 | #include <AppKit/NSColor.h> | 10 | #include <AppKit/NSColor.h> | |
9 | +#include <AppKit/NSGraphics.h> | 11 | +#include <AppKit/NSGraphics.h> | |
10 | #include <AppKit/NSParagraphStyle.h> | 12 | #include <AppKit/NSParagraphStyle.h> | |
11 | +#include <AppKit/NSAttributedString.h> | 13 | +#include <AppKit/NSAttributedString.h> | |
12 | #include <Foundation/Foundation.h> | 14 | #include <Foundation/Foundation.h> | |
13 | +#include <GNUstepGUI/GSTheme.h> | 15 | +#include <GNUstepGUI/GSTheme.h> | |
14 | 16 | |||
15 | #include "ExtProgressIndicator.h" | 17 | #include "ExtProgressIndicator.h" | |
16 | 18 | |||
19 | @@ -79,7 +82,7 @@ | |||
20 | ||||
21 | // Calculate the inside rect to be drawn | |||
22 | if (_isBezeled) { | |||
23 | - NSSize borderSize = _sizeForBorderType (NSBezelBorder); | |||
24 | + NSSize borderSize = [[GSTheme theme] sizeForBorderType: NSBezelBorder]; | |||
25 | origRect = NSInsetRect(_bounds, borderSize.width, borderSize.height); | |||
26 | } else | |||
27 | origRect = _bounds; | |||
28 | @@ -96,7 +99,7 @@ | |||
29 | if (value > _maxValue) | |||
30 | value = _maxValue; | |||
31 | ||||
32 | - if (_isVertical){ | |||
33 | + if ([self isVertical]){ | |||
34 | fillRect.size.height = 1; | |||
35 | fillRect.origin.y += NSHeight(origRect) * (value / (_maxValue - _minValue)); | |||
36 | } else { |
@@ -1,12 +1,23 @@ | @@ -1,12 +1,23 @@ | |||
1 | $NetBSD: patch-ab,v 1.1 2009/04/25 12:07:04 rh Exp $ | 1 | $NetBSD: patch-ab,v 1.2 2012/10/22 23:47:15 rh Exp $ | |
2 | 2 | |||
3 | --- WorkInProgress.m.orig 2005-05-13 01:58:49.000000000 +1000 | 3 | Make this work with recent versions of GNUstep. | |
4 | ||||
5 | --- WorkInProgress.m.orig 2005-05-12 15:58:49.000000000 +0000 | |||
4 | +++ WorkInProgress.m | 6 | +++ WorkInProgress.m | |
5 | @@ -23,6 +23,7 @@ | 7 | @@ -23,6 +23,7 @@ | |
6 | 8 | |||
7 | #include <Foundation/Foundation.h> | 9 | #include <Foundation/Foundation.h> | |
8 | #include <AppKit/AppKit.h> | 10 | #include <AppKit/AppKit.h> | |
9 | +#include <GNUstepGUI/GSTheme.h> | 11 | +#include <GNUstepGUI/GSTheme.h> | |
10 | 12 | |||
11 | #include "Functions.h" | 13 | #include "Functions.h" | |
12 | #include "Constants.h" | 14 | #include "Constants.h" | |
15 | @@ -77,7 +78,7 @@ static NSString *nibName = @"WorkInProgr | |||
16 | [super drawRect: rect]; | |||
17 | ||||
18 | // Calculate the inside rect to be drawn | |||
19 | - NSSize borderSize = _sizeForBorderType (NSBezelBorder); | |||
20 | + NSSize borderSize = [[GSTheme theme] sizeForBorderType: NSBezelBorder]; | |||
21 | r = NSInsetRect(_bounds, borderSize.width, borderSize.height); | |||
22 | ||||
23 | value = [self doubleValue]; |
@@ -1,13 +1,15 @@ | @@ -1,13 +1,15 @@ | |||
1 | $NetBSD: patch-ac,v 1.1 2009/04/25 12:07:04 rh Exp $ | 1 | $NetBSD: patch-ac,v 1.2 2012/10/22 23:47:15 rh Exp $ | |
2 | ||||
3 | Prevent a crash if item is nil. | |||
2 | 4 | |||
3 | --- DriversPrefs.m.orig 2005-05-13 01:58:49.000000000 +1000 | 5 | --- DriversPrefs.m.orig 2005-05-13 01:58:49.000000000 +1000 | |
4 | +++ DriversPrefs.m | 6 | +++ DriversPrefs.m | |
5 | @@ -198,7 +198,7 @@ static DriversPrefs *singleInstance = ni | 7 | @@ -198,7 +198,7 @@ static DriversPrefs *singleInstance = ni | |
6 | - (BOOL) outlineView: (NSOutlineView *)outlineView | 8 | - (BOOL) outlineView: (NSOutlineView *)outlineView | |
7 | isItemExpandable: (id) item | 9 | isItemExpandable: (id) item | |
8 | { | 10 | { | |
9 | - if ([availableDrives objectForKey: ((DriversTableItem*)item)->display]) { | 11 | - if ([availableDrives objectForKey: ((DriversTableItem*)item)->display]) { | |
10 | + if (item && [availableDrives objectForKey: ((DriversTableItem*)item)->display]) { | 12 | + if (item && [availableDrives objectForKey: ((DriversTableItem*)item)->display]) { | |
11 | return YES; | 13 | return YES; | |
12 | } | 14 | } | |
13 | return NO; | 15 | return NO; |