diff options
author | xtraeme <xtraeme> | 2004-11-01 23:41:58 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-11-01 23:41:58 +0000 |
commit | cb870aab84dddea3046d2109e5fab5a2f4d6147b (patch) | |
tree | 55c3f57a3442bed0fc40cff252b84bcf8828511b /x11 | |
parent | 2e5c7b7d192cc372a396764f983495f9534c6119 (diff) | |
download | pkgsrc-cb870aab84dddea3046d2109e5fab5a2f4d6147b.tar.gz |
Make this build/work on DragonFlyBSD. Patches were submitted by
Todd Willey via tech-pkg@.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xorg-imake/Makefile | 3 | ||||
-rw-r--r-- | x11/xorg-imake/distinfo | 4 | ||||
-rw-r--r-- | x11/xorg-imake/files/DragonFly.cf | 278 | ||||
-rw-r--r-- | x11/xorg-imake/patches/patch-ah | 29 | ||||
-rw-r--r-- | x11/xorg-imake/patches/patch-ai | 283 |
5 files changed, 595 insertions, 2 deletions
diff --git a/x11/xorg-imake/Makefile b/x11/xorg-imake/Makefile index 9cc0726454a..90695ccea3c 100644 --- a/x11/xorg-imake/Makefile +++ b/x11/xorg-imake/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2004/09/21 17:38:53 xtraeme Exp $ +# $NetBSD: Makefile,v 1.10 2004/11/01 23:41:58 xtraeme Exp $ DISTNAME= ${DISTFILES} PKGNAME= xorg-imake-${XORG_VER} @@ -33,6 +33,7 @@ PLIST_SUBST+= LNDIR= post-extract: @${TOUCH} ${WRKSRC}/config/cf/date.def + @${CP} ${FILESDIR}/DragonFly.cf ${WRKSRC}/config/cf/ .for F in ${SYSTEMS} @${MV} ${WRKSRC}/config/cf/${F}.cf ${WRKSRC}/config/cf/${F}.cf.in .endfor diff --git a/x11/xorg-imake/distinfo b/x11/xorg-imake/distinfo index 6e7e20dcad6..2463a6c4a48 100644 --- a/x11/xorg-imake/distinfo +++ b/x11/xorg-imake/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2004/10/08 03:35:25 xtraeme Exp $ +$NetBSD: distinfo,v 1.5 2004/11/01 23:41:58 xtraeme Exp $ SHA1 (X11R6.8.1-src1.tar.gz) = 027d16317e07d9df166c0176a1f28b2614f38cc9 Size (X11R6.8.1-src1.tar.gz) = 30562401 bytes @@ -11,3 +11,5 @@ SHA1 (patch-ad) = 7843332769ee47bc8a52a9adb1047b1a637af71b SHA1 (patch-ae) = a06752ee9f55e64a407fac6fbde3547fd096c71d SHA1 (patch-af) = 178d556fa11818420cd685308cf179ee5f6f7dac SHA1 (patch-ag) = 4545d9fd50c2a7b6f5a04da330784eaf9a5373ad +SHA1 (patch-ah) = 2d509b235d9b52317c435453db7d970e0ad54fd3 +SHA1 (patch-ai) = 545518e16c23333f3d02e477495e6f8480c5650c diff --git a/x11/xorg-imake/files/DragonFly.cf b/x11/xorg-imake/files/DragonFly.cf new file mode 100644 index 00000000000..5741a805f5a --- /dev/null +++ b/x11/xorg-imake/files/DragonFly.cf @@ -0,0 +1,278 @@ +/* xc/config/cf/DragonFly.cf */ + +#define UseElfFormat YES +#define OSBinaryFormat [ELF] + +#ifndef OSName +# define OSName DefaultOSName OSBinaryFormat +#endif +#ifndef OSVendor +# define OSVendor /**/ +#endif +#ifndef OSMajorVersion +# define OSMajorVersion DefaultOSMajorVersion +#endif +#ifndef OSMinorVersion +# define OSMinorVersion DefaultOSMinorVersion +#endif +#ifndef OSTeenyVersion +# define OSTeenyVersion DefaultOSTeenyVersion +#endif + +/* #ifndef OSRelVersion */ +/* Include this to get finer-grained information about the OS version */ +#include "/usr/include/osreldate.h" +#define OSRelVersion __DragonFly_version +/* #endif */ + +XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion) (OSRelVersion) + + +#define HasCplusplus YES +#define GccUsesGas YES +#define UseGas YES +#define GnuCpp YES +#define HasNdbm YES +#define HasPutenv YES +#define HasSnprintf YES +#define HasBSD44Sockets YES +#define HasDlopen YES +#define HasSetProcTitle YES +#define HasLibCrypt YES +#define HasShm YES +#define HasWChar32 YES +#define HasUsableFileMmap YES +#define HasNCurses YES +#define HasVarRun YES +#define HasVarDb YES +#define HasIssetugid YES +#define HasPoll YES +#define HasGetIfAddrs YES + +#define IPv6SocketsAlsoIPv4 NO +#define InstallXloadSetGID NO +#define HasWeakSymbols UseElfFormat + +/* + * Multi-thread safe libs + */ +#ifndef HasLibPthread +# define HasLibPthread NO +#endif +#define HasPosixThreads YES +#define ThreadedX YES +#define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE +#define HasThreadSafeAPI YES +#define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI + +#if HasLibPthread +# define ThreadsLibraries -lpthread +#else +# define BuildThreadStubLibrary YES +# define NeedUIThrStubs YES +# define ThreadsLibraries -pthread +# define SharedX11Reqs $(LDPRELIB) +# define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB) +#endif + +#define AvoidNullMakeCommand YES +#define StripInstalledPrograms YES +#define CompressAllFonts YES +#define Malloc0ReturnsNull YES +#define NeedConstPrototypes YES +#define NeedFunctionPrototypes YES +#define NeedNestedPrototypes YES +#define NeedVarargsPrototypes YES +#define NeedWidePrototypes NO + +#define HasPlugin YES +#define VendorHasX11R6_3libXext YES /* XC or XFree86 >= 3.3.1 */ + +#define CppCmd cpp +#define PreProcessCmd CppCmd + +#define StandardCppOptions -traditional +#define StandardCppDefines /**/ +#ifndef DefaultCCOptions +# if defined(UseInstalled) +# define DefaultCCOptions /**/ +# else +# if defined(HasGcc3) && HasGcc3 +# define NoSystemWarn -Wno-system-headers +# else +# define NoSystemWarn +# endif +# define DefaultCCOptions -ansi -Dasm=__asm NoSystemWarn +# endif +#endif + +#define HasSetUserContext YES +#define HasGetpeereid YES +#define HasMTRRSupport YES + +#ifndef BuildXF86DRI +# define BuildXF86DRI YES +#endif + +#if defined(i386Architecture) +# define HasAgpGart YES +#endif + +/* + * SSE and 3DNow will be autodetected, so binutils is the only + * requirement for enabling this. By 4.2 they were all supported. + */ +#if defined(i386Architecture) +# define HasX86Support YES +# define HasMMXSupport YES +# define Has3DNowSupport YES +# define HasSSESupport YES +#else +# define HasX86Support NO +# define HasMMXSupport NO +# define Has3DNowSupport NO +# define HasSSESupport NO +#endif + +#ifndef UseRpath +# define UseRpath YES +#endif + +#ifndef RpathLoadFlags +# if UseRpath +# define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH) +# else +# define RpathLoadFlags /**/ +# endif +#endif + +#ifndef ExtraLoadFlags +# if !defined(UseInstalled) +# define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR) +# else +# define ExtraLoadFlags RpathLoadFlags +# endif +#endif + +#ifndef StaticLibrary +# define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic +#endif + +#define DlLibrary -Wl,--export-dynamic + +#ifndef HasPam +# define HasPam YES +#endif +#ifndef PamLibraries +# define PamLibraries -lpam DlLibrary +#endif + +#ifndef UseGnuMalloc +# define UseGnuMalloc NO +#endif +#ifndef GnuMallocLibrary +# define GnuMallocLibrary -lgnumalloc +#endif + +#ifndef HasZlib +# define HasZlib YES +#endif + +#ifdef AlphaArchitecture +# define IoLibrary -lio +#else +# define IoLibrary /**/ +#endif +#define ServerExtraSysLibs IoLibrary + +#ifndef HasExpat +# define HasExpat YES +#endif + +#ifndef HasFreetype2 +# define HasFreetype2 YES +#endif + +#undef InstallCmd +#define InstallCmd /usr/bin/install + +#define AsmElfDefines -D__ELF__ + +#if GccUsesGas +# define GccGasOption -DGCCUSESGAS +# define AsmDefines -DUSE_GAS AsmElfDefines +#else +# define GccGasOption /**/ +# define AsmDefines AsmElfDefines +#endif + +#ifdef i386Architecture +# define ServerExtraDefines GccGasOption XFree86ServerDefines +#endif +#if defined(AlphaArchitecture) || defined(Sparc64Architecture) || \ + defined(ia64Architecture) || defined(AMD64Architecture) +# define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64 +#endif + +#ifdef Sparc64Architecture +# define AsVISOption -Av9a +# define AsOutputArchSize 64 +#endif + +#define StandardDefines -DCSRG_BASED + +#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME +#define XawI18nDefines -DUSE_XWCHAR_STRING +#define HasMakefileSafeInclude YES +#define IncludeMakefile(file) @@# dependencies are in .depend +#define DependFileName .depend +#ifndef DoLoadableServer +# define DoLoadableServer YES +#endif +#ifndef ForceNormalLib +# define ForceNormalLib YES +#endif +#define HasMkstemp YES + +#ifndef PreIncDir +# define PreIncDir /usr/include +#endif + +#define HasGroff YES +#define NroffCmd env GROFF_NO_SGR=y groff -Tascii +#define SetTtyGroup YES + +#ifndef ExtraFilesToClean +# define ExtraFilesToClean *.core +#endif + +#define DefaultUserPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/local/bin +#define DefaultSystemPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR) + +#ifndef SystemManDirectory +# define SystemManDirectory /usr/share/man +#endif + +#define InstKmemFlags -g kmem -m 2755 + +#ifndef CompressManPages +# define CompressManPages YES +#endif + +#define HasBsdMake YES + +#ifndef SharedLibXdmGreet +# define SharedLibXdmGreet NO +#endif + +#ifndef HasCookieMaker +/* Which versions have /dev/urandom? */ +#define HasCookieMaker YES +#define MkCookieCmd \ + 'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"' +#endif + + +#include <bsdLib.rules> + +#include <xorg.cf> diff --git a/x11/xorg-imake/patches/patch-ah b/x11/xorg-imake/patches/patch-ah new file mode 100644 index 00000000000..0bd30e3d0a6 --- /dev/null +++ b/x11/xorg-imake/patches/patch-ah @@ -0,0 +1,29 @@ +$NetBSD: patch-ah,v 1.1 2004/11/01 23:41:59 xtraeme Exp $ + +--- config/cf/Imake.cf.orig 2004-10-25 15:42:06.000000000 +0000 ++++ config/cf/Imake.cf 2004-10-22 15:29:33.000000000 +0000 +@@ -253,7 +253,23 @@ + #define KNetBSDArchitecture + #endif + +-#ifdef __FreeBSD__ ++#ifdef __DragonFly__ ++# define MacroIncludeFile <DragonFly.cf> ++# define MacroFile DragonFly.cf ++# undef __DragonFly__ ++# define FreeBSDArchitecture ++# define KFreeBSDArchitecture ++# ifdef __i386__ ++# define i386BsdArchitecture ++# define i386Architecture ++# undef i386 ++# endif ++# ifdef __amd64__ ++# define AMD64Architecture ++# undef __amd64__ ++# undef __x86_64__ ++# endif ++#elif defined __FreeBSD__ + # define MacroIncludeFile <FreeBSD.cf> + # define MacroFile FreeBSD.cf + # undef __FreeBSD__ diff --git a/x11/xorg-imake/patches/patch-ai b/x11/xorg-imake/patches/patch-ai new file mode 100644 index 00000000000..6b92ec1fcd7 --- /dev/null +++ b/x11/xorg-imake/patches/patch-ai @@ -0,0 +1,283 @@ +$NetBSD: patch-ai,v 1.1 2004/11/01 23:41:59 xtraeme Exp $ + +--- /dev/null 2004-10-25 03:03:50.000000000 +0000 ++++ config/cf/DragonFly.cf.in 2004-10-25 15:32:02.000000000 +0000 +@@ -0,0 +1,278 @@ ++/* xc/config/cf/DragonFly.cf */ ++ ++#define UseElfFormat YES ++#define OSBinaryFormat [ELF] ++ ++#ifndef OSName ++# define OSName DefaultOSName OSBinaryFormat ++#endif ++#ifndef OSVendor ++# define OSVendor /**/ ++#endif ++#ifndef OSMajorVersion ++# define OSMajorVersion DefaultOSMajorVersion ++#endif ++#ifndef OSMinorVersion ++# define OSMinorVersion DefaultOSMinorVersion ++#endif ++#ifndef OSTeenyVersion ++# define OSTeenyVersion DefaultOSTeenyVersion ++#endif ++ ++/* #ifndef OSRelVersion */ ++/* Include this to get finer-grained information about the OS version */ ++#include "/usr/include/osreldate.h" ++#define OSRelVersion __DragonFly_version ++/* #endif */ ++ ++XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion) (OSRelVersion) ++ ++ ++#define HasCplusplus YES ++#define GccUsesGas YES ++#define UseGas YES ++#define GnuCpp YES ++#define HasNdbm YES ++#define HasPutenv YES ++#define HasSnprintf YES ++#define HasBSD44Sockets YES ++#define HasDlopen YES ++#define HasSetProcTitle YES ++#define HasLibCrypt YES ++#define HasShm YES ++#define HasWChar32 YES ++#define HasUsableFileMmap YES ++#define HasNCurses YES ++#define HasVarRun YES ++#define HasVarDb YES ++#define HasIssetugid YES ++#define HasPoll YES ++#define HasGetIfAddrs YES ++ ++#define IPv6SocketsAlsoIPv4 NO ++#define InstallXloadSetGID NO ++#define HasWeakSymbols UseElfFormat ++ ++/* ++ * Multi-thread safe libs ++ */ ++#ifndef HasLibPthread ++# define HasLibPthread NO ++#endif ++#define HasPosixThreads YES ++#define ThreadedX YES ++#define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE ++#define HasThreadSafeAPI YES ++#define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI ++ ++#if HasLibPthread ++# define ThreadsLibraries -lpthread ++#else ++# define BuildThreadStubLibrary YES ++# define NeedUIThrStubs YES ++# define ThreadsLibraries -pthread ++# define SharedX11Reqs $(LDPRELIB) ++# define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB) ++#endif ++ ++#define AvoidNullMakeCommand YES ++#define StripInstalledPrograms YES ++#define CompressAllFonts YES ++#define Malloc0ReturnsNull YES ++#define NeedConstPrototypes YES ++#define NeedFunctionPrototypes YES ++#define NeedNestedPrototypes YES ++#define NeedVarargsPrototypes YES ++#define NeedWidePrototypes NO ++ ++#define HasPlugin YES ++#define VendorHasX11R6_3libXext YES /* XC or XFree86 >= 3.3.1 */ ++ ++#define CppCmd cpp ++#define PreProcessCmd CppCmd ++ ++#define StandardCppOptions -traditional ++#define StandardCppDefines /**/ ++#ifndef DefaultCCOptions ++# if defined(UseInstalled) ++# define DefaultCCOptions /**/ ++# else ++# if defined(HasGcc3) && HasGcc3 ++# define NoSystemWarn -Wno-system-headers ++# else ++# define NoSystemWarn ++# endif ++# define DefaultCCOptions -ansi -Dasm=__asm NoSystemWarn ++# endif ++#endif ++ ++#define HasSetUserContext YES ++#define HasGetpeereid YES ++#define HasMTRRSupport YES ++ ++#ifndef BuildXF86DRI ++# define BuildXF86DRI YES ++#endif ++ ++#if defined(i386Architecture) ++# define HasAgpGart YES ++#endif ++ ++/* ++ * SSE and 3DNow will be autodetected, so binutils is the only ++ * requirement for enabling this. By 4.2 they were all supported. ++ */ ++#if defined(i386Architecture) ++# define HasX86Support YES ++# define HasMMXSupport YES ++# define Has3DNowSupport YES ++# define HasSSESupport YES ++#else ++# define HasX86Support NO ++# define HasMMXSupport NO ++# define Has3DNowSupport NO ++# define HasSSESupport NO ++#endif ++ ++#ifndef UseRpath ++# define UseRpath YES ++#endif ++ ++#ifndef RpathLoadFlags ++# if UseRpath ++# define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH) ++# else ++# define RpathLoadFlags /**/ ++# endif ++#endif ++ ++#ifndef ExtraLoadFlags ++# if !defined(UseInstalled) ++# define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR) ++# else ++# define ExtraLoadFlags RpathLoadFlags ++# endif ++#endif ++ ++#ifndef StaticLibrary ++# define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic ++#endif ++ ++#define DlLibrary -Wl,--export-dynamic ++ ++#ifndef HasPam ++# define HasPam YES ++#endif ++#ifndef PamLibraries ++# define PamLibraries -lpam DlLibrary ++#endif ++ ++#ifndef UseGnuMalloc ++# define UseGnuMalloc NO ++#endif ++#ifndef GnuMallocLibrary ++# define GnuMallocLibrary -lgnumalloc ++#endif ++ ++#ifndef HasZlib ++# define HasZlib YES ++#endif ++ ++#ifdef AlphaArchitecture ++# define IoLibrary -lio ++#else ++# define IoLibrary /**/ ++#endif ++#define ServerExtraSysLibs IoLibrary ++ ++#ifndef HasExpat ++# define HasExpat YES ++#endif ++ ++#ifndef HasFreetype2 ++# define HasFreetype2 YES ++#endif ++ ++#undef InstallCmd ++#define InstallCmd /usr/bin/install ++ ++#define AsmElfDefines -D__ELF__ ++ ++#if GccUsesGas ++# define GccGasOption -DGCCUSESGAS ++# define AsmDefines -DUSE_GAS AsmElfDefines ++#else ++# define GccGasOption /**/ ++# define AsmDefines AsmElfDefines ++#endif ++ ++#ifdef i386Architecture ++# define ServerExtraDefines GccGasOption XFree86ServerDefines ++#endif ++#if defined(AlphaArchitecture) || defined(Sparc64Architecture) || \ ++ defined(ia64Architecture) || defined(AMD64Architecture) ++# define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64 ++#endif ++ ++#ifdef Sparc64Architecture ++# define AsVISOption -Av9a ++# define AsOutputArchSize 64 ++#endif ++ ++#define StandardDefines -DCSRG_BASED ++ ++#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME ++#define XawI18nDefines -DUSE_XWCHAR_STRING ++#define HasMakefileSafeInclude YES ++#define IncludeMakefile(file) @@# dependencies are in .depend ++#define DependFileName .depend ++#ifndef DoLoadableServer ++# define DoLoadableServer YES ++#endif ++#ifndef ForceNormalLib ++# define ForceNormalLib YES ++#endif ++#define HasMkstemp YES ++ ++#ifndef PreIncDir ++# define PreIncDir /usr/include ++#endif ++ ++#define HasGroff YES ++#define NroffCmd env GROFF_NO_SGR=y groff -Tascii ++#define SetTtyGroup YES ++ ++#ifndef ExtraFilesToClean ++# define ExtraFilesToClean *.core ++#endif ++ ++#define DefaultUserPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/local/bin ++#define DefaultSystemPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR) ++ ++#ifndef SystemManDirectory ++# define SystemManDirectory /usr/share/man ++#endif ++ ++#define InstKmemFlags -g kmem -m 2755 ++ ++#ifndef CompressManPages ++# define CompressManPages YES ++#endif ++ ++#define HasBsdMake YES ++ ++#ifndef SharedLibXdmGreet ++# define SharedLibXdmGreet NO ++#endif ++ ++#ifndef HasCookieMaker ++/* Which versions have /dev/urandom? */ ++#define HasCookieMaker YES ++#define MkCookieCmd \ ++ 'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"' ++#endif ++ ++ ++#include <bsdLib.rules> ++ ++#include <xorg.cf> |