mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
committed by
Jérôme Duval
parent
5ca5cc7bd2
commit
6349dea0f3
@@ -1,25 +0,0 @@
|
||||
--- serd-0.18.0/wscript 2012-08-23 04:13:45.002359296 +0000
|
||||
+++ serd-0.18.0-haiku/wscript 2012-12-12 15:55:31.292290560 +0000
|
||||
@@ -3,6 +3,7 @@
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
+import sys
|
||||
|
||||
from waflib.extras import autowaf as autowaf
|
||||
import waflib.Logs as Logs, waflib.Options as Options
|
||||
@@ -131,7 +132,12 @@
|
||||
{'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION})
|
||||
|
||||
libflags = ['-fvisibility=hidden']
|
||||
- libs = ['m']
|
||||
+
|
||||
+
|
||||
+ if sys.platform.startswith('haiku'):
|
||||
+ libs = []
|
||||
+ else:
|
||||
+ libs = ['m']
|
||||
defines = []
|
||||
if bld.env.MSVC_COMPILER:
|
||||
libflags = []
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
DESCRIPTION="
|
||||
Serd is a lightweight C library for RDF syntax which supports reading and \
|
||||
writing Turtle and NTriples.
|
||||
"
|
||||
HOMEPAGE="http://drobilla.net/software/serd/"
|
||||
SOURCE_URI="http://download.drobilla.net/serd-0.18.0.tar.bz2"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="96dbade2c81d6df8100a9ef605ce35f8"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd serd-0.18.0
|
||||
sed -i "s_#!/usr/bin/env python_#!/boot/common/bin/python_g" waf
|
||||
sed -i "s_#!/usr/bin/env python_#!/boot/common/bin/python_g" wscript
|
||||
./waf configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||
./waf
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd serd-0.18.0
|
||||
./waf install
|
||||
}
|
||||
|
||||
COPYRIGHT="2011-2012 David Robillard"
|
||||
LICENSE="MIT"
|
||||
61
dev-libs/serd/serd-0.26.0.recipe
Normal file
61
dev-libs/serd/serd-0.26.0.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
SUMMARY="A lightweight C library"
|
||||
DESCRIPTION="Serd is a lightweight C library for RDF syntax which \
|
||||
supports reading and writing Turtle and NTriples."
|
||||
HOMEPAGE="http://drobilla.net/software/serd/"
|
||||
COPYRIGHT="2011-2017 David Robillard"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://download.drobilla.net/serd-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="e3e44a88f90a9971d55e6cbd59a7b9cfa97cfc17c512fed7166a4252d5209298"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
serd$secondaryArchSuffix = $portVersion
|
||||
cmd:serdi$secondaryArchSuffix
|
||||
lib:libserd_0$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
serd${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libserd_0$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
serd$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python2
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./waf configure --prefix=$prefix \
|
||||
--mandir=$manDir --libdir=$libDir --bindir=$binDir \
|
||||
--includedir=$includeDir --static --test
|
||||
./waf
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
./waf install
|
||||
|
||||
prepareInstalledDevelLib libserd-0
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
./waf test
|
||||
}
|
||||
Reference in New Issue
Block a user