blob: 60eed14666ed753cc4323c19a0a6104601d58999 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgdesc='Omron LUNA-I/LUNA-88K, Sharp X68030, and NEWS NWS-1750 emulator'
pkgname=nono
pkgver=1.6.5
pkgrel=1
url=http://www.pastel-flower.jp/~isaki/nono
license=(custom)
arch=(x86_64)
depends=(alsa-lib libbsd libkqueue libslirp termcap wxwidgets-gtk3)
makedepends=(bmake freebsd-mk gettext)
source=("${url}/archive/${pkgname}-${pkgver}.tar.gz")
b2sums=('da2af4a441c3415e5dcdeb80f7d3e61a74d1812b6b11cf200812956b635e495b92e1d88fd7766db19819a1f51cc62cb6babc5508151aa2065d49b30e0c501039')
prepare ()
{
# The configure script searches for <kqueue/sys/event.h> instead of the
# regular location <sys/event.h> as used by the libkqueue package, so
# provide a local directory with the expected layout.
mkdir -p "${srcdir}/include/kqueue/"
ln -vsnf /usr/include/sys "${srcdir}/include/kqueue/sys"
}
build ()
{
cd "${pkgname}-${pkgver}"
./configure \
CPPFLAGS="${CPPFLAGS} -I${srcdir}/include" \
WX_CONFIG=/usr/bin/wx-config-gtk3 \
--prefix=/usr
# The configuration generated by autoconf does NOT include CPPFLAGS,
# so add the include directory for the mangled libkqueue headers now.
sed -i "/^C\(C\|XX\)=/s,$, -I${srcdir}/include," \
Makefile.cfg
echo 'CXXFLAGS+= -Wno-error=template-id-cdtor -Wno-error=deprecated-declarations' >> Makefile.cfg
bmake -DNOTEST -m/usr/share/mk-freebsd
}
package ()
{
cd "${pkgname}-${pkgver}"
bmake -DNOTEST -m/usr/share/mk-freebsd DESTDIR="${pkgdir}" install
install -Dm644 doc/nono-license.txt \
"${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
}
|