pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/smake devel/smake: import smake-1.3nb2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ab791cef6c7
branches:  trunk
changeset: 387167:1ab791cef6c7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Nov 10 19:49:47 2018 +0000

description:
devel/smake: import smake-1.3nb2

Packaged for wip by Michael B?uerle.

Schily make

Highly portable UNIX make implementation written by Joerg Schilling.

diffstat:

 devel/smake/DESCR           |   3 ++
 devel/smake/Makefile        |  44 ++++++++++++++++++++++++++++++++
 devel/smake/Makefile.common |  61 +++++++++++++++++++++++++++++++++++++++++++++
 devel/smake/PLIST           |   4 ++
 devel/smake/distinfo        |   6 ++++
 5 files changed, 118 insertions(+), 0 deletions(-)

diffs (138 lines):

diff -r 87801b143356 -r 1ab791cef6c7 devel/smake/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/smake/DESCR Sat Nov 10 19:49:47 2018 +0000
@@ -0,0 +1,3 @@
+Schily make
+
+Highly portable UNIX make implementation written by Joerg Schilling.
diff -r 87801b143356 -r 1ab791cef6c7 devel/smake/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/smake/Makefile      Sat Nov 10 19:49:47 2018 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2018/11/10 19:49:47 wiz Exp $
+
+DISTNAME=      schily-2018-10-30
+PKGNAME=       smake-1.3
+PKGREVISION=   2
+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"
+
+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 -r 87801b143356 -r 1ab791cef6c7 devel/smake/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/smake/Makefile.common       Sat Nov 10 19:49:47 2018 +0000
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile.common,v 1.1 2018/11/10 19:49:47 wiz Exp $
+# 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" ;             \
+       ${SED} -e 's/cc-gcc.rul/cc-$$(C_ARCH).rul/'                     \
+                i386-netbsd-gcc.rul >pkgsrc_i386-netbsd-clang.rul ;    \
+       r="$$r pkgsrc_i386-netbsd-clang.rul%i386-netbsd-clang.rul@localhost" ;  \
+       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 -r 87801b143356 -r 1ab791cef6c7 devel/smake/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/smake/PLIST Sat Nov 10 19:49:47 2018 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/10 19:49:47 wiz Exp $
+bin/smake
+man/man1/smake.1
+share/lib/smake/defaults.smk
diff -r 87801b143356 -r 1ab791cef6c7 devel/smake/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/smake/distinfo      Sat Nov 10 19:49:47 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/11/10 19:49:47 wiz Exp $
+
+SHA1 (schily-2018-10-30.tar.bz2) = 2c70cd99d732c70193577d61793c32399fcc7378
+RMD160 (schily-2018-10-30.tar.bz2) = f5a843cde89f3e5d54b1925da288fab97990d3eb
+SHA512 (schily-2018-10-30.tar.bz2) = 72765d11eff52f744a707605a53365da69037c3d982c7b8f4cee98f109f856ee28af3420f63c3fe5a7890649c4eb0fa4dd69d367b7ec41026f288d6237c98d96
+Size (schily-2018-10-30.tar.bz2) = 4311065 bytes



Home | Main Index | Thread Index | Old Index