45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2013/03/11 11:46:19 espie Exp $
|
|
|
|
COMMENT= english-russian keyboard switcher for X11
|
|
|
|
DISTNAME= xruskb-1.15.4
|
|
REVISION= 2
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ftp://ftp.yars.free.net/pub/source/xruskb/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB= ICE SM X11 Xext Xmu Xt c
|
|
|
|
USE_GROFF = Yes
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
FLAVORS= motif
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR: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>
|