30 lines
865 B
Bash
30 lines
865 B
Bash
# Template file for 'mg'
|
|
pkgname=mg
|
|
version=20160905
|
|
revision=1
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libbsd-devel ncurses-devel"
|
|
homepage="http://homepage.boetes.org/software/mg"
|
|
short_desc="Micro GNU/emacs"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="Public Domain"
|
|
distfiles="$homepage/mg-$version.tar.gz"
|
|
checksum=72c14476f98e341a01520f09ab8dfdd52663498d9dc14d0831c31697a08b8349
|
|
|
|
CFLAGS="-DTCSASOFT=0"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CFLAGS+=" -DREG_STARTEND=0";;
|
|
esac
|
|
|
|
do_configure() {
|
|
sed -i "s,\(BSD_CPPFLAGS:=\).*,\1 -isystem ${XBPS_CROSS_BASE}/usr/include/bsd -DLIBBSD_OVERLAY,g" GNUmakefile
|
|
sed -i "s,\(BSD_LIBS:=\).*,\1 -lbsd,g" GNUmakefile
|
|
}
|
|
do_build() {
|
|
make CC="$CC" CFLAGS="$CFLAGS" prefix=/usr ${makejobs}
|
|
}
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
make install prefix=/usr bindir=/usr/bin mandir=/usr/share/man DESTDIR=${DESTDIR}
|
|
}
|