mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-10 02:45:11 +00:00
090059a210
The affected ports are the ones with gettext as a run-dependency according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT in Makefile (29 of them). PR: ports/124340 Submitted by: edwin@ Approved by: portmgr (pav)
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# 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.7
|
|
PORTREVISION= 3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR=scim
|
|
DISTNAME= scim-tables-${PORTVERSION}
|
|
|
|
MAINTAINER= lx@FreeBSD.org
|
|
COMMENT= SCIM table based input method engine
|
|
|
|
BUILD_DEPENDS= scim:${PORTSDIR}/textproc/scim
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= intlhack
|
|
USE_GETTEXT= yes
|
|
|
|
MAN1= scim-make-table.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl" \
|
|
PREFIX="${PREFIX}"
|
|
|
|
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:
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO}
|
|
@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
|
|
@${ECHO}
|
|
|
|
.include <bsd.port.post.mk>
|