diff --git a/x11-libs/libxaw/libxaw-1.0.13.recipe b/x11-libs/libxaw/libxaw-1.0.13.recipe new file mode 100644 index 000000000..7cb81c8c5 --- /dev/null +++ b/x11-libs/libxaw/libxaw-1.0.13.recipe @@ -0,0 +1,116 @@ +SUMMARY="X Athena Widget library" +DESCRIPTION="X Athena Widgets, or Xaw, is a widget set based on the X Toolkit \ +Intrinsics (Xt) Library. Xaw & Xt form together what is known as the X Toolkit." +HOMEPAGE="https://www.x.org/releases/individual/lib/" +COPYRIGHT="1985-1990, 1994, 1998 The Open Group + 2003-2004 Roland Mainz + 1998-1999 The XFree86 Project, Inc. + 1991 OMRON Corporation + 1985-1998 Digital Equipment Corporation + 1989 Prentice Hall + 1985-1989, 1991, 1994 X Consortium" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://www.x.org/releases/individual/lib/libXaw-$portVersion.tar.bz2" +CHECKSUM_SHA256="8ef8067312571292ccc2bbe94c41109dcf022ea5a4ec71656a83d8cce9edb0cd" +SOURCE_DIR="libXaw-$portVersion" + +ARCHITECTURES="?x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion6="6.0.1" +libVersion7="7.0.0" + +libVersionCompat6="$libVersion6 compat >= 6" +libVersionCompat7="$libVersion7 compat >= 7" + +PROVIDES=" + libxaw$secondaryArchSuffix = $portVersion + lib:libxaw$secondaryArchSuffix + lib:libxaw6$secondaryArchSuffix = $libVersionCompat6 + lib:libxaw7$secondaryArchSuffix = $libVersionCompat7 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libX11$secondaryArchSuffix + lib:libxext$secondaryArchSuffix + lib:libXmu$secondaryArchSuffix + lib:libXpm$secondaryArchSuffix + lib:libXt$secondaryArchSuffix + " + +PROVIDES_devel=" + libxaw${secondaryArchSuffix}_devel = $portVersion + devel:libXaw6$secondaryArchSuffix = $libVersionCompat6 + devel:libXaw7$secondaryArchSuffix = $libVersionCompat7 + " +REQUIRES_devel=" + libxaw$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:kbproto$secondaryArchSuffix + devel:libICE$secondaryArchSuffix + devel:libpthread_stubs$secondaryArchSuffix + devel:libX11$secondaryArchSuffix + devel:libxext$secondaryArchSuffix + devel:libXmu$secondaryArchSuffix + devel:libXpm$secondaryArchSuffix + devel:libXt$secondaryArchSuffix + devel:libSM$secondaryArchSuffix + devel:xextproto$secondaryArchSuffix + devel:xproto$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + devel:util_macros$secondaryArchSuffix + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:autoheader + cmd:gcc$secondaryArchSuffix + cmd:grep + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:makeinfo + cmd:pkg_config$secondaryArchSuffix + cmd:sed + " + +defineDebugInfoPackage libxaw$secondaryArchSuffix \ + $libDir/libXaw6.so.$libVersion6 \ + $libDir/libXaw7.so.$libVersion7 + +BUILD() +{ + autoreconf -vfi + runConfigure --omit-dirs docDir ./configure --docdir="$developDocDir" + make $jobArgs +} + +INSTALL() +{ + make install + + rm -f $libDir/libXaw*.la + + prepareInstalledDevelLibs \ + libXaw6 \ + libXaw7 + fixPkgconfig + + # add missing symlinks + ln -s libXaw6.so.$libVersion6 $libDir/libXaw6.so.6 + ln -s libXaw7.so.$libVersion7 $libDir/libXaw7.so.7 + + # fix path in the Xaw(3) man page + sed -i \ + -e "s|$developDocDir|`finddir \ + B_SYSTEM_DIRECTORY`/$relativeDevelopDocDir|;" \ + $manDir/man3/Xaw.3 + + # devel package + packageEntries devel \ + $developDir \ + $manDir +}