From b1a5c3ebe8dde7f99d0845e901331c57412214e9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 3 Jul 2011 16:52:53 +0200 Subject: [PATCH] libmikmod: build with -fPIC, bumprev. --- srcpkgs/libmikmod/template | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/srcpkgs/libmikmod/template b/srcpkgs/libmikmod/template index dcfc9561573..d23c28c16ad 100644 --- a/srcpkgs/libmikmod/template +++ b/srcpkgs/libmikmod/template @@ -1,10 +1,9 @@ # Template file for 'libmikmod' pkgname=libmikmod version=3.1.12 -revision=1 +revision=2 distfiles="${SOURCEFORGE_SITE}/mikmod/$pkgname-$version.tar.gz" -build_style=gnu_configure -configure_args="--disable-esd" +build_style=custom-install short_desc="MikMod Sound Library" maintainer="Juan RP " checksum=891a2b780306e6ef86e381f459e71a085d4e7f56c970a879d3bf341c01bdfc32 @@ -28,3 +27,15 @@ long_desc=" subpackages="$pkgname-devel" Add_dependency run glibc Add_dependency build texinfo + +do_build() +{ + export CFLAGS="$XBPS_CFLAGS -fPIC" + ./configure --prefix=/usr --disable-esd + make ${makejobs} +} + +do_install() +{ + make DESTDIR=${DESTDIR} install +}