freebsd-ports/japanese/ebview-gtk2/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

48 lines
1.1 KiB
Makefile

# New ports collection makefile for: ebview-gtk2
# Date Created: 7 Dec 2003
# Whom: <faust@ua.airnet.ne.jp>
#
# $FreeBSD$
#
PORTNAME= ebview
PORTVERSION= 0.3.6
PORTREVISION= 15
CATEGORIES= japanese
MASTER_SITES= SF
PKGNAMESUFFIX= -gtk2
MAINTAINER= ports@FreeBSD.org
COMMENT= Electronic Book Viewer
LIB_DEPENDS= eb.15:${PORTSDIR}/japanese/eb
CONFLICTS= ja-ebview-0*
USE_GNOME= gtk20
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-eb-conf=${LOCALBASE}/etc/eb.conf
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= ebview.desktop
post-patch:
@${REINPLACE_CMD} -e \
's|-pthread|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \
${WRKSRC}/src/ebview.c
post-install:
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/pixmaps/ebview.xpm ${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${WRKDIR}/${SUB_FILES} ${PREFIX}/share/applications/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>