summaryrefslogtreecommitdiffstats
path: root/textproc/scim-table-imengine/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 12:05:22 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 12:05:22 +0800
commit5f66a3f6e368bd02ab17e67193cf240ba0a53e11 (patch)
treecd5a5a23f87c4a2ed28fd16694513f9fe2fccf1e /textproc/scim-table-imengine/Makefile
parentb9ed7be0b5f37eda61687e3f1686b3735a7767e0 (diff)
downloadmarcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.tar
marcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.tar.gz
marcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.tar.bz2
marcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.tar.lz
marcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.tar.xz
marcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.tar.zst
marcuscom-ports-5f66a3f6e368bd02ab17e67193cf240ba0a53e11.zip
- Move to LOCALBASE
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7393 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc/scim-table-imengine/Makefile')
-rw-r--r--textproc/scim-table-imengine/Makefile73
1 files changed, 73 insertions, 0 deletions
diff --git a/textproc/scim-table-imengine/Makefile b/textproc/scim-table-imengine/Makefile
new file mode 100644
index 000000000..4440a3aaa
--- /dev/null
+++ b/textproc/scim-table-imengine/Makefile
@@ -0,0 +1,73 @@
+# New ports collection makefile for: scim-table-imengine
+# Date created: 01 March 2005
+# Whom: Jie Gao <gaoj@cpsc.ucalgary.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= scim-table-imengine
+PORTVERSION= 0.5.6
+PORTREVISION= 2
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=scim
+DISTNAME= scim-tables-${PORTVERSION}
+
+MAINTAINER= gaoj@cpsc.ucalgary.ca
+COMMENT= SCIM table based input method engine
+
+BUILD_DEPENDS= scim:${PORTSDIR}/textproc/scim
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_GNOME= intlhack
+USE_GETTEXT= yes
+
+MAN1= scim-make-table.1
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-4-stable-src-Makefile.in
+.endif
+
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__" \
+ LDFLAGS="-L${LOCALBASE}/lib -lintl"
+
+PLIST_SUB= SKIM="@comment "
+
+pre-fetch:
+ @${ECHO_MSG} Define WITH_SKIM to enable skim support
+
+.if exists(${LOCALBASE}/bin/skim)
+WITH_SKIM= yes
+pre-patch:
+ @${ECHO_MSG} Skim is detected, support enabled.
+.endif
+
+.if defined(WITH_SKIM)
+BUILD_DEPENDS+= skim:${PORTSDIR}/textproc/skim
+CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
+PLIST_SUB= SKIM=""
+USE_AUTOTOOLS= libtool:15
+post-patch:
+ @${REINPLACE_CMD} -e "/^DIST_SUBDIRS/s/$$/ skim/" \
+ -e "/^@SCIM_TABLES_ENABLE_SKIM_SUPPORT_TRUE@SKIM_SUBDIR =/s/$$/ skim/" \
+ ${WRKSRC}/Makefile.in
+post-configure:
+ ${REINPLACE_CMD} \
+ -e 's,$$(top_builddir)/libtool --silent,${LIBTOOL},' \
+ ${WRKSRC}/skim/Makefile ${WRKSRC}/skim/setupui/Makefile
+.endif
+
+post-install:
+.if ${OSVERSION} < 500035
+ @${INSTALL_SCRIPT} ${FILESDIR}/scim-make-table.sh ${PREFIX}/bin/scim-make-table
+.endif
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO}
+ @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
+ @${ECHO}
+
+.include <bsd.port.post.mk>