Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2003 11:17:57 -0800 (PST)
From:      Jim Shewmaker <jims@bluenotch.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        matthias.andree@gmx.de
Subject:   ports/59596: databases/db41 add knob to build perl DB_File
Message-ID:  <200311221917.hAMJHvoG077570@mail.trinetinternet.com>
Resent-Message-ID: <200311221920.hAMJKKuM098072@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         59596
>Category:       ports
>Synopsis:       databases/db41 add knob to build perl DB_File
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 22 11:20:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jim Shewmaker
>Release:        FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD mail.trinetinternet.com 4.9-RC FreeBSD 4.9-RC #0: Tue Oct 14 10:12:33 PDT 2003 jim@mail.trinetinternet.com:/usr/obj/usr/src/sys/DELL1650 i386


	
>Description:
	graphdefang needs DB_File from this sleepycat dist.  I'm sure there is a better way than @make, but you get the idea, nothing complicated.
>How-To-Repeat:
	
>Fix:

	

--- patch.graphdefang-dbfile begins here ---
*** Makefile.orig	Sat Nov 22 10:41:29 2003
--- Makefile	Sat Nov 22 11:15:59 2003
***************
*** 32,37 ****
--- 32,41 ----
  		--includedir=${PREFIX}/include/db41
  INSTALLS_SHLIB=	yes
  
+ .if defined(WITH_DB_FILE)
+ USE_PERL=	yes
+ .endif
+ 
  .if !defined(NOPORTDOCS)
  INSTALL_TARGET=	install install_docs
  .endif
***************
*** 39,46 ****
--- 43,72 ----
  post-patch:
  	@${REINPLACE_CMD} -Ee \
  		's|-l?pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
+ .if defined(WITH_DB_FILE)
+ 	@${REINPLACE_CMD} -Ee \
+ 		's|local/BerkleyDB|local|g' \
+ 		's|#DBNAME\s+=\s+-ldb-2.4.10|DBNAME = -ldb41|g' \
+ 		${WRKSRC}/perl/DB_File/config.in
  .endif
  
+ post-configure:
+ .if defined(WITH_DB_FILE)
+ 	@cd ${WRKSRC}/perl/DB_File
+ 	@${PERL} Makefile.PL
+ .endif
  
+ post-configure:
+ .if defined(WITH_DB_FILE)
+ 	@cd ${WRKSRC}/perl/DB_File
+ 	@make
+ 	@make depends
+ .endif
+ 
+ post-install:
+ .if defined(WITH_DB_FILE)
+ 	@cd ${WRKSRC}/perl/DB_File
+ 	@make install
+ .endif
  
  .include <bsd.port.mk>
--- patch.graphdefang-dbfile ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311221917.hAMJHvoG077570>