1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Rework optional GNOME dependency, so it would not confuse bento;

- enable gnomeprint support in Gnome case;
- use "@*" to pass arguments from the helper script to the binary instead of
  $*.

Submitted by:	bento
This commit is contained in:
Maxim Sobolev 2001-08-28 12:04:42 +00:00
parent 4844a5b160
commit bf8c25233c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47018
2 changed files with 13 additions and 7 deletions

View File

@ -7,18 +7,19 @@
PORTNAME= dia
PORTVERSION= 0.88.1
PORTREVISION= 1
CATEGORIES+= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/dia
MAINTAINER?= gnome@FreeBSD.org
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOMELIBS= yes
WANT_GNOME= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl"
@ -27,13 +28,18 @@ MAN1= dia.1
.include <bsd.port.pre.mk>
.if defined(HAVE_GNOME)
.if exists(${X11BASE}/bin/panel) || defined(WITH_GNOME)
USE_GNOME= yes
CONFIGURE_ARGS= --enable-gnome
PLIST_SUB+= DIAHELP="help/dia"
PKGNAMESUFFIX= -gnome
CONFIGURE_ARGS= --enable-gnome \
--enable-gnome-print
PLIST_SUB+= DIAHELP="help/dia" \
GNOME:=""
MAKE_ENV= HAVE_GNOME="yes"
.else
CONFIGURE_ARGS= --disable-gnome
PLIST_SUB+= DIAHELP="dia/help"
PLIST_SUB+= DIAHELP="dia/help" \
GNOME:="@comment "
.endif
pre-patch:

View File

@ -4,4 +4,4 @@ DIA_SHAPE_PATH=%%PREFIX%%/share/gnome/dia/shapes
DIA_SHEET_PATH=%%PREFIX%%/share/gnome/dia/sheets
export DIA_LIB_PATH DIA_SHAPE_PATH DIA_INT_SHAPE_PATH DIA_SHEET_PATH
exec %%PREFIX%%/bin/dia-bin $*
exec %%PREFIX%%/bin/dia-bin "$@"