[oe-commits] org.oe.dev ode 0.9 fix install.patch
mickeyl commit
openembedded-commits at lists.openembedded.org
Mon Mar 3 13:46:18 UTC 2008
ode 0.9 fix install.patch
Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 0be7e2471745457b4b41de77d503f7a671a1d7be
ViewMTN: http://monotone.openembedded.org/revision/info/0be7e2471745457b4b41de77d503f7a671a1d7be
Files:
1
packages/ode/files/install.patch
packages/ode/ode_0.9.bb
Diffs:
#
# mt diff -r97a87d0f60ababaf852f048ac9bc4bbff22af36c -r0be7e2471745457b4b41de77d503f7a671a1d7be
#
#
#
# add_file "packages/ode/files/install.patch"
# content [4f38131e748d12735fd8e0ff2584b29849042043]
#
# patch "packages/ode/ode_0.9.bb"
# from [c374097c73abc403e4ef197689b6a674215f8b17]
# to [3a094e3149860cac66dec360e6c33d34417198f5]
#
============================================================
--- packages/ode/files/install.patch 4f38131e748d12735fd8e0ff2584b29849042043
+++ packages/ode/files/install.patch 4f38131e748d12735fd8e0ff2584b29849042043
@@ -0,0 +1,22 @@
+Index: ode-0.9/Makefile.am
+===================================================================
+--- ode-0.9.orig/Makefile.am
++++ ode-0.9/Makefile.am
+@@ -25,13 +25,13 @@ dist-zip: ${PACKAGE}-${VERSION}.tar.gz
+
+ if USE_SONAME
+ install-exec-hook:
+- ln -s $(libdir)/@ODE_SONAME at .@ODE_REVISION at .@ODE_AGE@ \
++ ln -sf ./@ODE_SONAME at .@ODE_REVISION at .@ODE_AGE@ \
+ $(libdir)/libode.so
+- ln -s $(libdir)/@ODE_SONAME at .@ODE_REVISION at .@ODE_AGE@ \
++ ln -sf ./@ODE_SONAME at .@ODE_REVISION at .@ODE_AGE@ \
+ $(libdir)/@ODE_SONAME@
+- ln -s $(libdir)/@ODE_SONAME at .@ODE_REVISION at .@ODE_AGE@ \
++ ln -sf ./@ODE_SONAME at .@ODE_REVISION at .@ODE_AGE@ \
+ $(libdir)/@ODE_SONAME at .@ODE_REVISION@
+- /sbin/ldconfig
++ echo /sbin/ldconfig
+ else
+ install-exec-hook:
+ endif
============================================================
--- packages/ode/ode_0.9.bb c374097c73abc403e4ef197689b6a674215f8b17
+++ packages/ode/ode_0.9.bb 3a094e3149860cac66dec360e6c33d34417198f5
@@ -5,26 +5,30 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/opende/
PR = "r0"
SRC_URI = "${SOURCEFORGE_MIRROR}/opende/ode-src-${PV}.zip \
- file://config.h"
+ file://install.patch;patch=1"
-inherit autotools
+inherit autotools binconfig
-#do_configure() {
-# touch configurator.exe
-# chmod a+rx configurator.exe
-# install -m 0644 ${WORKDIR}/config.h include/ode/
-#}
+EXTRA_OECONF = "--disable-demos --enable-soname"
-#do_compile() {
-# oe_runmake CC="${CC}" CFLAGS="${CFLAGS}" LD="${LD}" LDFLAGS="${LDFLAGS}" RANLIB="${RANLIB}" AR="${AR} qf " ode-lib
-#}
+do_configure_append() {
+ echo "#define dInfinity DBL_MAX" >>include/ode/config.h
+}
-#do_stage() {
-# install -d ${STAGING_INCDIR}/ode/
-# install -m 0644 include/ode/*.h ${STAGING_INCDIR}/ode/
-# oe_libinstall -C lib -a libode ${STAGING_LIBDIR}
-#}
+do_stage() {
+ oe_runmake install \
+ bindir=${STAGING_BINDIR_CROSS} \
+ libdir=${STAGING_LIBDIR} \
+ includedir=${STAGING_INCDIR} \
+ datadir=${STAGING_DATADIR}
+}
+do_install() {
+ oe_runmake install \
+ bindir=${D}${bindir} \
+ libdir=${D}${libdir} \
+ includedir=${D}${incdir} \
+ datadir=${D}${datadir}
+}
+
+FILES_${PN} = "${libdir}/lib*.so*"
-#do_install() {
-# :
-#}
More information about the Openembedded-commits
mailing list