Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2021 11:34:28 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r567478 - head/graphics/xfig
Message-ID:  <202103061134.126BYS75068102@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Sat Mar  6 11:34:27 2021
New Revision: 567478
URL: https://svnweb.freebsd.org/changeset/ports/567478

Log:
  - Fix .desktop entry, remove wrong path from Exec line
  - Convert port to USES=localbase
  - SSilence portlint warnings about variables order
  
  PR:		254031
  Approved by:	mjl@luckie.org.nz (maintainer)
  MFH:		2021Q1

Modified:
  head/graphics/xfig/Makefile

Modified: head/graphics/xfig/Makefile
==============================================================================
--- head/graphics/xfig/Makefile	Sat Mar  6 11:18:45 2021	(r567477)
+++ head/graphics/xfig/Makefile	Sat Mar  6 11:34:27 2021	(r567478)
@@ -3,6 +3,7 @@
 
 PORTNAME=	xfig
 PORTVERSION=	3.2.7a
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	SF/mcj/
 
@@ -13,17 +14,19 @@ LIB_DEPENDS=	libpng.so:graphics/png \
 		libXaw3d.so:x11-toolkits/Xaw3d
 RUN_DEPENDS=	fig2dev:print/fig2dev
 
-CONFLICTS=	xfig-[12].* xfig-3.1* xfig-3.2.[1234]*
+USES=		desktop-file-utils gmake jpeg localbase:ldflags \
+		tar:xz xorg
 
+CONFLICTS=	xfig-[12].* xfig-3.1* xfig-3.2.[1234]*
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
-USES=		desktop-file-utils gmake jpeg tar:xz xorg
 GNU_CONFIGURE=	yes
 USE_XORG=	ice sm x11 xaw xext xi xmu xpm xt
 USE_CSTD=	gnu89
-CFLAGS+=	-Wno-return-type -I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+CFLAGS+=	-Wno-return-type
 
 OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/bin/||' ${WRKSRC}/xfig.desktop
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103061134.126BYS75068102>