1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/japanese/ebview-gtk2/Makefile
Martin Wilke baaa073211 - Fix build with clang
PR:		185717
Submitted by:	ports fury
2014-01-19 14:30:23 +00:00

45 lines
979 B
Makefile

# $FreeBSD$
PORTNAME= ebview
PORTVERSION= 0.3.6
PORTREVISION= 17
CATEGORIES= japanese
MASTER_SITES= SF
PKGNAMESUFFIX= -gtk2
MAINTAINER= ports@FreeBSD.org
COMMENT= Electronic Book Viewer
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= libeb.so:${PORTSDIR}/japanese/eb
CONFLICTS= ja-ebview-[0-9]*
USES= gettext gmake pkgconfig
USE_GNOME= gtk20 pangox-compat
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-eb-conf=${LOCALBASE}/etc/eb.conf
SUB_FILES= ebview.desktop
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \
${WRKSRC}/src/ebview.c
post-install:
(cd ${WRKDIR} && ${INSTALL_DATA} ${SUB_FILES} \
${STAGEDIR}${DESKTOPDIR})
(cd ${WRKSRC}/pixmaps && ${INSTALL_DATA} ebview.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ChangeLog README
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>