Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 20:31:08 GMT
From:      olli hauer <ohauer@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/182126: [patch] ports-mgmt/chucky allow build with gcc and honor PREFIX
Message-ID:  <201309152031.r8FKV85g091202@freefall.freebsd.org>
Resent-Message-ID: <201309152040.r8FKe046091323@freefall.freebsd.org>

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

>Number:         182126
>Category:       ports
>Synopsis:       [patch] ports-mgmt/chucky allow build with gcc and honor PREFIX
>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:   Sun Sep 15 20:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     ohauer
>Release:        FreeBSD 8.4-RELEASE-p4 amd64
>Organization:
>Environment:

>Description:
- port builds fine with base gcc, but CC=clang ist hard coded in the SRC
  Makefile
- honor PREFIX (to work with tools like genplist)
- fix pkg-message, first MAN location is OK, apply 's|/share||' for all
  others
- since only one binary is installed use PLIST_FILES and remove pkg-plist


>How-To-Repeat:

>Fix:

--- chucky.diff begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 327357)
+++ Makefile	(working copy)
@@ -30,6 +30,7 @@
 
 SUB_FILES=	pkg-message
 SUB_LIST=	MAN7PREFIX="${MAN7PREFIX}"
+PLIST_FILES=	bin/chucky
 PORTDOCS=	*
 
 .include <bsd.port.options.mk>
Index: files/patch-Makefile
===================================================================
--- files/patch-Makefile	(revision 0)
+++ files/patch-Makefile	(working copy)
@@ -0,0 +1,15 @@
+--- ./Makefile.orig	2013-03-22 05:11:27.000000000 +0100
++++ ./Makefile	2013-09-15 22:11:22.000000000 +0200
+@@ -1,8 +1,7 @@
+-prefix=/usr/local
+-man7dir=/usr/local/man/man7
+-CC=clang
+-CFLAGS=-I/usr/local/include
+-LDFLAGS=-L/usr/local/lib -lsqlite3
++prefix=${PREFIX}
++man7dir=${PREFIX}/man/man7
++CFLAGS=-I${LOCALBASE}/include
++LDFLAGS=-L${LOCALBASE}/lib -lsqlite3
+ 
+ all: chucky
+ 
Index: files/pkg-message.in
===================================================================
--- files/pkg-message.in	(revision 327357)
+++ files/pkg-message.in	(working copy)
@@ -5,9 +5,9 @@
 man page is installed in %%MAN7PREFIX%%/man/man7, if you do not yet
 have the configuration in /etc/man.conf, add
 
-MANPATH /usr/local/share/man
+MANPATH %%MAN7PREFIX%%/man
 
-to view all man pages which are installed in /usr/local/share/man/manX/
+to view all man pages which are installed in %%MAN7PREFIX%%/man/manX/
 
 
 ************************************************************************
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 327357)
+++ pkg-plist	(working copy)
@@ -1 +0,0 @@
-bin/chucky
--- chucky.diff ends here ---


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



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