wok-next view dosbox-mb/receipt @ rev 20669

vde2: up / fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 11 14:21:30 2018 +0300 (2018-05-11)
parents 4744ab6d2481
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dosbox-mb"
4 VERSION="6"
5 CATEGORY="system-tools"
6 SHORT_DESC="DOS-emulator that uses the SDL-library with network support."
7 INFO="http://home.arcor.de/h-a-l-9000/ne2kstuff/db_ne2000.html"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE$VERSION.tar.gz"
11 WEB_SITE="http://www.dosbox.com/"
12 WGET_URL="http://source.dosbox.com/mb$VERSION/$TARBALL"
13 TAGS="emulator dos vm86 8086"
15 DEPENDS="xorg-libX11 libsdl alsa-lib zlib mesa libpng16 libsdl-net libpcap"
16 BUILD_DEPENDS="xorg-libX11-dev libsdl-dev libsdl-net-dev freetype-dev \
17 libpng16-dev libpcap libpcap-dev automake autoconf libtool zlib-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|"printer.h".*|&\n#include <zlib.h>|' \
23 src/hardware/parport/printer.cpp
24 sed -i '/HAVE_REMOTE/d' src/hardware/ne2000.cpp
25 sed -i 's/define DOSBOX_DOS_INC_H/&\n#include <stddef.h>/' include/dos_inc.h
26 ./autogen.sh
27 ./configure \
28 --prefix=/usr \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/pixmaps \
39 $fs/usr/share/applications
40 cp -a $install/usr/bin $fs/usr
41 # Must be root to see the network interface
42 chmod 4755 $fs/usr/bin/dosbox
43 }