- Reduce dependencies of sgb.

- Use an absolute path in invoking ctangle.
This commit is contained in:
minskim 2010-01-29 01:34:06 +00:00
parent a87f841129
commit f085c19280
3 changed files with 18 additions and 6 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.3 2009/03/04 16:54:26 minskim Exp $
# $NetBSD: Makefile,v 1.4 2010/01/29 01:34:06 minskim Exp $
DISTNAME= sgb-2007-03.28
PKGNAME= sgb-20070328
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.cs.stanford.edu/pub/sgb/
@ -9,7 +10,8 @@ MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://www-cs-faculty.stanford.edu/~uno/sgb.html
COMMENT= The Stanford GraphBase
DEPENDS+= teTeX-bin-[0-9]*:../../print/teTeX3-bin
DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex
DEPENDS+= web2c-[0-9]*:../../print/web2c
PKG_DESTDIR_SUPPORT= user-destdir
@ -23,7 +25,8 @@ SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= Makefile
SUBST_SED.paths= -e 's,@PREFIX@,$${DESTDIR}${PREFIX},g'
SUBST_SED.paths= -e 's,@LOCALBASE@,${LOCALBASE},g' \
-e 's,@PREFIX@,$${DESTDIR}${PREFIX},g'
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/sgb

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.2 2009/01/04 23:14:00 dbj Exp $
$NetBSD: distinfo,v 1.3 2010/01/29 01:34:06 minskim Exp $
SHA1 (sgb-2007-03.28.tar.gz) = 651cc1ea52a3ea10d00276e7fb09458bb344072c
RMD160 (sgb-2007-03.28.tar.gz) = 5da2b7835e051f9e4224a9e56ec17aafba54d864
Size (sgb-2007-03.28.tar.gz) = 493980 bytes
SHA1 (patch-aa) = 310fb196a09cdc0255d491ebad9d3c2ec1c18c38
SHA1 (patch-aa) = 4ec26728a8fde000aa8198cd0a0d12e6d4dbc12b

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.1.1.1 2006/05/04 09:35:33 minskim Exp $
$NetBSD: patch-aa,v 1.2 2010/01/29 01:34:06 minskim Exp $
--- Makefile.orig 1999-12-27 14:27:24.000000000 -0800
+++ Makefile
@ -44,6 +44,15 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/05/04 09:35:33 minskim Exp $
LDLIBS = -lgb
LOADLIBES = $(LDLIBS)
@@ -50,7 +50,7 @@ LOADLIBES = $(LDLIBS)
tex $*.tex
.w.c:
- if test -r $*.ch; then ctangle $*.w $*.ch; else ctangle $*.w; fi
+ if test -r $*.ch; then @LOCALBASE@/bin/ctangle $*.w $*.ch; else @LOCALBASE@/bin/ctangle $*.w; fi
.w.tex:
if test -r $*.ch; then cweave $*.w $*.ch; else cweave $*.w; fi
@@ -67,6 +67,12 @@ LOADLIBES = $(LDLIBS)
make $*.tex
make $*.dvi