pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

smake: Update to release 2019-03-11



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Mon Mar 11 16:54:31 2019 +0100
Changeset:	83c9794b12f02a4bf62cbfa99918131529578549

Added Files:
	smake/COMMIT_MSG
	smake/DESCR
	smake/Makefile
	smake/Makefile.common
	smake/PLIST
	smake/TODO
	smake/distinfo

Log Message:
smake: Update to release 2019-03-11

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=83c9794b12f02a4bf62cbfa99918131529578549

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 smake/COMMIT_MSG      |  9 ++++++++
 smake/DESCR           |  3 +++
 smake/Makefile        | 45 +++++++++++++++++++++++++++++++++++++++
 smake/Makefile.common | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
 smake/PLIST           |  4 ++++
 smake/TODO            |  7 +++++++
 smake/distinfo        |  6 ++++++
 7 files changed, 132 insertions(+)

diffs:
diff --git a/smake/COMMIT_MSG b/smake/COMMIT_MSG
new file mode 100644
index 0000000000..2588c7038b
--- /dev/null
+++ b/smake/COMMIT_MSG
@@ -0,0 +1,9 @@
+Changelog
+=========
+
+Release 2019-02-18:
+- smake (psmake): a missing link to libschily/strnlen.c has been added.
+
+Release 2019-03-11:
+- psmake: cpfiles/lnfiles/rmlinks now contain a line for the new
+          include/schily/type_val.h
diff --git a/smake/DESCR b/smake/DESCR
new file mode 100644
index 0000000000..01683297a2
--- /dev/null
+++ b/smake/DESCR
@@ -0,0 +1,3 @@
+Schily make
+
+Highly portable UNIX make implementation written by Joerg Schilling.
diff --git a/smake/Makefile b/smake/Makefile
new file mode 100644
index 0000000000..1a0a3158be
--- /dev/null
+++ b/smake/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD$
+
+DISTNAME=	schily-2019-03-11
+PKGNAME=	smake-1.3
+PKGREVISION=	3
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=schilytools/}
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	michael.baeuerle%gmx.net@localhost
+COMMENT=	Highly portable UNIX make implementation
+LICENSE=	cddl-1.0
+
+MAKE_JOBS_SAFE=	no
+MAKE_FLAGS+=	GMAKE_NOWARN=true
+
+USE_TOOLS+=	gmake
+MAKE_FLAGS+=	DESTDIR=${DESTDIR} INS_BASE=${PREFIX} DEFMANBASE=. MANDIR=${PKGMANDIR}
+# Honor CPPFLAGS, CFLAGS and LDFLAGS
+MAKE_FLAGS+=	CPPOPTX=${CPPFLAGS:Q} COPTX=${CFLAGS:Q} LDOPTX=${LDFLAGS:Q}
+
+.include "../../mk/bsd.prefs.mk"
+
+# Platform specific code (for sharing with other packages based on schilytools)
+#.include "../../devel/smake/Makefile.common"
+.include "./Makefile.common"
+
+SUBST_CLASSES+=		man
+SUBST_STAGE.man=	pre-configure
+SUBST_FILES.man=	smake/smake.1
+SUBST_SED.man=		-e "s,/opt/schily/share/lib/smake/defaults.smk,${PREFIX}/share/lib/smake/defaults.smk,g"
+SUBST_MESSAGE.man=	Fix path for default rules in manpage.
+
+do-configure:
+	cd ${WRKSRC}/inc && ${MAKE_PROGRAM} ${MAKE_FLAGS}
+
+do-build:
+	cd ${WRKSRC}/libschily && ${MAKE_PROGRAM} ${MAKE_FLAGS}
+	cd ${WRKSRC}/smake && ${MAKE_PROGRAM} ${MAKE_FLAGS}
+
+# Documentation is in ${WRKSRC}/README.compile
+do-install:
+	cd ${WRKSRC}/smake && ${MAKE_PROGRAM} ${MAKE_FLAGS} install
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/smake/Makefile.common b/smake/Makefile.common
new file mode 100644
index 0000000000..f8224b696e
--- /dev/null
+++ b/smake/Makefile.common
@@ -0,0 +1,58 @@
+# $NetBSD$
+# used by archivers/star/Makefile
+# used by devel/smake/Makefile
+# used by shells/bosh/Makefile
+# used by shells/pbosh/Makefile
+
+# All packages based on the schilytools tarball should include this Makefile
+# fragment to inherit and share the same pkgsrc platform specific code.
+
+# Map PKGSRC_COMPILER to CCOM used by schilytools build system.
+.if !empty(PKGSRC_COMPILER:Mgcc)
+MAKE_FLAGS+=	CCOM=gcc
+.elif !empty(PKGSRC_COMPILER:Mclang)
+MAKE_FLAGS+=	CCOM=clang
+# Other compilers are currently untested, try to use them as cc
+.else
+MAKE_FLAGS+=	CCOM=cc
+.endif
+
+# OS rules
+# Some rules were copied from old packages (that are now part of schilytools
+# too) to not break what people have done in the past.
+pre-configure:
+	printf "Create OS rules...\n"
+	cd ${WRKSRC}/RULES && . ${WRKSRC}/RULES/MKLINKS
+	printf "Create pkgsrc OS rules...\n"
+	cd ${WRKSRC}/RULES && unset r ;					\
+	for i in arm mipsel x86_64 sparc64 powerpc ;			\
+	do								\
+		r="$$r i386-netbsd-gcc.rul@$$i-netbsd-gcc.rul" ;	\
+		r="$$r i386-netbsd-cc.rul@$$i-netbsd-cc.rul" ;		\
+	done ;								\
+	r="$$r i386-freebsd-gcc.rul@x86_64-freebsd-gcc.rul" ;		\
+	r="$$r i386-freebsd-cc.rul@x86_64-freebsd-cc.rul" ;		\
+	for i in netbsd-clang.rul netbsd-cc.rul netbsd-gcc.rul ;	\
+	do								\
+		r="$$r i386-$$i@${MACHINE}-$$i" ;			\
+	done ;								\
+									\
+	for i in $$r ;							\
+	do								\
+		existing=`printf "%s\\n" $$i | ${SED} -e 's/@.*//'` ;	\
+		target=`printf "%s\\n" $$i | ${SED} -e 's/.*@//'` ;	\
+		printf "%s " "$$target";				\
+		if ${TEST} -e "$$existing" ; then : ;			\
+		else							\
+			printf "(Link target %s not present)\n"		\
+				"$$existing";				\
+			continue ;					\
+		fi;							\
+		if ${TEST} -e "$$target" ;				\
+		then							\
+			printf "(already present)\n" ;			\
+		else							\
+			${LN} -s "$$existing" "$$target" ;		\
+			printf "(created)\n" ;				\
+		fi;							\
+	done
diff --git a/smake/PLIST b/smake/PLIST
new file mode 100644
index 0000000000..6023f6f154
--- /dev/null
+++ b/smake/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/smake
+man/man1/smake.1
+share/lib/smake/defaults.smk
diff --git a/smake/TODO b/smake/TODO
new file mode 100644
index 0000000000..6a592a0074
--- /dev/null
+++ b/smake/TODO
@@ -0,0 +1,7 @@
+[X] Bump PKGREVISION
+[X] Remove rule i386-netbsd-clang.rul
+    (now present from upstream build system)
+[X] Test NetBSD/clang again
+    Still working
+[ ] Makefile: After import switch back to:
+    .include "../../devel/smake/Makefile.common"
diff --git a/smake/distinfo b/smake/distinfo
new file mode 100644
index 0000000000..87c5f79cd9
--- /dev/null
+++ b/smake/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (schily-2019-03-11.tar.bz2) = e3441506ec8bfaed1e55e09208d7054c728c8f57
+RMD160 (schily-2019-03-11.tar.bz2) = 49a4d8dc73ab1c1a66db655470c37d29c77d24f1
+SHA512 (schily-2019-03-11.tar.bz2) = 04f289c08b2cd6c1954600796798642ac6228dd61fbb37abeff400cbb3a30eeb481c8b6e51fa77dc506329947a4dd04021fe553516286055d586a31834e4cd98
+Size (schily-2019-03-11.tar.bz2) = 4289082 bytes


Home | Main Index | Thread Index | Old Index