#!/bin/sh
#
# Copyright 2009 Tiago Salvador Souza
# Available under the terms of the GNU GPL.
#
# Ported from http://slackbuilds.org/repository/12.2/libraries/lablgtk/
# By: Ferenc Deak <ferenc dot deak at gmail dot com>


# Warning: Build fails if DLG is installed. Don't know exactly which packages
# causes that behavior on Slackware 12.2 and DLG 2.26

NAME="lablgtk"
VERSION="2.14.0"
REVISION="1"

PKG_SOURCEURL='http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/${NAME}-${VERSION}.tar.gz'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

DLG_PKGER="salv"

cflags
cxxflags
prepare
analyzesource
configure
spewdo 'sed -i -e "s/\\(BYTECCCOMPOPTS=.*\\)/\\1 ${PKG_CFLAGS}/" config/Makefile'
spewdo 'sed -i -e "s/\\(NATIVECCCOMPOPTS=.*\\)/\\1 ${PKG_CFLAGS}/" config/Makefile'
make world
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
