openbsd-ports/russian/xruskb/Makefile
2011-09-16 11:13:37 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.47 2011/09/16 11:13:43 espie Exp $
COMMENT= english-russian keyboard switcher for X11
DISTNAME= xruskb-1.15.4
REVISION= 1
CATEGORIES= russian x11
MASTER_SITES= ftp://ftp.yars.free.net/pub/source/xruskb/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xext Xmu Xt c
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
FLAVORS= motif
FLAVOR?=
.if ${FLAVOR:L:Mmotif}
LIB_DEPENDS+= x11/openmotif
WANTLIB+= Xm
CONFIGURE_ARGS= --with-toolkit=motif
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
.else
CONFIGURE_ARGS= --with-toolkit=xaw
WANTLIB+= Xaw
.endif
pre-configure:
@perl -i -pe 's!/usr/!${LOCALBASE}/!' \
${WRKSRC}/Xrus.{ad,wmaker}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xruskb
${INSTALL_DATA} ${WRKSRC}/xrus.doc-english \
${PREFIX}/share/doc/xruskb/xrus.doc
${INSTALL_DATA} ${WRKSRC}/xrus.doc-koi8 ${PREFIX}/share/doc/xruskb
${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/xruskb
${INSTALL_DATA} ${WRKSRC}/Xrus.ad ${PREFIX}/share/xruskb
${INSTALL_DATA} ${WRKSRC}/Xrus.wmaker ${PREFIX}/share/xruskb
.include <bsd.port.mk>