- 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 <ssedov at mbsd.msk.ru>
This commit is contained in:
Rong-En Fan 2006-08-07 03:09:35 +00:00
parent 95e52060d4
commit 68bcf132a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169890
4 changed files with 14 additions and 6 deletions

View File

@ -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 <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 @@ 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 <bsd.port.post.mk>

View File

@ -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

View File

@ -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 <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 @@ 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 <bsd.port.post.mk>

View File

@ -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