summaryrefslogtreecommitdiff
path: root/net/tinyfugue/patches/patch-ab
blob: b062eeee91835e3ad467a228f9aa11bb613f6e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-ab,v 1.9 2011/08/18 05:03:10 dholland Exp $

Config for pkgsrc.
DESTDIR support.
Make the SYMLINK relative.

--- unix/Config.orig	1999-03-06 22:43:28.000000000 +0000
+++ unix/Config
@@ -33,9 +33,11 @@
 #   even if an old version is currently in use.  You can remove
 #   the old version manually later when it is no longer in use.
 
-# TF="/usr/local/bin/tf-${TFVER}"
-# LIBDIR="/usr/local/lib/tf-${TFVER}-lib"
-# SYMLINK="/usr/local/bin/tf"
+DESTDIR="@DESTDIR@"
+TF="${PREFIX}/bin/tf-${TFVER}"
+LIBDIR="${PREFIX}/lib/tf-${TFVER}-lib"
+SYMLINK="${PREFIX}/bin/tf"
+SYMLINKTARGET="tf-${TFVER}"
 
 
 ### Manual Page.
@@ -44,8 +46,8 @@
 # uses nroff format; set MANTYPE=cat if your man uses pre-formatted
 # vt100 "catman" pages.  Default is "cat".
 
-# MANTYPE="nroff"
-# MANPAGE="/usr/local/man/man1/tf.1"
+MANTYPE="nroff"
+MANPAGE="${PREFIX}/${PKGMANDIR}/man1/tf.1"
 
 
 ### Flags.
@@ -111,7 +113,8 @@ FLAGS=''
 
 # CC=cc
 # CCFLAGS="-g"
-
+CC="${CC}"
+CCFLAGS="${CFLAGS}"
 
 ### Stripping.
 # tfconfig will use "strip" on the tf binary unless you tell it otherwise.