Not MAKE_JOBS_SAFE. Needs -fPIC.

This commit is contained in:
joerg 2009-07-06 22:35:22 +00:00
parent bf523203d5
commit 9b3e96e186
3 changed files with 17 additions and 6 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.1 2007/09/21 13:00:54 wiz Exp $
# $NetBSD: Makefile,v 1.2 2009/07/06 22:35:22 joerg Exp $
DISTNAME= lablgtk-1.2.7
PKGNAME= lablgtk1-1.2.7
PKGREVISION= 3
PKGREVISION= 4
CATEGORIES= x11
MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
COMMENT= GTK+ bindings for ocaml
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake
BUILDLINK_DEPMETHOD.ocaml= full
@ -21,7 +23,7 @@ CONFLICTS+= lablgtk-1.*
# currently ocamlopt is only available on i386, sparc and powerpc.
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc")
(${MACHINE_ARCH} == "sparc") || ${MACHINE_ARCH} == "x86_64"
USE_DOTOPT= YES
.else
CAMLOPT= ocamlc

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.1 2007/09/21 13:00:55 wiz Exp $
$NetBSD: distinfo,v 1.2 2009/07/06 22:35:22 joerg Exp $
SHA1 (lablgtk-1.2.7.tar.gz) = fe43512efdc7ab4e0dafb7dc8254a784857a1ade
RMD160 (lablgtk-1.2.7.tar.gz) = 27be7ff29fe4370bc9a1bbef8c0fa0db590f27c4
Size (lablgtk-1.2.7.tar.gz) = 468443 bytes
SHA1 (patch-aa) = 6ed10b4f76376c372094a55bbdc02194358a2d7e
SHA1 (patch-aa) = 58feff2dd3f93ec6dca05056b164ccd9a86109f5

View file

@ -1,7 +1,16 @@
$NetBSD: patch-aa,v 1.1 2007/09/21 13:00:55 wiz Exp $
$NetBSD: patch-aa,v 1.2 2009/07/06 22:35:22 joerg Exp $
--- src/Makefile.orig 2003-05-15 16:17:53.000000000 +0200
+++ src/Makefile
@@ -38,7 +38,7 @@ CFLAGS = -g $(GTKCFLAGS)
MLLINK += -cclib -lcamlrund
MLFLAGS = -g
else
-CFLAGS = -O -DGTK_NO_CHECK_CASTS -DGTK_DISABLE_COMPAT_H $(GTKCFLAGS)
+CFLAGS = -O -fPIC -DGTK_NO_CHECK_CASTS -DGTK_DISABLE_COMPAT_H $(GTKCFLAGS)
endif
THFLAGS = -thread
@@ -137,32 +137,39 @@ testcc: lablgladecc lablgtktop
rm -f testcc.ml