pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gmake: add 4.3 package based on the one from pkgsrc in June 2020
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <tk%giga.or.at@localhost>
Pushed By: wiz
Date: Thu Apr 29 16:06:26 2021 +0200
Changeset: 2b422b6377d13070dc5c5c58ab840b17b29af7b3
Modified Files:
Makefile
Added Files:
gmake/DESCR
gmake/Makefile
gmake/PLIST
gmake/distinfo
gmake/options.mk
gmake/patches/patch-af
gmake/patches/patch-src_hash.c
Log Message:
gmake: add 4.3 package based on the one from pkgsrc in June 2020
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2b422b6377d13070dc5c5c58ab840b17b29af7b3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
gmake/DESCR | 10 ++++++++++
gmake/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++
gmake/PLIST | 36 ++++++++++++++++++++++++++++++++++++
gmake/distinfo | 8 ++++++++
gmake/options.mk | 25 +++++++++++++++++++++++++
gmake/patches/patch-af | 17 +++++++++++++++++
gmake/patches/patch-src_hash.c | 15 +++++++++++++++
8 files changed, 153 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 9733f0c392..52ed4be0d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1130,6 +1130,7 @@ SUBDIR+= glm
SUBDIR+= glulxe
SUBDIR+= glusterfs
SUBDIR+= gm2calc
+SUBDIR+= gmake
SUBDIR+= gmap
SUBDIR+= gmetadom
SUBDIR+= gmic
diff --git a/gmake/DESCR b/gmake/DESCR
new file mode 100644
index 0000000000..e94afa8ecc
--- /dev/null
+++ b/gmake/DESCR
@@ -0,0 +1,10 @@
+Make is a tool which controls the generation of executables and
+other non-source files of a program from the program's source files.
+
+Make gets its knowledge of how to build your program from a file
+called the makefile, which lists each of the non-source files and
+how to compute it from other files. When you write a program, you
+should write a makefile for it, so that it is possible to use Make
+to build and install the program.
+
+This is the GNU version of make.
diff --git a/gmake/Makefile b/gmake/Makefile
new file mode 100644
index 0000000000..e9069639d7
--- /dev/null
+++ b/gmake/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.110 2020/06/12 14:48:38 sevan Exp $
+
+DISTNAME= make-4.3
+PKGNAME= g${DISTNAME}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU:=make/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.gnu.org/software/make/make.html
+COMMENT= GNU version of 'make' utility
+LICENSE= gnu-gpl-v3
+
+USE_FEATURES= snprintf
+
+GNU_CONFIGURE= yes
+TEXINFO_REQD+= 4.0
+INFO_FILES= yes
+
+# NOTE: the 'test' target requires perl, but since gmake does
+# not otherwise require it, perl is not listed as an explicit
+# dependency
+TEST_TARGET= check
+
+CONFIGURE_ARGS+= --program-prefix=g
+
+# workaround for broken strndup
+CONFIGURE_ARGS.MirBSD+= ac_cv_func_strndup=no
+
+# XXX: Do not install gmake setgid and do not override the owner group
+# XXX: based on possible /dev/kmem permissions.
+CONFIGURE_ARGS+= ac_cv_func_getloadavg_setgid=no
+
+AUTO_MKDIRS= yes
+
+.include "options.mk"
+
+post-install:
+ ${LN} -sf ${PREFIX}/bin/gmake ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/make
+ ${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/gmake.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/make.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/gmake/PLIST b/gmake/PLIST
new file mode 100644
index 0000000000..99c3cbfcb1
--- /dev/null
+++ b/gmake/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.14 2020/06/12 15:22:17 sevan Exp $
+bin/gmake
+gnu/bin/make
+gnu/man/man1/make.1
+include/gnumake.h
+info/make.info
+man/man1/gmake.1
+${PLIST.nls}share/locale/be/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/bg/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/cs/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/da/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/es/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/fi/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/ga/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/gl/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/he/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/hr/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/id/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/it/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/ja/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/ko/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/lt/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/nl/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/pl/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/pt/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/pt_BR/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/ru/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/sr/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/tr/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/uk/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/vi/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/zh_CN/LC_MESSAGES/make.mo
+${PLIST.nls}share/locale/zh_TW/LC_MESSAGES/make.mo
diff --git a/gmake/distinfo b/gmake/distinfo
new file mode 100644
index 0000000000..d1186b5890
--- /dev/null
+++ b/gmake/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.38 2020/06/12 15:22:17 sevan Exp $
+
+SHA1 (make-4.3.tar.gz) = 3c40e5b49b893dbb14f1e2e1f8fe89b7298cc51d
+RMD160 (make-4.3.tar.gz) = 2f2d49f85200433a7a5119bd9d56758a3033c2c0
+SHA512 (make-4.3.tar.gz) = 9a1185cc468368f4ec06478b1cfa343bf90b5cd7c92c0536567db0315b0ee909af53ecce3d44cfd93dd137dbca1ed13af5713e8663590c4fdd21ea635d78496b
+Size (make-4.3.tar.gz) = 2317073 bytes
+SHA1 (patch-af) = 8ff060ecba9d664044eabd98741253881d8c9bbe
+SHA1 (patch-src_hash.c) = 755de04a4f9a63f5bfc2520026344d6dc8654992
diff --git a/gmake/options.mk b/gmake/options.mk
new file mode 100644
index 0000000000..835ce9fb2a
--- /dev/null
+++ b/gmake/options.mk
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.9 2020/03/14 13:28:57 tnn Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gmake
+PKG_SUPPORTED_OPTIONS= nls
+PKG_SUGGESTED_OPTIONS= nls
+
+PLIST_VARS+= nls
+
+.include "../../mk/bsd.options.mk"
+
+# Build NLS support only if a native implementation of gettext is available
+# to avoid a circular dependency (gmake->gettext-tools->ncurses->gmake).
+.include "../../devel/gettext-lib/builtin.mk"
+.if !empty(PKG_OPTIONS:Mnls) && \
+ !empty(USE_BUILTIN.gettext:M[yY][eE][sS]) && \
+ !empty(TOOLS_PLATFORM.msgfmt:U)
+USE_PKGLOCALEDIR= yes
+USE_TOOLS+= msgfmt
+. include "../../devel/gettext-lib/buildlink3.mk"
+PLIST.nls= yes
+.else
+CONFIGURE_ARGS+= --without-libintl-prefix
+CONFIGURE_ARGS+= --without-libiconv-prefix
+CONFIGURE_ARGS+= --disable-nls
+.endif
diff --git a/gmake/patches/patch-af b/gmake/patches/patch-af
new file mode 100644
index 0000000000..103bf7bc35
--- /dev/null
+++ b/gmake/patches/patch-af
@@ -0,0 +1,17 @@
+$NetBSD: patch-af,v 1.5 2014/10/12 14:58:27 wiz Exp $
+
+Make it clear that this is GNU make and not BSD make.
+
+--- doc/make.info.orig 2014-10-05 16:25:47.000000000 +0000
++++ doc/make.info
+@@ -24,8 +24,9 @@ Manual', for GNU 'make' version 4.1.
+ developing GNU and promoting software freedom."
+ INFO-DIR-SECTION Software development
+ START-INFO-DIR-ENTRY
+-* Make: (make). Remake files automatically.
++* GNU Make: (make). Remake files automatically.
+ END-INFO-DIR-ENTRY
++
+
+
+ Indirect:
diff --git a/gmake/patches/patch-src_hash.c b/gmake/patches/patch-src_hash.c
new file mode 100644
index 0000000000..600a3a6ac5
--- /dev/null
+++ b/gmake/patches/patch-src_hash.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_hash.c,v 1.2 2020/06/12 15:22:18 sevan Exp $
+
+PCC says: hash.c:326: error: Constant "4294967295" is out of range
+
+--- src/hash.c.orig 2020-06-12 14:40:24.838680043 +0000
++++ src/hash.c
+@@ -321,7 +321,7 @@ round_up_2 (unsigned long n)
+ n |= (n >> 8);
+ n |= (n >> 16);
+
+-#if !defined(HAVE_LIMITS_H) || ULONG_MAX > 4294967295
++#if !defined(HAVE_LIMITS_H) || ULONG_MAX > 4294967295ul
+ /* We only need this on systems where unsigned long is >32 bits. */
+ n |= (n >> 32);
+ #endif
Home |
Main Index |
Thread Index |
Old Index