freebsd-ports/japanese/ebview-gtk2/Makefile

47 lines
1,001 B
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= ebview
PORTVERSION= 0.3.6
PORTREVISION= 17
CATEGORIES= japanese
MASTER_SITES= SF
PKGNAMESUFFIX= -gtk2
MAINTAINER= ports@FreeBSD.org
2003-02-20 20:00:52 +01:00
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
OPTIONS_DEFINE= DOCS
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>