ports/101436: [PATCH] misc/gretl: fix depends, pkg-plist, misc cleanup
Stanislav Sedov
ssedov at mbsd.msk.ru
Sat Aug 5 21:50:18 UTC 2006
>Number: 101436
>Category: ports
>Synopsis: [PATCH] misc/gretl: fix depends, pkg-plist, misc cleanup
>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 Aug 05 21:50:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Stanislav Sedov
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug 2 21:44:37 MSD
>Description:
- Add readline as dependency when it was already installed. The program
will be linked against it anyway, not against a system one.
- Fix pkg-plist in non-standard PREFIX cases
- Replace deprecated variables
- Misc cosmetic fixes
>How-To-Repeat:
>Fix:
--- gretl-gnome-1.5.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/misc/gretl/Makefile /var/tmp/gretl/Makefile
--- /usr/ports/misc/gretl/Makefile Sat Jun 17 13:59:55 2006
+++ /var/tmp/gretl/Makefile Sun Aug 6 01:27:24 2006
@@ -24,23 +24,24 @@
USE_X_PREFIX= yes
WANT_GNOME= yes
USE_GNOME= gnometarget gtk20 libxml2
+USE_GETTEXT= yes
USE_GMAKE= yes
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DGNUPLOT_PNG" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-static --enable-shared --with-gmake
ALL_TARGET= # empty
-INSTALLS_SHLIB= yes
MAN1= gretl.1 gretl-config.1
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
-BROKEN= "math/lapack appears to be broken on alpha"
+BROKEN= math/lapack appears to be broken on alpha
.endif
-.if ${OSVERSION} < 500018
+.if ${OSVERSION} < 500018 || exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
.endif
@@ -49,8 +50,10 @@
USE_GNOME+= gnomeprefix gtksourceview libgnomeui
GCONF_SCHEMAS= gretl.schemas
DATADIR= ${PREFIX}/share/gnome/${PORTNAME}
+PLIST_SUB+= GNOMEUI=""
.else
CONFIGURE_ARGS+= --without-gnome --without-gtksourceview
+PLIST_SUB+= GNOMEUI="@comment "
.endif
.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/misc/gretl/pkg-plist /var/tmp/gretl/pkg-plist
--- /usr/ports/misc/gretl/pkg-plist Sat Jun 17 13:59:55 2006
+++ /var/tmp/gretl/pkg-plist Sun Aug 6 01:25:59 2006
@@ -405,6 +405,7 @@
@dirrm %%DATADIR%%/data/greene
@dirrm %%DATADIR%%/data
@dirrm %%DATADIR%%
+%%GNOMEUI%%@dirrmtry share/gnome
@dirrm lib/gretl-gtk2/data
@dirrm lib/gretl-gtk2
@dirrm include/gretl
--- gretl-gnome-1.5.1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list