summaryrefslogtreecommitdiff
path: root/sysutils/gpart
diff options
context:
space:
mode:
authorwiedi <wiedi>2014-02-16 16:59:37 +0000
committerwiedi <wiedi>2014-02-16 16:59:37 +0000
commit4deee361445ce8eefae07a6b3543002cfee6703d (patch)
tree9e87604a665dc0af617335588ed8747ef65075fd /sysutils/gpart
parentde8ad8d7469a0a66370fafd3cf356de8cf7832b8 (diff)
downloadpkgsrc-4deee361445ce8eefae07a6b3543002cfee6703d.tar.gz
Define int types on SunOS
Diffstat (limited to 'sysutils/gpart')
-rw-r--r--sysutils/gpart/Makefile4
-rw-r--r--sysutils/gpart/distinfo4
-rw-r--r--sysutils/gpart/patches/patch-make.defs14
-rw-r--r--sysutils/gpart/patches/patch-src_Makefile14
4 files changed, 34 insertions, 2 deletions
diff --git a/sysutils/gpart/Makefile b/sysutils/gpart/Makefile
index d17ce7a03f6..014adede303 100644
--- a/sysutils/gpart/Makefile
+++ b/sysutils/gpart/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2012/10/23 19:51:05 asau Exp $
+# $NetBSD: Makefile,v 1.16 2014/02/16 16:59:37 wiedi Exp $
DISTNAME= gpart-0.1h
PKGREVISION= 1
@@ -12,6 +12,8 @@ LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
+CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t
+
# Doesn't work on 1.4.x due to problems with dlopen
NOT_FOR_PLATFORM= NetBSD-1.4*-*
diff --git a/sysutils/gpart/distinfo b/sysutils/gpart/distinfo
index 2d4dcbd845c..d28a402b360 100644
--- a/sysutils/gpart/distinfo
+++ b/sysutils/gpart/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2013/01/11 13:31:05 joerg Exp $
+$NetBSD: distinfo,v 1.10 2014/02/16 16:59:37 wiedi Exp $
SHA1 (gpart-0.1h.tar.gz) = 23f66162e1d85977ea43bfe6b5e5bff0ad2d566e
RMD160 (gpart-0.1h.tar.gz) = 1cdfb1779801ee8755b05975ced24441a3a2b639
@@ -9,3 +9,5 @@ SHA1 (patch-ac) = 15a57dd0e9b57c7a64869b43df37a5b2493e77d2
SHA1 (patch-ad) = e53ca24886c072d514802e7dca7a79da2e1916d0
SHA1 (patch-ae) = d02258c0a702156a6be9370f4b60c59a1109afeb
SHA1 (patch-af) = a201375f69b1581259a2bc287d7ce5ab7c7dafe4
+SHA1 (patch-make.defs) = a5bea1d59e7061c01c311212461e0a690d08d796
+SHA1 (patch-src_Makefile) = bc4a1f4ce91b4bb02dbd53414adb38b14f8deb8a
diff --git a/sysutils/gpart/patches/patch-make.defs b/sysutils/gpart/patches/patch-make.defs
new file mode 100644
index 00000000000..18e095bea12
--- /dev/null
+++ b/sysutils/gpart/patches/patch-make.defs
@@ -0,0 +1,14 @@
+$NetBSD: patch-make.defs,v 1.1 2014/02/16 16:59:37 wiedi Exp $
+
+don't overwrite CFLAGS
+--- make.defs.orig 2001-01-29 19:17:12.000000000 +0000
++++ make.defs
+@@ -2,7 +2,7 @@
+ #
+ #
+ CC = gcc
+-CFLAGS = -Wall -O2 -pedantic
++#CFLAGS = -Wall -O2 -pedantic
+ LDFLAGS =
+ MAKEDEP = gcc -M
+ INSTALL = install
diff --git a/sysutils/gpart/patches/patch-src_Makefile b/sysutils/gpart/patches/patch-src_Makefile
new file mode 100644
index 00000000000..72b23f736c1
--- /dev/null
+++ b/sysutils/gpart/patches/patch-src_Makefile
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_Makefile,v 1.1 2014/02/16 16:59:37 wiedi Exp $
+
+pass CFLAGS
+--- src/Makefile.orig 2001-01-30 17:01:08.000000000 +0000
++++ src/Makefile
+@@ -29,7 +29,7 @@ allsrc=Makefile $(src) $(hdr)
+ all: $(prg)
+
+ $(prg): $(obj)
+- $(CC) -o $@ $(LDFLAGS) $(obj) $(LIBS)
++ $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(obj) $(LIBS)
+
+ install: $(prg)
+ $(INSTALL) -d $(bindir)