1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/textproc/kmflcomp/Makefile
Wesley Shields 7da81d3240 - Patch SCIM KMFL engine (textproc/scim-kmfl-imengine) to use
the same neutral keyboard repository as textproc/ibus-kmfl does,
  ${LOCALBASE}/share/kmfl/. This approach is similar to m17n (its
  keyboard databases, devel/m17n-db and textproc/m17n-contrib, are
  shared between textproc/scim-m17n and textproc/ibus-m17n). This
  patch also makes both these KMFL engine ports to read ~/.kmfl/
  instead of SCIM-oriented ~/.scim/kmfl/.
  There is UPDATING text that informs KMFL users about this.

- Patch keyboard ports (7 of them) to install data to the new
  repository, ${LOCALBASE}/share/kmfl/; the keyboard ports were
  SCIM-only and used to install to ${LOCALBASE}/share/scim/kmfl/.

- Adapt descriptions in other KMFL ports (textproc/kmflcomp,
  textproc/libkmfl);

- While we are here, do some additional maintenance.

- Remove the 7 old ports.

- Please see the PR for full details.

PR:		ports/156694
Submitted by:	Nikola Lecic <nikola.lecic@anthesphoria.net> (maintainer)
2011-05-29 13:28:25 +00:00

56 lines
1.5 KiB
Makefile

# New ports collection makefile for: kmflcomp
# Date created: 10 October 2007
# Whom: Nikola Lecic <nikola.lecic@anthesphoria.net>
#
# $FreeBSD$
#
PORTNAME= kmflcomp
PORTVERSION= 0.9.9
CATEGORIES= textproc
MASTER_SITES= SF/kmfl/kmfl/${PORTVERSION}:1 \
SF/kmfl/kmfl/Documentation:2 \
http://anthesphoria.net/FreeBSD/ports/distfiles/${DIST_SUBDIR}/:1,2
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz:1 \
KMFL-Compiler.sxw:2
DIST_SUBDIR= kmfl
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= nikola.lecic@anthesphoria.net
COMMENT= Compiler of Keyman KMFL keyboard sources to use with SCIM/IBus
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
USE_XORG= x11
USE_LDCONFIG= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -liconv
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
DOCSDIR= ${PREFIX}/share/doc/kmfl/${PORTNAME}
DOCS= ${DISTDIR}/${DIST_SUBDIR}/KMFL-Compiler.sxw \
${WRKSRC}/AUTHORS \
${WRKSRC}/COPYING \
${WRKSRC}/ChangeLog
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|^install-data-am: install-kmflcompdocDATA|install-data-am:|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-L/usr/X11R6/lib|-L${X11BASE}/lib|' \
${WRKSRC}/kmfl_compiler/Makefile.in
@${REINPLACE_CMD} -E 's,(VERSION= *)"0\.9\.7",\1"0.9.9",' \
${WRKSRC}/kmfl_compiler/kmfl_compiler.c
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} -v ${DOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>