1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/x11/xxkb/Makefile
Alexey Dokuchaev ce14deb490 - Sanitize Makefile formatting, trim header and clean it up a bit
- Define LICENSE (Artistic 1.0)
- Drop shlib version number from LIB_DEPENDS
- Convert to the new OPTIONS framework, utilize PORTDOCS
- Drop indefinite article from COMMENT and bring it close to official
  description on sf.net
- Convert Russian language docs from archaic KOI8-R to modern UTF-8
- Rephrase, reformat, and generally augment port description

Approved by:	maintainer timeout
Feature safe:	yes
2012-11-13 14:25:00 +00:00

46 lines
977 B
Makefile

# Created by: Alexander Matey <matey@cis.ohio-state.edu>
# $FreeBSD$
PORTNAME= xxkb
PORTVERSION= 1.11
CATEGORIES= x11
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= alexander.pohoyda@gmx.net
COMMENT= XKB keyboard layout indicator and switcher
LICENSE= ART10
BUILD_DEPENDS= iconv:${PORTSDIR}/converters/libiconv
USE_XORG= xpm
USE_IMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAN1= ${PORTNAME}.1
PORTDOCS= README CHANGES.ru README.ru
OPTIONS_DEFINE= LIBRSVG2 DOCS
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MLIBRSVG2}
LIB_DEPENDS= rsvg-2:${PORTSDIR}/graphics/librsvg2
XMKMF= xmkmf -a -DWITH_SVG_SUPPORT
.endif
post-build:
# Convert Russian language docs from archaic KOI8-R to modern UTF-8
.for f in CHANGES README
iconv -f koi8-r -t utf-8 ${WRKSRC}/${f}.koi8 > ${WRKSRC}/${f}.ru
.endfor
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>