mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
japanese/ebview-gtk2: Unbreak on HEAD
- Optionize post-install target for DOCS - Utilize USES=localbase
This commit is contained in:
parent
d5f731c045
commit
43569aa165
@ -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
|
||||
|
||||
CONFLICTS= ja-ebview
|
||||
|
||||
SUB_FILES= ebview.desktop
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user