From 159ab93ed548172a6950fa7b6d5b0f087458c94d Mon Sep 17 00:00:00 2001 From: rafan Date: Mon, 7 Aug 2006 03:09:35 +0000 Subject: - 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 PR: ports/101436 Submitted by: Stanislav Sedov --- math/gretl/Makefile | 9 ++++++--- math/gretl/pkg-plist | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'math/gretl') diff --git a/math/gretl/Makefile b/math/gretl/Makefile index eb0f83e36273..f1d5bd88d343 100644 --- a/math/gretl/Makefile +++ b/math/gretl/Makefile @@ -24,23 +24,24 @@ USE_BZIP2= yes 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 .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 @@ PKGNAMESUFFIX= -gnome 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 diff --git a/math/gretl/pkg-plist b/math/gretl/pkg-plist index ca9ca859c1c8..69fed5c55edc 100644 --- a/math/gretl/pkg-plist +++ b/math/gretl/pkg-plist @@ -405,6 +405,7 @@ share/locale/tr/LC_MESSAGES/gretl.mo @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 -- cgit