2003-12-28 12:43:36 +01:00
|
|
|
# New ports collection makefile for: iiimf-le-newpy
|
|
|
|
# Date created: 6 Dec 2003
|
|
|
|
# Whom: Kuang-che Wu <kcwu@csie.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-10-14 00:31:10 +02:00
|
|
|
PORTNAME= le-newpy
|
2005-05-24 14:37:50 +02:00
|
|
|
PORTVERSION= 12.2
|
2007-09-30 06:47:36 +02:00
|
|
|
PORTREVISION= 4
|
2003-12-28 12:43:36 +01:00
|
|
|
CATEGORIES= chinese textproc
|
2004-10-14 00:31:10 +02:00
|
|
|
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
|
|
|
|
PKGNAMEPREFIX= iiimf-
|
2005-05-24 14:37:50 +02:00
|
|
|
DISTNAME= iiimf-src-${PORTVERSION}
|
2003-12-28 12:43:36 +01:00
|
|
|
|
2006-12-07 10:15:12 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-10-14 00:31:10 +02:00
|
|
|
COMMENT= IIIMF New PinYin input method engine
|
2003-12-28 12:43:36 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
RUN_DEPENDS= iiimd:${PORTSDIR}/textproc/iiimf-server
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
2004-10-14 00:31:10 +02:00
|
|
|
|
2005-02-28 14:52:56 +01:00
|
|
|
USE_BZIP2= yes
|
2005-02-28 05:17:02 +01:00
|
|
|
USE_GMAKE= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= automake:19:env autoconf:262:env libtool:15:env
|
2005-03-04 12:38:18 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
|
|
|
|
BUILDDIR= ${WRKSRC}/leif
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
LE_TARGETS= newpy
|
2004-10-14 00:31:10 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_XAUX)
|
2005-05-24 14:37:50 +02:00
|
|
|
LE_TARGETS+= newpy/xaux
|
2003-12-28 12:43:36 +01:00
|
|
|
USE_MOTIF= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2003-12-28 12:43:36 +01:00
|
|
|
PLIST_SUB+= WANT_XAUX=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WANT_XAUX="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-02-28 05:17:02 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-04 12:38:18 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2006-02-06 12:56:36 +01:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2003-12-28 12:43:36 +01:00
|
|
|
post-patch:
|
2005-05-24 14:37:50 +02:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e "s,%%LOCALBASE%%,${LOCALBASE},g" \
|
|
|
|
-e "s,%%PREFIX%%,${PREFIX},g" \
|
|
|
|
${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am \
|
|
|
|
${BUILDDIR}/newpy/xaux/aux_win.c \
|
|
|
|
${BUILDDIR}/newpy/xaux/aux_so.c
|
2003-12-28 12:43:36 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
do-configure:
|
|
|
|
.if defined(WITHOUT_XAUX)
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${REINPLACE_CMD} -e '/^CONFIG_FLAGS =/s,$$, --without-x,' Makefile
|
|
|
|
.endif
|
|
|
|
@cd ${BUILDDIR} && ${REINPLACE_CMD} \
|
|
|
|
-e "/LE_TARGETS=/s,%%LE_TARGETS%%,${LE_TARGETS}," configure.ac
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config
|
2003-12-28 12:43:36 +01:00
|
|
|
|
2005-02-28 05:17:02 +01:00
|
|
|
.include <bsd.port.post.mk>
|