pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
smake: Imported Version 1.3
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By: micha
Date: Wed Sep 26 19:46:43 2018 +0200
Changeset: 95aa42e65520a7ddce63cd1c5dad7eceddc63768
Added Files:
smake/DESCR
smake/Makefile
smake/Makefile.common
smake/PLIST
smake/TODO
smake/distinfo
Log Message:
smake: Imported Version 1.3
Updated wip/bosh to share Makefile.common.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=95aa42e65520a7ddce63cd1c5dad7eceddc63768
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
smake/DESCR | 3 +++
smake/Makefile | 41 ++++++++++++++++++++++++++++++++++++++++
smake/Makefile.common | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
smake/PLIST | 4 ++++
smake/TODO | 12 ++++++++++++
smake/distinfo | 6 ++++++
6 files changed, 118 insertions(+)
diffs:
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..fcd7a530f0
--- /dev/null
+++ b/smake/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD$
+
+DISTNAME= schily-2018-09-04
+PKGNAME= smake-1.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
+
+.include "../../mk/bsd.prefs.mk"
+
+# Platform specific code (for sharing with other packages based on schilytools)
+.include "../../wip/smake/Makefile.common"
+
+SUBST_CLASSES+= man
+SUBST_STAGE.man= post-patch
+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} \
+ INS_BASE=${PREFIX} DEFMANBASE=. DESTDIR=${DESTDIR} install
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/smake/Makefile.common b/smake/Makefile.common
new file mode 100644
index 0000000000..ee193f40be
--- /dev/null
+++ b/smake/Makefile.common
@@ -0,0 +1,52 @@
+# $NetBSD$
+# used by wip/smake/Makefile
+# used by wip/bosh/Makefile
+
+# All packages based on the schilytools tarball should include this Makefile
+# fragment to inherit and share the same pkgsrc specific platform hacks.
+
+# 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
+# The following compilers are untested
+.elif !empty(PKGSRC_COMPILER:Micc)
+MAKE_FLAGS+= CCOM=icc
+.else
+MAKE_FLAGS+= CCOM=cc
+.endif
+
+pre-configure:
+
+# OS rules (including ones from old packages to not break what was there before)
+pre-configure:
+ set +e; cd ${WRKSRC}/RULES && \
+ for i in arm mipsel x86_64 sparc64 powerpc; \
+ do \
+ ${LN} -sf i386-netbsd-gcc.rul "$$i"-netbsd-gcc.rul; \
+ ${LN} -sf i386-netbsd-cc.rul "$$i"-netbsd-cc.rul; \
+ done
+ set +e; cd ${WRKSRC}/RULES && \
+ ${LN} -sf i586-linux-gcc.rul x86_64-linux-gcc.rul; \
+ ${LN} -sf i586-linux-cc.rul x86_64-linux-cc.rul; \
+ ${LN} -sf i386-freebsd-gcc.rul x86_64-freebsd-gcc.rul; \
+ ${LN} -sf i386-freebsd-cc.rul x86_64-freebsd-cc.rul; \
+ ${LN} -sf i386-freebsd-gcc.rul amd64-freebsd-gcc.rul; \
+ ${LN} -sf i386-freebsd-cc.rul amd64-freebsd-cc.rul; \
+ ${LN} -sf x86_64-netbsd-cc.rul amd64-openbsd-cc.rul; \
+ ${LN} -sf sun4-sunos5-cc.rul sun4v-sunos5-cc.rul; \
+ ${LN} -sf sun4-sunos5-gcc.rul sun4v-sunos5-gcc.rul; \
+ ${LN} -sf i386-darwin-clang.rul x86_64-darwin-clang.rul
+ set -e; cd ${WRKSRC}/RULES && \
+ for suffix in netbsd-clang.rul netbsd-cc.rul netbsd-gcc.rul; \
+ do \
+ if [ ! -f ${MACHINE}-$$suffix ]; then \
+ ${LN} -s i386-$$suffix ${MACHINE}-$$suffix; \
+ fi; \
+ done
+ set -e; cd ${WRKSRC}/RULES && \
+ if [ ! -f i386-netbsd-clang.rul ]; then \
+ ${SED} -e 's/cc-gcc.rul/cc-$$(C_ARCH).rul/' \
+ i386-netbsd-gcc.rul >i386-netbsd-clang.rul; \
+ fi
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..93cee2c90a
--- /dev/null
+++ b/smake/TODO
@@ -0,0 +1,12 @@
+[X] Provide Makefile.common for all other packages based on schilytools
+ All the platform specific code should be at a central location. This is
+ the right place because smake is the recommended make for schilytools.
+[ ] Add the current platform hacks from archivers/star
+[ ] Add the current platform hacks from sysutils/cdrtools
+[ ] Add smake as tool for use with USE_TOOLS
+[X] Test with gcc compiler
+[X] Test with clang compiler
+
+[ ] Test with Intel compiler
+[ ] Test commercial UNIX compilers
+[ ] Test with non-NetBSD operating systems
diff --git a/smake/distinfo b/smake/distinfo
new file mode 100644
index 0000000000..99ef37fb31
--- /dev/null
+++ b/smake/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (schily-2018-09-04.tar.bz2) = bc1f86abd2269261c004488ed4b7fd6384200857
+RMD160 (schily-2018-09-04.tar.bz2) = f565288e1da41277111593447a5f17bd9b129ff5
+SHA512 (schily-2018-09-04.tar.bz2) = c0a8f638c31534589cb3ca3e98ca611639ad817bb4ce7147d06c5c946f16b087073d6df28d0c6f8e24ff2a87c92e88e83a9b01620e6fa7bf1303804ca1c25a97
+Size (schily-2018-09-04.tar.bz2) = 4294348 bytes
Home |
Main Index |
Thread Index |
Old Index