# New ports collection makefile for: wenju # Date created: 18 Oct 2003 # Whom: Shen Chuan-Hsing # # $FreeBSD$ # PORTNAME= wenju PORTVERSION= 1.3 PORTREVISION= 7 CATEGORIES= chinese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= wenju MAINTAINER= ports@FreeBSD.org COMMENT= Collection of writing tools in Chinese USE_AUTOTOOLS= libtool:15 USE_GETOPT_LONG=yes USE_GNOME= gtk20 USE_LDCONFIG= yes USE_XLIB= yes .if !defined(WITHOUT_NLS) USE_GETTEXT= yes PLIST_SUB+= NLS="" CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" .else CONFIGURE_ARGS+=--disable-nls PLIST_SUB+= NLS="@comment " .endif post-install: gtk-query-immodules-2.0 > ${TARGETDIR}/etc/gtk-2.0/gtk.immodules .include .if ${OSVERSION} < 500041 EXTRA_PATCHES+= ${FILESDIR}/configure-getopt.patch .endif .include