From 8f52cec3428182291a364c2be00bef1bdbbef1f1 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 1 Jan 2018 04:46:41 +0100 Subject: [PATCH] libSM, new recipe (#2013) --- x11-libs/libsm/libsm-1.2.2.recipe | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 x11-libs/libsm/libsm-1.2.2.recipe diff --git a/x11-libs/libsm/libsm-1.2.2.recipe b/x11-libs/libsm/libsm-1.2.2.recipe new file mode 100644 index 000000000..66d7cf6fd --- /dev/null +++ b/x11-libs/libsm/libsm-1.2.2.recipe @@ -0,0 +1,77 @@ +SUMMARY="X Session Management Library" +DESCRIPTION="The Session Management Library (SMlib) is a low-level \"C\" \ +language interface to XSMP. It is expected that higher level toolkits, \ +such as Xt, will hide many of the details of session management from \ +clients. Higher level toolkits might also be developed for session managers \ +to use, but no such effort is currently under way." +HOMEPAGE="https://www.x.org/releases/individual/lib/" +COPYRIGHT="1989, 1998 The Open Group + 2002 Oracle and/or its affiliates" +LICENSE="MIT (no promotion)" +REVISION="1" +SOURCE_URI="https://www.x.org/releases/individual/lib/libSM-$portVersion.tar.bz2" +CHECKSUM_SHA256="0baca8c9f5d934450a70896c4ad38d06475521255ca63b717a6510fdb6e287bd" +SOURCE_DIR="libSM-$portVersion" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion=6.0.1 +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libsm$secondaryArchSuffix = $portVersion + lib:libSM$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libICE$secondaryArchSuffix + " + +PROVIDES_devel=" + libsm${secondaryArchSuffix}_devel = $portVersion + devel:libSM$secondaryArchSuffix = $libVersion + " +REQUIRES_devel=" + libsm$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libICE$secondaryArchSuffix + devel:xproto$secondaryArchSuffix + devel:xtrans$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + devel:util_macros$secondaryArchSuffix + cmd:aclocal + cmd:autoconf + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage libsm$secondaryArchSuffix \ + $libDir/libSM.so.$libVersion + +BUILD() +{ + autoreconf -vfi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm -f $libDir/*.la + + prepareInstalledDevelLib libSM + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +}