pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Honour PKGMANDIR



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4a811e768fb3
branches:  trunk
changeset: 542525:4a811e768fb3
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue May 20 19:30:01 2008 +0000

description:
Honour PKGMANDIR

diffstat:

 audio/gsm/distinfo         |   4 ++--
 audio/gsm/patches/patch-ab |  40 ++++++++++++++++++++++++----------------
 mk/djbware.mk              |   4 ++--
 3 files changed, 28 insertions(+), 20 deletions(-)

diffs (164 lines):

diff -r dd938b436c97 -r 4a811e768fb3 audio/gsm/distinfo
--- a/audio/gsm/distinfo        Tue May 20 19:14:21 2008 +0000
+++ b/audio/gsm/distinfo        Tue May 20 19:30:01 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.6 2008/04/04 15:24:20 joerg Exp $
+$NetBSD: distinfo,v 1.7 2008/05/20 19:30:01 tnn Exp $
 
 SHA1 (gsm-1.0.10.tar.gz) = ee47a81f4137bf3ce933dc610cb2293055ce9c02
 RMD160 (gsm-1.0.10.tar.gz) = 334f93ab232c0b5c1b3090ffa551af0ee0455ed0
 Size (gsm-1.0.10.tar.gz) = 65928 bytes
 SHA1 (patch-aa) = 2c36148172e64602903e18d93e685d5bd84db5c8
-SHA1 (patch-ab) = 39fa8d1211c500e444e3f8cd1689a53a81c56c2e
+SHA1 (patch-ab) = e8825be757d33607d071954a2b88128db3af748b
 SHA1 (patch-ac) = 9e4e582cfd4f6892531578d9df25a29485e8cf32
diff -r dd938b436c97 -r 4a811e768fb3 audio/gsm/patches/patch-ab
--- a/audio/gsm/patches/patch-ab        Tue May 20 19:14:21 2008 +0000
+++ b/audio/gsm/patches/patch-ab        Tue May 20 19:30:01 2008 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.8 2008/04/04 15:24:20 joerg Exp $
+$NetBSD: patch-ab,v 1.9 2008/05/20 19:30:01 tnn Exp $
 
---- Makefile.orig      Tue Jul  2 10:36:06 1996
-+++ Makefile   Sun Jan 16 02:16:43 2000
+--- Makefile.orig      1996-07-02 16:36:06.000000000 +0200
++++ Makefile
 @@ -7,11 +7,13 @@
  SASR  = -DSASR
  ######### Define SASR if >> is a signed arithmetic shift (-1 >> 1 == -1)
@@ -18,7 +18,7 @@
  ######### Define together with USE_FLOAT_MUL to enable the GSM library's
  ######### approximation option for incorrect, but good-enough results.
  
-@@ -43,7 +45,7 @@
+@@ -43,7 +45,7 @@ WAV49        =
  # CC          = /usr/lang/acc
  # CCFLAGS     = -c -O
  
@@ -27,7 +27,7 @@
  CCFLAGS       = -c -O2 -DNeedFunctionPrototypes=1
  
  LD            = $(CC)
-@@ -71,7 +73,7 @@
+@@ -71,7 +73,7 @@ LD           = $(CC)
  # Leave INSTALL_ROOT empty (or just don't execute "make install") to
  # not install gsm and toast outside of this directory.
  
@@ -36,16 +36,24 @@
  
  # Where do you want to install the gsm library, header file, and manpages?
  #
-@@ -80,7 +82,7 @@
+@@ -80,8 +82,8 @@ INSTALL_ROOT =
  
  GSM_INSTALL_ROOT = $(INSTALL_ROOT)
  GSM_INSTALL_LIB = $(GSM_INSTALL_ROOT)/lib
 -GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/inc
+-GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/man/man3
 +GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/include
- GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/man/man3
++GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/${PKGMANDIR}/man3
  
  
-@@ -96,8 +98,9 @@
+ # Where do you want to install the toast binaries and their manpage?
+@@ -91,13 +93,14 @@ GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/ma
+ 
+ TOAST_INSTALL_ROOT      = $(INSTALL_ROOT)
+ TOAST_INSTALL_BIN = $(TOAST_INSTALL_ROOT)/bin
+-TOAST_INSTALL_MAN = $(TOAST_INSTALL_ROOT)/man/man1
++TOAST_INSTALL_MAN = $(TOAST_INSTALL_ROOT)/${PKGMANDIR}/man1
+ 
  #  Other tools
  
  SHELL         = /bin/sh
@@ -56,7 +64,7 @@
  AR            = ar
  ARFLAGS               = cr
  RMFLAGS               =
-@@ -114,7 +117,7 @@
+@@ -114,7 +117,7 @@ RANLIB             = ranlib
  
  # Local Directories
  
@@ -65,7 +73,7 @@
  ADDTST        = $(ROOT)/add-test
  TST   = $(ROOT)/tst
  MAN   = $(ROOT)/man
-@@ -129,7 +132,7 @@
+@@ -129,7 +132,7 @@ INC        = $(ROOT)/inc
  # DEBUG       = -DNDEBUG
  ######### Remove -DNDEBUG to enable assertions.
  
@@ -74,7 +82,7 @@
        $(WAV49) $(CCINC) -I$(INC)
  ######### It's $(CC) $(CFLAGS)
  
-@@ -139,7 +142,7 @@
+@@ -139,7 +142,7 @@ LFLAGS     = $(LDFLAGS) $(LDINC)
  
  # Targets
  
@@ -83,7 +91,7 @@
  
  TOAST = $(BIN)/toast
  UNTOAST       = $(BIN)/untoast
-@@ -257,7 +260,7 @@
+@@ -257,7 +260,7 @@ STUFF =    ChangeLog                       \
  # Install targets
  
  GSM_INSTALL_TARGETS = \
@@ -92,7 +100,7 @@
                $(GSM_INSTALL_INC)/gsm.h                \
                $(GSM_INSTALL_MAN)/gsm.3                \
                $(GSM_INSTALL_MAN)/gsm_explode.3        \
-@@ -273,10 +276,15 @@
+@@ -273,10 +276,15 @@ TOAST_INSTALL_TARGETS =  \
  
  # Default rules
  
@@ -108,7 +116,7 @@
  # Target rules
  
  all:          $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST)
-@@ -299,16 +307,20 @@
+@@ -299,16 +307,20 @@ install: toastinstall gsminstall
  
  # The basic API: libgsm
  
@@ -133,7 +141,7 @@
  
  $(UNTOAST):   $(BIN) $(TOAST)
                -rm $(RMFLAGS) $(UNTOAST)
-@@ -332,12 +344,12 @@
+@@ -332,12 +344,12 @@ $(LIB):
  
  gsminstall:
                -if [ x"$(GSM_INSTALL_ROOT)" != x ] ; then      \
@@ -148,7 +156,7 @@
                fi
  
  gsmuninstall:
-@@ -351,52 +363,34 @@
+@@ -351,52 +363,34 @@ toastuninstall:
                fi
  
  $(TOAST_INSTALL_BIN)/toast:   $(TOAST)
diff -r dd938b436c97 -r 4a811e768fb3 mk/djbware.mk
--- a/mk/djbware.mk     Tue May 20 19:14:21 2008 +0000
+++ b/mk/djbware.mk     Tue May 20 19:30:01 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: djbware.mk,v 1.21 2008/02/07 21:36:13 rillig Exp $
+# $NetBSD: djbware.mk,v 1.22 2008/05/20 19:39:48 tnn Exp $
 #
 # Makefile fragment for packages with djb-style build machinery
 #
@@ -66,7 +66,7 @@
        [ -f conf-bin ] && \
                ${ECHO} ${DJB_CONFIG_PREFIX}/bin > conf-bin;            \
        [ -f conf-man ] && \
-               ${ECHO} ${DJB_CONFIG_PREFIX}/man > conf-man;            \
+               ${ECHO} ${DJB_CONFIG_PREFIX}/${PKGMANDIR} > conf-man;   \
        [ -f conf-qmail ] && \
                ${ECHO} ${QMAILDIR} > conf-qmail;                       \
        [ -f conf-bgincs ] && \



Home | Main Index | Thread Index | Old Index