2004-07-28 23:34:56 +02:00
|
|
|
# New ports collection makefile for: skim
|
|
|
|
# Date created: 21 July 2004
|
|
|
|
# Whom: Jie Gao <gaoj@cpsc.ucalgary.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= skim
|
2007-04-11 05:45:27 +02:00
|
|
|
PORTVERSION= 1.4.5
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2004-07-28 23:34:56 +02:00
|
|
|
CATEGORIES= textproc kde
|
2005-01-22 13:30:00 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2004-10-18 23:35:11 +02:00
|
|
|
MASTER_SITE_SUBDIR= scim
|
2004-07-28 23:34:56 +02:00
|
|
|
|
2007-03-14 08:47:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-07-28 23:34:56 +02:00
|
|
|
COMMENT= An input method platform based on SCIM library and KDE/QT
|
|
|
|
|
2007-04-29 02:50:06 +02:00
|
|
|
LIB_DEPENDS= scim-1.0:${PORTSDIR}/textproc/scim
|
2004-11-10 16:47:30 +01:00
|
|
|
|
2004-07-28 23:34:56 +02:00
|
|
|
USE_KDELIBS_VER=3
|
2005-08-03 16:53:59 +02:00
|
|
|
USE_PYTHON= yes
|
2004-10-18 23:35:11 +02:00
|
|
|
USE_BZIP2= yes
|
2004-07-28 23:34:56 +02:00
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2007-08-10 19:55:44 +02:00
|
|
|
PYDISTUTILS_NOEGGINFO= yes
|
2004-08-12 09:14:44 +02:00
|
|
|
|
|
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
2005-07-30 08:23:27 +02:00
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
2007-02-13 01:16:29 +01:00
|
|
|
PREFIX="${PREFIX}"
|
2004-07-28 23:34:56 +02:00
|
|
|
|
2004-08-12 09:14:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500035
|
2004-10-18 23:35:11 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
|
|
|
|
CONFIGURE_ENV+= CXXFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/stlport ${CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lstlport_gcc -lintl ${PTHREAD_LIBS}"
|
2004-08-12 09:14:44 +02:00
|
|
|
.else
|
2004-10-18 23:35:11 +02:00
|
|
|
CONFIGURE_ENV+= CXXFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__ ${CFLAGS}" \
|
2004-08-12 09:14:44 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl"
|
|
|
|
.endif
|
2004-10-18 23:35:11 +02:00
|
|
|
|
2005-10-08 17:34:02 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} s,bash,sh,g ${WRKSRC}/src/scim-panel-kde.in
|
|
|
|
|
2005-07-30 08:23:27 +02:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./configure
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} \
|
2006-02-11 04:14:15 +01:00
|
|
|
-e s,/usr/local/lib/pkgconfig,${PREFIX}/libdata/pkgconfig,g \
|
|
|
|
-e s,/usr/lib/pkgconfig,${PREFIX}/libdata/pkgconfig,g \
|
|
|
|
-e s,lib/pkgconfig,libdata/pkgconfig,g \
|
2005-07-30 08:23:27 +02:00
|
|
|
${WRKSRC}/cache/pkg.cache.py
|
|
|
|
do-build:
|
2006-04-06 23:29:18 +02:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./scons
|
2005-07-30 08:23:27 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC} && ./scons install
|
2004-07-28 23:34:56 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-10-18 23:35:11 +02:00
|
|
|
@${ECHO} To display this message again, type pkg_info -D ${PKGNAME}
|
2004-07-28 23:34:56 +02:00
|
|
|
|
2004-08-12 09:14:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|