A number of Solaris/SmartOS fixes: - Use ${INSTALL} - Disable Solaris64bitSubdir - Find compiler tools on SmartOS Bump PKGREVISION.diff -r1.20 -r1.21 pkgsrc/x11/xorg-cf-files/Makefile
(jperkin)
@@ -1,47 +1,62 @@ | @@ -1,47 +1,62 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2012/04/30 07:26:08 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2012/07/02 15:55:03 jperkin Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= xorg-cf-files-1.0.4 | 4 | DISTNAME= xorg-cf-files-1.0.4 | |
5 | PKGREVISION= 4 | 5 | PKGREVISION= 5 | |
6 | CATEGORIES= x11 devel | 6 | CATEGORIES= x11 devel | |
7 | MASTER_SITES= ${MASTER_SITE_XORG:=util/} | 7 | MASTER_SITES= ${MASTER_SITE_XORG:=util/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= joerg@NetBSD.org | 10 | MAINTAINER= joerg@NetBSD.org | |
11 | HOMEPAGE= http://xorg.freedesktop.org/ | 11 | HOMEPAGE= http://xorg.freedesktop.org/ | |
12 | COMMENT= Xorg imake rules | 12 | COMMENT= Xorg imake rules | |
13 | 13 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 14 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 15 | |||
16 | GNU_CONFIGURE= yes | 16 | GNU_CONFIGURE= yes | |
17 | USE_TOOLS+= pkg-config | 17 | USE_TOOLS+= pkg-config | |
18 | 18 | |||
19 | .include "../../mk/bsd.prefs.mk" | 19 | .include "../../mk/bsd.prefs.mk" | |
20 | 20 | |||
21 | DARWIN_USE_QUARTZ?= 1 | 21 | DARWIN_USE_QUARTZ?= 1 | |
22 | 22 | |||
23 | # SmartOS puts compiler tools in /usr/bin and does not come with lex/yacc. | |||
24 | .if ${OS_VARIANT} == "SmartOS" | |||
25 | DEPENDS+= byacc-[0-9]*:../../devel/byacc | |||
26 | DEPENDS+= flex-[0-9]*:../../devel/flex | |||
27 | SUBST_CLASSES+= fixpaths | |||
28 | SUBST_STAGE.fixpaths= post-patch | |||
29 | SUBST_MESSAGE.fixpaths= Fixing compiler tool paths | |||
30 | SUBST_FILES.fixpaths= svr4.cf | |||
31 | SUBST_SED.fixpaths+= -e 's,/usr/ccs/bin/ar,/usr/bin/ar,g' | |||
32 | SUBST_SED.fixpaths+= -e 's,/usr/ccs/bin/ld,/usr/bin/ld,g' | |||
33 | SUBST_SED.fixpaths+= -e 's,/usr/ccs/bin/lex,${PREFIX}/bin/flex,g' | |||
34 | SUBST_SED.fixpaths+= -e 's,/usr/ccs/bin/yacc,${PREFIX}/bin/yacc,g' | |||
35 | .endif | |||
36 | ||||
23 | post-extract: | 37 | post-extract: | |
24 | ${CP} ${FILESDIR}/host.def ${WRKSRC} | 38 | ${CP} ${FILESDIR}/host.def ${WRKSRC} | |
25 | ${CP} ${FILESDIR}/xorgsite.def ${WRKSRC} | 39 | ${CP} ${FILESDIR}/xorgsite.def ${WRKSRC} | |
26 | 40 | |||
27 | pre-configure: | 41 | pre-configure: | |
28 | .for sys in NetBSD FreeBSD DragonFly linux darwin sun | 42 | .for sys in NetBSD FreeBSD DragonFly linux darwin sun | |
29 | mv ${WRKSRC}/${sys}.cf ${WRKSRC}/${sys}.cf.before && \ | 43 | mv ${WRKSRC}/${sys}.cf ${WRKSRC}/${sys}.cf.before && \ | |
30 | ${SED} -e "s|@@PKGSRC_CC@@|${CC}|g" \ | 44 | ${SED} -e "s|@@PKGSRC_CC@@|${CC}|g" \ | |
31 | -e "s|@@PKGSRC_CPP@@|${CPP}|g" \ | 45 | -e "s|@@PKGSRC_CPP@@|${CPP}|g" \ | |
32 | -e "s|@@PKGSRC_CXX@@|${CXX}|g" \ | 46 | -e "s|@@PKGSRC_CXX@@|${CXX}|g" \ | |
33 | -e "s|@@PKGSRC_CFLAGS@@|${CFLAGS}|g" \ | 47 | -e "s|@@PKGSRC_CFLAGS@@|${CFLAGS}|g" \ | |
34 | -e "s|@@DARWIN_USE_QUARTZ@@|${DARWIN_USE_QUARTZ}|g" \ | 48 | -e "s|@@DARWIN_USE_QUARTZ@@|${DARWIN_USE_QUARTZ}|g" \ | |
49 | -e "s|@@INSTALL@@|${INSTALL}|g" \ | |||
35 | ${WRKSRC}/${sys}.cf.before > ${WRKSRC}/${sys}.cf | 50 | ${WRKSRC}/${sys}.cf.before > ${WRKSRC}/${sys}.cf | |
36 | .endfor | 51 | .endfor | |
37 | ${SED} -e "s|@PREFIX@|${PREFIX}|g" \ | 52 | ${SED} -e "s|@PREFIX@|${PREFIX}|g" \ | |
38 | -e "s|@PKGMANDIR@|${PKGMANDIR}|" \ | 53 | -e "s|@PKGMANDIR@|${PKGMANDIR}|" \ | |
39 | -e "s|@MAKE@|${MAKE_PROGRAM}|" ${FILESDIR}/host.def > \ | 54 | -e "s|@MAKE@|${MAKE_PROGRAM}|" ${FILESDIR}/host.def > \ | |
40 | ${WRKSRC}/host.def | 55 | ${WRKSRC}/host.def | |
41 | if [ ${X11BASE} != ${PREFIX} ]; then \ | 56 | if [ ${X11BASE} != ${PREFIX} ]; then \ | |
42 | echo '#define RealProjectRoot ${X11BASE}' >> ${WRKSRC}/host.def; \ | 57 | echo '#define RealProjectRoot ${X11BASE}' >> ${WRKSRC}/host.def; \ | |
43 | fi | 58 | fi | |
44 | 59 | |||
45 | .include "../../x11/xproto/buildlink3.mk" | 60 | .include "../../x11/xproto/buildlink3.mk" | |
46 | 61 | |||
47 | .include "../../mk/bsd.pkg.mk" | 62 | .include "../../mk/bsd.pkg.mk" |
@@ -1,21 +1,21 @@ | @@ -1,21 +1,21 @@ | |||
1 | $NetBSD: distinfo,v 1.15 2012/05/04 11:38:20 obache Exp $ | 1 | $NetBSD: distinfo,v 1.16 2012/07/02 15:55:03 jperkin Exp $ | |
2 | 2 | |||
3 | SHA1 (xorg-cf-files-1.0.4.tar.bz2) = c58b7252df481572ec1ccd77b9f1ab561ed89e45 | 3 | SHA1 (xorg-cf-files-1.0.4.tar.bz2) = c58b7252df481572ec1ccd77b9f1ab561ed89e45 | |
4 | RMD160 (xorg-cf-files-1.0.4.tar.bz2) = 975942e8974812aae91c45d81eb27522e5aa0a5d | 4 | RMD160 (xorg-cf-files-1.0.4.tar.bz2) = 975942e8974812aae91c45d81eb27522e5aa0a5d | |
5 | Size (xorg-cf-files-1.0.4.tar.bz2) = 367380 bytes | 5 | Size (xorg-cf-files-1.0.4.tar.bz2) = 367380 bytes | |
6 | SHA1 (patch-OpenBSDLib.rules) = 65b02b660839adb6e9c13287396a794a4586d927 | 6 | SHA1 (patch-OpenBSDLib.rules) = 65b02b660839adb6e9c13287396a794a4586d927 | |
7 | SHA1 (patch-X11.rules) = 13fee315aced521bef608e9341fc72526341bb1f | 7 | SHA1 (patch-X11.rules) = 13fee315aced521bef608e9341fc72526341bb1f | |
8 | SHA1 (patch-X11.tmpl) = 3f0c5b8ad7a60cd0e1e47afcddaace936b9aaeed | 8 | SHA1 (patch-X11.tmpl) = 3f0c5b8ad7a60cd0e1e47afcddaace936b9aaeed | |
9 | SHA1 (patch-aa) = 6b776ab3c9cc04759eb2fefcd95dcd65ea5909b3 | 9 | SHA1 (patch-aa) = 6b776ab3c9cc04759eb2fefcd95dcd65ea5909b3 | |
10 | SHA1 (patch-ab) = f8f816409eb233ae4d8430bd9d43b9bf83c5711d | 10 | SHA1 (patch-ab) = f8f816409eb233ae4d8430bd9d43b9bf83c5711d | |
11 | SHA1 (patch-ac) = 1f977650d9e903a4ea72afc8541b7649cb989ab8 | 11 | SHA1 (patch-ac) = 1f977650d9e903a4ea72afc8541b7649cb989ab8 | |
12 | SHA1 (patch-ad) = 12c918ad85fa44518525d2c4bc628b342b8c0280 | 12 | SHA1 (patch-ad) = 12c918ad85fa44518525d2c4bc628b342b8c0280 | |
13 | SHA1 (patch-ae) = b1c870feb6372b8443aac498c24dfa802a536ba2 | 13 | SHA1 (patch-ae) = b1c870feb6372b8443aac498c24dfa802a536ba2 | |
14 | SHA1 (patch-af) = e48481afac82cd93e61a1f44dab84876d645ce09 | 14 | SHA1 (patch-af) = f637bbf08a42d750f6279fa02ee4abd286c169bc | |
15 | SHA1 (patch-ag) = 20010c3ade12a6ee07e1093c6143d9600cca3b37 | 15 | SHA1 (patch-ag) = 20010c3ade12a6ee07e1093c6143d9600cca3b37 | |
16 | SHA1 (patch-ah) = 9b64b2e5f419ab190d47dd8156b8f84634fd6a36 | 16 | SHA1 (patch-ah) = 9b64b2e5f419ab190d47dd8156b8f84634fd6a36 | |
17 | SHA1 (patch-ai) = 455b398bba0d06ded08ed99f1e0e85cc4ff20449 | 17 | SHA1 (patch-ai) = 455b398bba0d06ded08ed99f1e0e85cc4ff20449 | |
18 | SHA1 (patch-aj) = 3be677041b6bff008caa1375d1e6dd5c90d9f501 | 18 | SHA1 (patch-aj) = 3be677041b6bff008caa1375d1e6dd5c90d9f501 | |
19 | SHA1 (patch-ak) = dba7e9f6bd9043e438bf6f309a5dc6f424204fd9 | 19 | SHA1 (patch-ak) = dba7e9f6bd9043e438bf6f309a5dc6f424204fd9 | |
20 | SHA1 (patch-gnuLib.rules) = 44a39881b4f4b6a10250f7ae4b4508af76cef71d | 20 | SHA1 (patch-gnuLib.rules) = 44a39881b4f4b6a10250f7ae4b4508af76cef71d | |
21 | SHA1 (patch-sv4Lib.rules) = 20bd05fe6e49cabb74317ded2f4b7565dd45c49d | 21 | SHA1 (patch-sv4Lib.rules) = 20bd05fe6e49cabb74317ded2f4b7565dd45c49d |
@@ -1,64 +1,72 @@ | @@ -1,64 +1,72 @@ | |||
1 | $NetBSD: patch-af,v 1.3 2012/02/15 15:25:15 hans Exp $ | 1 | $NetBSD: patch-af,v 1.4 2012/07/02 15:55:03 jperkin Exp $ | |
2 | ||||
3 | Use ginstall on Solaris 11, /usr/ucb/install has been removed. | |||
4 | 2 | |||
5 | Run-time path fix for Solaris for the X client libraries. Without this | 3 | Run-time path fix for Solaris for the X client libraries. Without this | |
6 | patch, libraries such as libXext.so will not contain a run-time link path | 4 | patch, libraries such as libXext.so will not contain a run-time link path | |
7 | to /usr/pkg/xorg/lib, causing run time link failures or possibly linking | 5 | to /usr/pkg/xorg/lib, causing run time link failures or possibly linking | |
8 | with other (non-Pkgsrc) X libraries on the system! | 6 | with other (non-Pkgsrc) X libraries on the system! | |
9 | 7 | |||
10 | Use pkgsrc CC, CXX and CFLAGS. | 8 | Disable Solaris64bitSubdir, at least until multi-arch is supported. | |
9 | ||||
10 | Use pkgsrc CC, CXX, CFLAGS and INSTALL. | |||
11 | 11 | |||
12 | --- sun.cf.orig 2005-12-03 18:20:48.000000000 +0100 | 12 | --- sun.cf.orig Fri Oct 16 21:45:42 2009 | |
13 | +++ sun.cf | 13 | +++ sun.cf Tue Jun 26 09:27:13 2012 | |
14 | @@ -429,7 +429,9 @@ XCOMM SunPro C++ CplusplusCompilerMajorV | 14 | @@ -430,7 +430,7 @@ | |
15 | # define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS | |||
16 | # endif | 15 | # endif | |
17 | # endif | 16 | # endif | |
18 | -# if OSMinorVersion > 3 | 17 | # if OSMinorVersion > 3 | |
19 | +# if OSMinorVersion >= 11 | 18 | -# define InstallCmd /usr/ucb/install | |
20 | +# define InstallCmd /usr/bin/ginstall | 19 | +# define InstallCmd @@INSTALL@@ | |
21 | +# elif OSMinorVersion > 3 | |||
22 | # define InstallCmd /usr/ucb/install | |||
23 | # endif | 20 | # endif | |
24 | #ifndef LargefileDefines | 21 | #ifndef LargefileDefines | |
25 | @@ -669,29 +671,29 @@ XCOMM SunPro C++ CplusplusCompilerMajorV | 22 | # if (OSMajorVersion > 5) || (OSMajorVersion == 5 && OSMinorVersion >= 6) | |
23 | @@ -669,19 +669,19 @@ | |||
26 | # endif | 24 | # endif | |
27 | # if HasGcc2 | 25 | # if HasGcc2 | |
28 | # ifndef CcCmd | 26 | # ifndef CcCmd | |
29 | -# define CcCmd gcc | 27 | -# define CcCmd gcc | |
30 | +# define CcCmd @@PKGSRC_CC@@ | 28 | +# define CcCmd @@PKGSRC_CC@@ | |
31 | +# endif | 29 | # endif | |
32 | +# ifndef CppCmd | 30 | +# ifndef CppCmd | |
33 | +# define CppCmd @@PKGSRC_CPP@@ | 31 | +# define CppCmd @@PKGSRC_CPP@@ | |
34 | +# endif | 32 | +# endif | |
35 | +# ifndef CplusplusCmd | 33 | +# ifndef CplusplusCmd | |
36 | +# define CplusplusCmd @@PKGSRC_CXX@@ | 34 | +# define CplusplusCmd @@PKGSRC_CXX@@ | |
37 | # endif | 35 | +# endif | |
38 | # ifndef AsCmd | 36 | # ifndef AsCmd | |
39 | # define AsCmd CcCmd -c -x assembler | 37 | # define AsCmd CcCmd -c -x assembler | |
40 | # endif | 38 | # endif | |
41 | # ifndef OptimizedCDebugFlags | 39 | # ifndef OptimizedCDebugFlags | |
42 | -# ifdef i386Architecture | 40 | -# ifdef i386Architecture | |
43 | -# define OptimizedCDebugFlags DefaultGcc2i386Opt | 41 | -# define OptimizedCDebugFlags DefaultGcc2i386Opt | |
44 | -# elif defined(AMD64Architecture) | 42 | -# elif defined(AMD64Architecture) | |
45 | -# define OptimizedCDebugFlags DefaultGcc2AMD64Opt | 43 | -# define OptimizedCDebugFlags DefaultGcc2AMD64Opt | |
46 | -# else | 44 | -# else | |
47 | -# define OptimizedCDebugFlags -O2 | 45 | -# define OptimizedCDebugFlags -O2 | |
48 | -# endif | 46 | -# endif | |
49 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | 47 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | |
50 | # endif | 48 | # endif | |
51 | # if !defined(SharedLibraryLoadFlags) && !defined(SharedLibraryLdCmd) | 49 | # if !defined(SharedLibraryLoadFlags) && !defined(SharedLibraryLdCmd) | |
52 | # if OSMajorVersion == 5 && OSMinorVersion > 6 && defined(i386Architecture) | 50 | # if OSMajorVersion == 5 && OSMinorVersion > 6 && defined(i386Architecture) | |
51 | @@ -688,10 +688,10 @@ | |||
53 | /* This is to work around what appears to be a PIC bug in some gcc/egcs | 52 | /* This is to work around what appears to be a PIC bug in some gcc/egcs | |
54 | versions that shows up with the Solaris 7/x86 <ctype.h>. */ | 53 | versions that shows up with the Solaris 7/x86 <ctype.h>. */ | |
55 | # define SharedLibraryLdCmd $(LD) | 54 | # define SharedLibraryLdCmd $(LD) | |
56 | -# define SharedLibraryLoadFlags -G -z textwarn | 55 | -# define SharedLibraryLoadFlags -G -z textwarn | |
57 | +# define SharedLibraryLoadFlags -G -z textwarn LibraryRpathLoadFlags | 56 | +# define SharedLibraryLoadFlags -G -z textwarn LibraryRpathLoadFlags | |
58 | # else | 57 | # else | |
59 | # define SharedLibraryLdCmd $(CC) | 58 | # define SharedLibraryLdCmd $(CC) | |
60 | -# define SharedLibraryLoadFlags -shared -z text | 59 | -# define SharedLibraryLoadFlags -shared -z text | |
61 | +# define SharedLibraryLoadFlags -shared -z text LibraryRpathLoadFlags | 60 | +# define SharedLibraryLoadFlags -shared -z text LibraryRpathLoadFlags | |
62 | # endif | 61 | # endif | |
63 | # endif | 62 | # endif | |
64 | # else | 63 | # else | |
64 | @@ -840,7 +840,7 @@ | |||
65 | # endif | |||
66 | #endif | |||
67 | ||||
68 | -#ifdef Solaris64bitSubdir | |||
69 | +#ifdef NotYetSolaris64bitSubdir | |||
70 | # define LibDirName Concat3(lib,/,Solaris64bitSubdir) | |||
71 | #endif | |||
72 |