2013-05-06 11:26:23 +02:00
|
|
|
# Created by: chinsan <chinsan@mail2000.com.tw>
|
2005-05-09 00:59:07 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= scim-input-pad
|
2012-01-14 16:05:03 +01:00
|
|
|
PORTVERSION= 0.1.3.1
|
2014-08-31 15:19:15 +02:00
|
|
|
PORTREVISION= 4
|
2005-05-09 00:59:07 +02:00
|
|
|
CATEGORIES= textproc
|
2012-01-14 16:05:03 +01:00
|
|
|
MASTER_SITES= SF/scim/${PORTNAME}/0.1.3/ \
|
2009-11-04 14:31:39 +01:00
|
|
|
http://anthesphoria.net/FreeBSD/ports/distfiles/
|
2005-05-09 00:59:07 +02:00
|
|
|
|
2009-11-04 14:31:39 +01:00
|
|
|
MAINTAINER= nikola.lecic@anthesphoria.net
|
|
|
|
COMMENT= SCIM add-on to input various symbols with customisable on-screen pad
|
2005-05-09 00:59:07 +02:00
|
|
|
|
2014-06-27 18:11:09 +02:00
|
|
|
LIB_DEPENDS= libscim-1.0.so:${PORTSDIR}/textproc/scim
|
2005-05-09 00:59:07 +02:00
|
|
|
|
- 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
|
|
|
USE_LDCONFIG= yes
|
2014-06-27 18:11:09 +02:00
|
|
|
USES= gmake pkgconfig libtool
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -D__STDC_ISO_10646__
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-06-27 18:11:09 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2006-07-17 14:46:43 +02:00
|
|
|
|
2009-11-04 14:31:39 +01:00
|
|
|
DESKTOP_ENTRIES="SCIM Input Pad" \
|
|
|
|
"${COMMENT}" \
|
|
|
|
"${PREFIX}/share/scim/icons/input-pad.png" \
|
|
|
|
"scim-input-pad" \
|
|
|
|
"Utility;" \
|
|
|
|
false
|
|
|
|
|
|
|
|
DOCS= ChangeLog README
|
|
|
|
|
2014-02-21 14:39:48 +01:00
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-05-06 11:26:23 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2006-07-17 14:46:43 +02:00
|
|
|
USE_GNOME= intlhack
|
2009-11-04 14:31:39 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
2006-07-17 14:46:43 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
2005-05-09 00:59:07 +02:00
|
|
|
|
2009-11-04 14:31:39 +01:00
|
|
|
post-patch:
|
2014-06-27 18:11:09 +02:00
|
|
|
@${REINPLACE_CMD} -E 's|(SCIM_LIBEXECDIR=).*|\1${PREFIX}/lib/scim-1.0| ; \
|
|
|
|
s|(SCIM_MODULEDIR=).*|\1${PREFIX}/lib/scim-1.0/1.4.0| ; \
|
|
|
|
s|(SCIM_ICONDIR=).*|\1${PREFIX}/share/scim/icons| ; \
|
|
|
|
s|(SCIM_DATADIR=).*|\1${PREFIX}/share/scim|' \
|
2009-11-04 14:31:39 +01:00
|
|
|
${WRKSRC}/configure
|
2012-01-14 16:05:03 +01:00
|
|
|
@${REINPLACE_CMD} -E 's|^_NAME|NAME|g' ${WRKSRC}/data/*.pad.in
|
2005-05-09 00:59:07 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-06-27 18:11:09 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2005-05-09 00:59:07 +02:00
|
|
|
|
2009-11-04 14:31:39 +01:00
|
|
|
.include <bsd.port.mk>
|