From 4931a4bda54a31bff76142160fdf6ad74adeacf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 21 Dec 2016 22:02:17 +0100 Subject: [PATCH] libxpm: add recipe for version 3.5.12. --- x11-libs/libxpm/libxpm-3.5.12.recipe | 108 +++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 x11-libs/libxpm/libxpm-3.5.12.recipe diff --git a/x11-libs/libxpm/libxpm-3.5.12.recipe b/x11-libs/libxpm/libxpm-3.5.12.recipe new file mode 100644 index 000000000..77653dfd0 --- /dev/null +++ b/x11-libs/libxpm/libxpm-3.5.12.recipe @@ -0,0 +1,108 @@ +SUMMARY="X.Org Xpm library" +DESCRIPTION="The X.Org project provides an open source implementation of the \ +X Window System. \ +The development work is being done in conjunction with the freedesktop.org \ +community. \ +The X.Org Foundation is the educational non-profit corporation whose \ +Board serves this effort, and whose Members lead this work." +HOMEPAGE="https://www.x.org/" +COPYRIGHT="1989-95 GROUPE BULL + 1998 Arnaud LE HORS + 1996 Lorens Younes" +# TODO: check all the licenses in the COPYING file in the next century. +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://www.x.org/releases/individual/lib/libXpm-$portVersion.tar.gz" +CHECKSUM_SHA256="2523acc780eac01db5163267b36f5b94374bfb0de26fc0b5a7bee76649fd8501" +SOURCE_DIR="libXpm-$portVersion" + +ARCHITECTURES="?x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 x86" + +PROVIDES=" + libxpm$secondaryArchSuffix = $portVersion + lib:libxpm$secondaryArchSuffix = 4.11.0 compat >= 4 + " +if [ -z "$secondaryArchSuffix" ]; then + PROVIDES="$PROVIDES + cmd:cxpm = $portVersion + " +fi + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libx11$secondaryArchSuffix + lib:libxcb$secondaryArchSuffix + lib:libxau$secondaryArchSuffix + " + +PROVIDES_devel=" + libxpm${secondaryArchSuffix}_devel = $portVersion + devel:libxpm$secondaryArchSuffix = 4.11.0 compat >= 4 + " +REQUIRES_devel=" + libxpm$secondaryArchSuffix == $portVersion base + devel:libx11$secondaryArchSuffix + devel:libxcb$secondaryArchSuffix + devel:libxau$secondaryArchSuffix + " + +# looks like all x11 deps are needed +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libx11$secondaryArchSuffix + devel:util_macros$secondaryArchSuffix + devel:xproto$secondaryArchSuffix + devel:xtrans$secondaryArchSuffix + devel:inputproto$secondaryArchSuffix + devel:kbproto$secondaryArchSuffix + devel:xcb_proto$secondaryArchSuffix + devel:libxslt$secondaryArchSuffix + devel:libpthread_stubs$secondaryArchSuffix + devel:libxcb$secondaryArchSuffix + devel:libxau$secondaryArchSuffix + devel:xextproto$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:automake + cmd:autoconf + cmd:autoreconf + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + libtoolize --force --copy --install + autoreconf -i + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + # remove libtool library file + rm $libDir/libXpm.la + + prepareInstalledDevelLibs \ + libXpm + + fixPkgconfig + + if [ -n "$secondaryArchSuffix" ]; then + rm -rf $binDir $documentationDir + fi + + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}