mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Fix build on i386 with libemf installed
- Disable wmf filter build for !i386 PR: ports/136815 Submitted by: O. Hartmann <ohartman AT zedat.fu-berlin.de> Reviewed by: marcus, mezz (GNOME team) Approved by: tabthorpe (mentor)
This commit is contained in:
parent
16ddb34724
commit
06741aca65
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=238115
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= dia
|
||||
DISTVERSION= 0.97
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= graphics gnome
|
||||
MASTER_SITES= GNOME
|
||||
@ -46,6 +46,13 @@ PLIST_SUB+= PYTHON="@comment "
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "i386"
|
||||
LIB_DEPENDS+= EMF.1:${PORTSDIR}/graphics/libemf
|
||||
PLIST_SUB+= WMF=""
|
||||
.else
|
||||
PLIST_SUB+= WMF="@comment "
|
||||
.endif
|
||||
|
||||
.if ${HAVE_GNOME:Mlibgnomeui}!=""
|
||||
USE_GNOME+= libgnomeui
|
||||
INSTALLS_OMF= yes
|
||||
@ -72,10 +79,13 @@ post-patch:
|
||||
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
|
||||
s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,'
|
||||
.endif
|
||||
.if ${ARCH} != "i386"
|
||||
@${REINPLACE_CMD} -e 's|wmf||g' ${WRKSRC}/plug-ins/Makefile.in
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -e 's|http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl| ; \
|
||||
s|echo aout|echo elf|g' \
|
||||
s|echo aout|echo elf|g ; s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
|
@ -65,6 +65,8 @@ lib/dia/libvdx_filter.la
|
||||
lib/dia/libvdx_filter.so
|
||||
lib/dia/libwpg_filter.la
|
||||
lib/dia/libwpg_filter.so
|
||||
%%WMF%%lib/dia/libwmf_filter.la
|
||||
%%WMF%%lib/dia/libwmf_filter.so
|
||||
lib/dia/libxfig_filter.la
|
||||
lib/dia/libxfig_filter.so
|
||||
lib/dia/libxslt_filter.la
|
||||
|
Loading…
Reference in New Issue
Block a user