Commit bd48676e authored by abveritas's avatar abveritas

cppunit rebuild, libre changes, builds

parent 37186646
......@@ -3,12 +3,9 @@
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=cppunit
pkgver=1.12.1
pkgrel=1
pkgrel=2
pkgdesc="A C++ unit testing framework"
arch=('i686' 'x86_64')
url="http://cppunit.sourceforge.net"
......@@ -17,21 +14,17 @@ depends=('sh' 'gcc-libs')
makedepends=('gcc')
categories=('programming')
options=('!libtool')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
'gcc4.5.patch')
md5sums=('bd30e9cf5523cdfc019b94f5e1d7fd19'
'7f4e3b50fa1ee8bc854ab431848dddec')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('bd30e9cf5523cdfc019b94f5e1d7fd19')
build() {
cd ${srcdir}/$pkgname-$pkgver
patch -Np1 -i ${srcdir}/gcc4.5.patch
autoreconf
libtoolize -f
./configure --prefix=/usr
make || return 1
cd "${srcdir}/${pkgname}-${pkgver}"
export LDFLAGS+=" -ldl"
./configure --prefix=/usr
make
}
package() {
cd ${srcdir}/$pkgname-$pkgver
make DESTDIR=${pkgdir} install || return 1
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
--- cppunit-1.12.1.orig/src/cppunit/Makefile.am
+++ cppunit-1.12.1/src/cppunit/Makefile.am
@@ -63,5 +63,11 @@
libcppunit_la_LDFLAGS= \
-no-undefined -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -release $(LT_RELEASE)
+ -release $(LT_RELEASE) @LIBADD_DL@
+TESTS = t_link
+
+check_PROGRAMS = t_link
+
+t_link_SOURCES = t_link.cpp
+t_link_LDADD = libcppunit.la
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment