diff options
author | cheusov <cheusov@pkgsrc.org> | 2014-02-04 02:53:01 +0000 |
---|---|---|
committer | cheusov <cheusov@pkgsrc.org> | 2014-02-04 02:53:01 +0000 |
commit | da8df39838095c1837c6ae4fa5fe6c4ca3a945bf (patch) | |
tree | 56410774978cdb61ec302db2ce2a98bd289b2fab /devel | |
parent | 9c8490b3082599c621abebd01a8220ecb20f0743 (diff) | |
download | pkgsrc-da8df39838095c1837c6ae4fa5fe6c4ca3a945bf.tar.gz |
Update mk-configure to 0.26.0
"Features" framework was implemented (variable MKC_FEATURES). In
general, a feature is something that has problems with
portability. This may be a function name or header missing on some
platforms, for example. What developer needs to do is to add
FEATURENAME to MKC_FEATURES variable and add #include
<mkc_FEATURENAME.h> where it is needed. Internally, system
requiremets are checked in the automatically included
mkc_imp.f_FEATURENAME.mk file and all required actions (includes,
define checks etc.) are made in mkc_FEATURENAME.h header file.
Currently the following features are provided: strlcat, strlcpy,
getline, libm, libdl, RB, SPLAY, SLIST, SIMPLEQ, STAILQ, LIST, TAILQ
and CIRCLEQ. Original idea was stolen from pkgsrc.
mkc_imp.pkg-config.mk:
- New variables MKC_CHECK_PKGCONFIG and MKC_REQUIRE_PKGCONFIG were
introduced. They work just like other MKC_{CHECK,REQUIRE}_*
variables from mkc.configure.mk. Thanks to Andrew Shadura for
pushing me to this direction.
mkc.configure.mk:
- MKC_{CHECK,REQUIRE}_PROTOTYPES were introduced. With their help
mk-configure is able to check C function prototypes. This
feature was proposed by Andrew Shadura.
If ${MKC_CACHEDIR} does not exit, it is automatically created.
${SRCTOP}/Makefile.common is included by all subprojects if it
exists. It can be used as a replacement or addition for
../Makefile.inc.
Valiables SRCDIR_<dir>, SRC_PATHADD, MKC_SOURCE_DIR, LDFLAGS0 and
LDADD0 were introduced.
Wrongly named builtin 'endianess' was renamed to 'endianness'.
Thanks to Andew Shadura for the report and fix!
mk-configure itself is now 2-level project.
This allows me to run an arbitrary regression test like the following
bmake test-examples/hello_world
Hurray! :-)
mkc.subprj.mk:
- Now it works correctly if NOSUBDIR is not empty.
Also, NOSUBDIR affects NODEPS and therefore the dependency graph.
- New target "print-deps" that outputs the dependency graph was
introduced.
-O is added to CFLAGS if USE_FORT==yes, seen on Linux/ppc64/gcc
Documentation: clean-ups, grammar fixes, minor improvements.
Fix. Some @@ patterns in mk-configure.7 should not be replaced with
directories. Thanks to Andrew Shadura for the report!
This release was successfully tested on the following platforms:
NetBSD-6.1/amd64, FreeBSD-8.3/amd64, OpenBSD-{4.9,5.3}/x86,
DragonFlyBSD-3.4/x86, Linux/{x86,amd64}, SunOS-5.10/sparc,
SunOS-5.11/x86.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/mk-configure/Makefile | 5 | ||||
-rw-r--r-- | devel/mk-configure/PLIST | 71 | ||||
-rw-r--r-- | devel/mk-configure/distinfo | 8 |
3 files changed, 74 insertions, 10 deletions
diff --git a/devel/mk-configure/Makefile b/devel/mk-configure/Makefile index 14ca6956ca1..cdaafb10aa6 100644 --- a/devel/mk-configure/Makefile +++ b/devel/mk-configure/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.15 2014/01/01 23:59:27 cheusov Exp $ +# $NetBSD: Makefile,v 1.16 2014/02/04 02:53:01 cheusov Exp $ # -DISTNAME= mk-configure-0.25.0 +DISTNAME= mk-configure-0.26.0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mk-configure/} \ http://mova.org/~cheusov/pub/mk-configure/ @@ -32,6 +32,7 @@ TEST_TARGET= test post-install: cp -Rp ${WRKSRC}/examples/* ${DESTDIR}${PREFIX}/${EGDIR} + cp ${WRKSRC}/presentation/*.pdf ${DESTDIR}${PREFIX}/share/doc/mk-configure .include "../../mk/bsd.prefs.mk" diff --git a/devel/mk-configure/PLIST b/devel/mk-configure/PLIST index 4e8a8a3abe9..999f70a37ac 100644 --- a/devel/mk-configure/PLIST +++ b/devel/mk-configure/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.6 2014/01/01 23:59:27 cheusov Exp $ +@comment $NetBSD: PLIST,v 1.7 2014/02/04 02:53:01 cheusov Exp $ bin/mkc_check_common.sh bin/mkc_check_compiler bin/mkc_check_custom @@ -25,8 +25,18 @@ share/doc/mk-configure/LICENSE share/doc/mk-configure/NEWS share/doc/mk-configure/README share/doc/mk-configure/TODO -share/examples/mk-configure/Makefile +share/doc/mk-configure/presentation.pdf share/examples/mk-configure/Makefile.inc +share/examples/mk-configure/hello_RBTREE/Makefile +share/examples/mk-configure/hello_RBTREE/expect.out +share/examples/mk-configure/hello_RBTREE/hello_RBTREE.c +share/examples/mk-configure/hello_RBTREE/input.in +share/examples/mk-configure/hello_RBTREE/test.mk +share/examples/mk-configure/hello_SLIST/Makefile +share/examples/mk-configure/hello_SLIST/expect.out +share/examples/mk-configure/hello_SLIST/hello_SLIST.c +share/examples/mk-configure/hello_SLIST/input.in +share/examples/mk-configure/hello_SLIST/test.mk share/examples/mk-configure/hello_TARGETS/Makefile share/examples/mk-configure/hello_TARGETS/Makefile.inc share/examples/mk-configure/hello_TARGETS/expect.out @@ -124,6 +134,10 @@ share/examples/mk-configure/hello_glib2/Makefile share/examples/mk-configure/hello_glib2/expect.out share/examples/mk-configure/hello_glib2/hello_glib2.c share/examples/mk-configure/hello_glib2/test.mk +share/examples/mk-configure/hello_iconv/Makefile +share/examples/mk-configure/hello_iconv/expect.out +share/examples/mk-configure/hello_iconv/hello_iconv.c +share/examples/mk-configure/hello_iconv/test.mk share/examples/mk-configure/hello_lex/Makefile share/examples/mk-configure/hello_lex/expect.out share/examples/mk-configure/hello_lex/hello_lex.l @@ -209,8 +223,19 @@ share/examples/mk-configure/hello_strlcpy/hello.c share/examples/mk-configure/hello_strlcpy/input.in share/examples/mk-configure/hello_strlcpy/strlcpy.c share/examples/mk-configure/hello_strlcpy/test.mk +share/examples/mk-configure/hello_strlcpy2/Makefile +share/examples/mk-configure/hello_strlcpy2/expect.out +share/examples/mk-configure/hello_strlcpy2/hello.c +share/examples/mk-configure/hello_strlcpy2/input.in +share/examples/mk-configure/hello_strlcpy2/missing/getline.c +share/examples/mk-configure/hello_strlcpy2/missing/strlcpy.c +share/examples/mk-configure/hello_strlcpy2/test.mk +share/examples/mk-configure/hello_strlcpy3/Makefile +share/examples/mk-configure/hello_strlcpy3/expect.out +share/examples/mk-configure/hello_strlcpy3/hello.c +share/examples/mk-configure/hello_strlcpy3/input.in +share/examples/mk-configure/hello_strlcpy3/test.mk share/examples/mk-configure/hello_subdirs/Makefile -share/examples/mk-configure/hello_subdirs/Makefile.inc share/examples/mk-configure/hello_subdirs/prog1/Makefile share/examples/mk-configure/hello_subdirs/prog1/expect.out share/examples/mk-configure/hello_subdirs/prog1/prog1.awk @@ -252,6 +277,10 @@ share/examples/mk-configure/hello_yacc/calc.y share/examples/mk-configure/hello_yacc/expect.out share/examples/mk-configure/hello_yacc/input.txt share/examples/mk-configure/hello_yacc/test.mk +share/examples/mk-configure/pkgconfig3/Makefile +share/examples/mk-configure/pkgconfig3/expect.out +share/examples/mk-configure/pkgconfig3/pkgconfig3.c +share/examples/mk-configure/pkgconfig3/test.mk share/examples/mk-configure/subprojects/Makefile share/examples/mk-configure/subprojects/expect.out share/examples/mk-configure/subprojects/hello/Makefile @@ -320,11 +349,29 @@ share/examples/mk-configure/tools2/tools/prog3/Makefile share/examples/mk-configure/tools2/tools/prog3/prog3.c share/examples/mk-configure/tools2/tools/prog4/Makefile share/examples/mk-configure/tools2/tools/prog4/prog4.c -share/mk-configure/custom/endianess +share/mk-configure/custom/endianness share/mk-configure/custom/prog_bison share/mk-configure/custom/prog_flex share/mk-configure/custom/prog_gawk share/mk-configure/custom/prog_gm4 +share/mk-configure/features/getline/getline.c +share/mk-configure/features/mkc_CIRCLEQ.h +share/mk-configure/features/mkc_LIST.h +share/mk-configure/features/mkc_RB.h +share/mk-configure/features/mkc_SIMPLEQ.h +share/mk-configure/features/mkc_SLIST.h +share/mk-configure/features/mkc_SPLAY.h +share/mk-configure/features/mkc_STAILQ.h +share/mk-configure/features/mkc_TAILQ.h +share/mk-configure/features/mkc_getline.h +share/mk-configure/features/mkc_libdl.h +share/mk-configure/features/mkc_libm.h +share/mk-configure/features/mkc_strlcat.h +share/mk-configure/features/mkc_strlcpy.h +share/mk-configure/features/netbsd_sys_queue.h +share/mk-configure/features/netbsd_sys_tree.h +share/mk-configure/features/strlcat/strlcat.c +share/mk-configure/features/strlcpy/strlcpy.c share/mkc-mk/configure.mk share/mkc-mk/mkc.configure.mk share/mkc-mk/mkc.files.mk @@ -339,7 +386,22 @@ share/mkc-mk/mkc.subdir.mk share/mkc-mk/mkc.subprj.mk share/mkc-mk/mkc.subprjs.mk share/mkc-mk/mkc_imp.arch.mk +share/mkc-mk/mkc_imp.checkprogs.mk +share/mkc-mk/mkc_imp.conf-final.mk share/mkc-mk/mkc_imp.dep.mk +share/mkc-mk/mkc_imp.f_CIRCLEQ.mk +share/mkc-mk/mkc_imp.f_LIST.mk +share/mkc-mk/mkc_imp.f_RB.mk +share/mkc-mk/mkc_imp.f_SIMPLEQ.mk +share/mkc-mk/mkc_imp.f_SLIST.mk +share/mkc-mk/mkc_imp.f_SPLAY.mk +share/mkc-mk/mkc_imp.f_STAILQ.mk +share/mkc-mk/mkc_imp.f_TAILQ.mk +share/mkc-mk/mkc_imp.f_getline.mk +share/mkc-mk/mkc_imp.f_libdl.mk +share/mkc-mk/mkc_imp.f_libm.mk +share/mkc-mk/mkc_imp.f_strlcat.mk +share/mkc-mk/mkc_imp.f_strlcpy.mk share/mkc-mk/mkc_imp.files.mk share/mkc-mk/mkc_imp.final.mk share/mkc-mk/mkc_imp.inc.mk @@ -357,6 +419,7 @@ share/mkc-mk/mkc_imp.platform.sys.mk share/mkc-mk/mkc_imp.pod.mk share/mkc-mk/mkc_imp.preinit.mk share/mkc-mk/mkc_imp.prog.mk +share/mkc-mk/mkc_imp.rules.mk share/mkc-mk/mkc_imp.scripts.mk share/mkc-mk/mkc_imp.subprj.mk share/mkc-mk/mkc_imp.vars.mk diff --git a/devel/mk-configure/distinfo b/devel/mk-configure/distinfo index 11c18681b7b..e62cb3037ba 100644 --- a/devel/mk-configure/distinfo +++ b/devel/mk-configure/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.10 2014/01/01 23:59:27 cheusov Exp $ +$NetBSD: distinfo,v 1.11 2014/02/04 02:53:01 cheusov Exp $ -SHA1 (mk-configure-0.25.0.tar.gz) = 06736b3fb45e1810ba494a1e8f9b048a89354794 -RMD160 (mk-configure-0.25.0.tar.gz) = ad727b762285166fccde5809c453bee937768104 -Size (mk-configure-0.25.0.tar.gz) = 252755 bytes +SHA1 (mk-configure-0.26.0.tar.gz) = 218816922e7ddbb7838286cdda0e1584b281bd9b +RMD160 (mk-configure-0.26.0.tar.gz) = 83cc6bf2845b01186fd8d544247983f36891dec1 +Size (mk-configure-0.26.0.tar.gz) = 274771 bytes |