7bbdb1c16e
Features: * new feature "strtoi" for NetBSD function with the same name * new feature "strtou" for NetBSD function with the same name * new feature "reallocarr" for NetBSD function with the same name * new feature "macro". It provides NetBSD-style macro __dead, __pure, __UNCONST, __printflike, __constfunc, __always_inline, __aligned, __arraycount, MAX and MIN * "efun": add support for ereallocarr(3), estrtoi(3) and estrtou(3) Fixes: * imp.foreign_autotools.mk: add MAKE=${AT_MAKE} to environment This fixes ./configure when "make" executable is not available * CXXSTD: appropriate option is passed to the linker. This fixes failures with Sun C++ compiler. * examples/shquote/prog.c: fix segfault seen on Solaris-10 (incorrect use of getline(3)) mk-configure.7: * add missing documentation for features "reallocarray", "fparseln" and "vis" * minor fixes * CXXSTD: fix incorrect description Exit with error if generated config under ~/.mkcmake is older than system mk files. This situation potentially means that generated configs do not contain all required information about compiler. System-wide mk file for compiler settings has higher priority than files under ~/.mkcmake EXPORT_SYMBOLS: empty lines and comments started with '#' are ignored mkc_install: do not remove "$dst" before renaming "$dsttmp" to "$dst", it is just useless. Simplify the target "installdirs".
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.37 2021/04/08 18:57:48 cheusov Exp $
|
|
#
|
|
|
|
DISTNAME= mk-configure-0.37.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mk-configure/}
|
|
|
|
MAINTAINER= cheusov@NetBSD.org
|
|
HOMEPAGE= https://sourceforge.net/projects/mk-configure
|
|
COMMENT= Lightweight but powerful replacement for GNU autotools
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= bmake-[0-9]*:../../devel/bmake
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
BUILD_TARGET= all all-doc
|
|
INSTALL_TARGET= install install-doc
|
|
|
|
MAKE_PROGRAM= ${PREFIX}/bin/bmake
|
|
|
|
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR} \
|
|
SYSCONFDIR=${PKG_SYSCONFDIR} \
|
|
BMAKE=${PREFIX}/bin/bmake \
|
|
USE_AWK=${AWK:Q} \
|
|
USE_ID=${ID:Q}
|
|
|
|
PLIST_SRC+= ${WRKDIR}/PLIST-addon
|
|
PLIST_SRC+= PLIST
|
|
|
|
EGDIR= share/examples/mk-configure
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
TEST_TARGET= test
|
|
|
|
post-install:
|
|
${CP} -Rp ${WRKSRC}/examples/* ${DESTDIR}${PREFIX}/${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/presentation/*.pdf \
|
|
${DESTDIR}${PREFIX}/share/doc/mk-configure
|
|
${FIND} ${DESTDIR}${PREFIX}/share/mk-configure/mk | \
|
|
grep -E 'mkc_imp.(cc|cxx)' | \
|
|
${SED} 's;${DESTDIR}${PREFIX}/;;g' > ${WRKDIR}/PLIST-addon
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CHECK_PERMS_SKIP= */foobar.in */hello_world3.in */prog1.awk.in
|
|
|
|
.if ${OPSYS} != NetBSD && ${OPSYS} != FreeBSD && ${OPSYS} != OpenBSD && ${OPSYS} != DragonFly && ${OPSYS} != MirBSD
|
|
# non-BSD system
|
|
DEPENDS+= bmkdep-[0-9]*:../../devel/bmkdep
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|