Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2023 14:57:43 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 43569aa16570 - main - japanese/ebview-gtk2: Unbreak on HEAD
Message-ID:  <202305121457.34CEvhD7080826@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=43569aa1657055418738f3c294b77aaedb37afe5

commit 43569aa1657055418738f3c294b77aaedb37afe5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-12 14:53:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-12 14:57:24 +0000

    japanese/ebview-gtk2: Unbreak on HEAD
    
    - Optionize post-install target for DOCS
    - Utilize USES=localbase
---
 japanese/ebview-gtk2/Makefile | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/japanese/ebview-gtk2/Makefile b/japanese/ebview-gtk2/Makefile
index 4bea062bfb1d..5718f5dbd2f3 100644
--- a/japanese/ebview-gtk2/Makefile
+++ b/japanese/ebview-gtk2/Makefile
@@ -13,21 +13,25 @@ LICENSE=	GPLv2+
 
 LIB_DEPENDS=	libeb.so:japanese/eb
 
-CONFLICTS=	ja-ebview
-
-USES=		gettext gmake gnome pkgconfig
-USE_GNOME=	gtk20 pangox-compat
+USES=		gettext gmake gnome localbase:ldflags pkgconfig
 USE_CSTD=	gnu89
+USE_GNOME=	gtk20 pangox-compat
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-eb-conf=${LOCALBASE}/etc/eb.conf
 
-SUB_FILES=	ebview.desktop
+CONFLICTS=	ja-ebview
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+SUB_FILES=	ebview.desktop
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \
 		${WRKSRC}/src/ebview.c
@@ -37,9 +41,11 @@ post-install:
 		${STAGEDIR}${DESKTOPDIR})
 	(cd ${WRKSRC}/pixmaps && ${INSTALL_DATA} ebview.xpm \
 		${STAGEDIR}${PREFIX}/share/pixmaps)
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ChangeLog README
 	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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