mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
mg: update to 20220614.
Add missing libmd makedepend, fix compilation issue, and use the appropriate build style.
This commit is contained in:
parent
a37f74d4ea
commit
2207744e4f
1 changed files with 5 additions and 15 deletions
|
@ -1,30 +1,20 @@
|
||||||
# Template file for 'mg'
|
# Template file for 'mg'
|
||||||
pkgname=mg
|
pkgname=mg
|
||||||
version=20210314
|
version=20220614
|
||||||
revision=1
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
make_install_args="mandir=/usr/share/man"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libbsd-devel ncurses-devel"
|
makedepends="libbsd-devel libmd-devel ncurses-devel"
|
||||||
short_desc="Micro GNU/emacs"
|
short_desc="Micro GNU/emacs"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="Public Domain"
|
license="Public Domain"
|
||||||
homepage="https://github.com/hboetes/mg"
|
homepage="https://github.com/hboetes/mg"
|
||||||
distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
|
distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
|
||||||
checksum=6820e76a0e27d9a744624d421b3b30b0030140c2a817df1310b25c3abe397106
|
checksum=d3bc16baba82457c4f60ecd258762ee2ed848064f79729fe92e29bfd181af121
|
||||||
|
|
||||||
CFLAGS="-DTCSASOFT=0"
|
CFLAGS="-DTCSASOFT=0"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) CFLAGS+=" -DREG_STARTEND=0";;
|
*-musl) CFLAGS+=" -DREG_STARTEND=0";;
|
||||||
esac
|
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}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue