diff options
author | lawrance <lawrance@FreeBSD.org> | 2006-02-12 18:46:04 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2006-02-12 18:46:04 +0800 |
commit | 892941e5b8a6420ad09132fd95a9333691981635 (patch) | |
tree | 7523d9c2781bb6a49cee04caa45a6827acac0378 /chinese/scim-pinyin/Makefile | |
parent | c657524956d980fa52117003b852f3b576b321e0 (diff) | |
download | freebsd-ports-gnome-892941e5b8a6420ad09132fd95a9333691981635.tar.gz freebsd-ports-gnome-892941e5b8a6420ad09132fd95a9333691981635.tar.zst freebsd-ports-gnome-892941e5b8a6420ad09132fd95a9333691981635.zip |
Update to 0.5.91.
Add new optional skim setup module (WITH_SKIM).
PR: ports/93165
Submitted by: Jie Gao <gaoj@cpsc.ucalgary.ca> (maintainer)
Diffstat (limited to 'chinese/scim-pinyin/Makefile')
-rw-r--r-- | chinese/scim-pinyin/Makefile | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/chinese/scim-pinyin/Makefile b/chinese/scim-pinyin/Makefile index a7321d88787a..a6cfbb7e75fc 100644 --- a/chinese/scim-pinyin/Makefile +++ b/chinese/scim-pinyin/Makefile @@ -6,8 +6,7 @@ # PORTNAME= scim-pinyin -PORTVERSION= 0.5.0 -PORTREVISION= 5 +PORTVERSION= 0.5.91 CATEGORIES= chinese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=scim @@ -39,6 +38,27 @@ CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__" \ LDFLAGS="-L${LOCALBASE}/lib -lintl" .endif +PLIST_SUB= SKIM="@comment " + +pre-fetch: +.if exists(${LOCALBASE}/bin/skim) + @${ECHO_MSG} "===> Skim is detected, support enabled." +.else + @${ECHO_MSG} "Define WITH_SKIM to enable skim support." +.endif + +.if exists(${LOCALBASE}/bin/skim) +WITH_SKIM= yes +.endif + +.if !defined(WITH_SKIM) +CONFIGURE_ARGS+=--disable-skim-support +.else +BUILD_DEPENDS+= skim:${PORTSDIR}/textproc/skim +CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" +PLIST_SUB= SKIM="" PREFIX="${PREFIX}" +.endif + post-install: @${CAT} ${PKGMESSAGE} @${ECHO} |