You are not logged in.

#1 2004-06-19 02:19:14

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

magicpoint - mgp

anyone has a pkg for it already? if not, it's my new aim to make a pkg of it


The impossible missions are the only ones which succeed.

Offline

#2 2004-06-19 06:55:09

forest76
Member
From: Poland
Registered: 2004-01-31
Posts: 32

Re: magicpoint - mgp

... but include very stupid hack. Without it I got compile error:

In file included from send.c:13:
../mgp.h:760: error: conflicting types for 'usleep'
/usr/include/unistd.h:405: error: previous declaration of 'usleep' was here
../mgp.h:760: error: conflicting types for 'usleep'
/usr/include/unistd.h:405: error: previous declaration of 'usleep' was here

PKGBUILD:

# $Id:  $
# Contributor: forest76 <forestt@poczta.onet.pl>
pkgname=magicpoint
pkgver=1.10a
pkgrel=1
pkgdesc='X11 based presentation tool'
url='http://www.mew.org/mgp'
depends=('glibc' 'xfree86' 'freetype1')
source=("ftp://ftp.mew.org/pub/mgp/$pkgname-$pkgver.tar.gz")
build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    xmkmf || return 1
    #
    # Stupid hack, but avoid compile error
    #
    sed -i "s:extern void usleep://extern void usleep:g" 
    $startdir/src/$pkgname-$pkgver/mgp.h
    make Makefiles || return 1
    make || return 1
    make DESTDIR=$startdir/pkg install
    make DESTDIR=$startdir/pkg install.man
    }

Offline

Board footer

Powered by FluxBB