Use the NetBSD and DragonFly makefiles for FreeBSD, OpenBSD, and Bitrig.

This commit is contained in:
dholland 2015-11-07 20:54:17 +00:00
parent b36d37ca4b
commit e5dfcecc1b

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2015/11/07 20:12:37 dholland Exp $
# $NetBSD: Makefile,v 1.5 2015/11/07 20:54:17 dholland Exp $
#
DISTNAME= libmicro-${LIBMICRO_VERSION}
@ -31,6 +31,11 @@ SUBST_STAGE.fix-arch= pre-configure
SUBST_FILES.fix-arch= Makefile bench.sh wrapper.sh
SUBST_SED.fix-arch= -e 's|@@MACHINE_ARCH@@|${MACHINE_ARCH}|'
post-patch:
cd ${WRKSRC} && ${LN} -s Makefile.NetBSD Makefile.OpenBSD
cd ${WRKSRC} && ${LN} -s Makefile.NetBSD Makefile.Bitrig
cd ${WRKSRC} && ${LN} -s Makefile.DragonFly Makefile.FreeBSD
post-build:
${SED} -e 's|@@DESTDIR@@|${DESTDIR}|' \
-e 's|@@PREFIX@@|${PREFIX}|' \