# New ports collection makefile for: gxditview (part of ja-groff) # Date created: 14 April 1995 # Whom: Nobuhiro Yasutomi # # $FreeBSD$ # PORTNAME= gxditview PORTVERSION= 1.18.1 CATEGORIES= japanese print MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= groff DISTNAME= groff-${PORTVERSION} PATCH_SITES= http://people.debian.org/~ukai/groff/ PATCHFILES= ${DISTNAME:S,-,_,}-7.diff.gz PATCH_DIST_STRIP= -p1 MAINTAINER= okazaki@FreeBSD.org COMMENT= Japanese enhancement of GNU xditview LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv RUN_DEPENDS= ${LOCALBASE}/bin/groff:${PORTSDIR}/japanese/groff GNU_CONFIGURE= yes #USE_GMAKE= yes USE_IMAKE= yes USE_REINPLACE= yes CONFIGURE_ARGS= --program-prefix=g --enable-multibyte CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}" \ LIBS="-L${LOCALBASE}/lib -liconv" CFLAGS+= -I${LOCALBASE}/include MAKE_ARGS= GROFF_PREFIX=${LOCALBASE} \ EXTRA_LIBRARIES="-L${LOCALBASE}/lib -liconv" XDITVIEW_WRKSRC=${WRKDIR}/${DISTNAME}/src/xditview BUILD_WRKSRC= ${XDITVIEW_WRKSRC} INSTALL_WRKSRC= ${XDITVIEW_WRKSRC} MAN1= gxditview.1 .include post-extract: ${CP} ${FILESDIR}/Imakefile ${WRKSRC} post-patch: ${REINPLACE_CMD} -e 's|^\(GROFF_PREFIX =\) @prefix@|\1 ${LOCALBASE}|g;' \ ${XDITVIEW_WRKSRC}/Imakefile.in ${REINPLACE_CMD} -e 's|-I$$(TOOLKITSRC)|-I${LOCALBASE}/include|g;' \ ${XDITVIEW_WRKSRC}/Imakefile.in post-configure: (cd ${XDITVIEW_WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}) .include