aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/tpb/Makefile
blob: ce3e52c4a994942b2257709d3d4f8f50f784ec13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Markus Brueffer <markus@FreeBSD.org>
# $FreeBSD$

PORTNAME=   tpb
PORTVERSION=    0.6.4
PORTREVISION=   13
CATEGORIES= deskutils
MASTER_SITES=   SAVANNAH

MAINTAINER= dmitryluhtionov@gmail.com
COMMENT=    On-Screen-Display for hotkeys of IBM ThinkPads

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libxosd.so:misc/xosd

ONLY_FOR_ARCHS= i386 amd64

USES=       gmake iconv localbase pkgconfig
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
USE_XORG=   x11 sm ice xext

OPTIONS_DEFINE= EXAMPLES NLS
OPTIONS_SUB=    yes

NLS_USES=       gettext
NLS_CONFIGURE_OFF=  --disable-nls

post-patch:
.for i in man/tpb.1 src/cfg.h
    @${REINPLACE_CMD} -e \
        's|%%PREFIX%%|${PREFIX}|g ; \
         s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/${i}
.endfor
    @${REINPLACE_CMD} -e \
        's|void test()||' ${WRKSRC}/configure

post-install:
    ${INSTALL_DATA} ${WRKSRC}/doc/tpbrc ${STAGEDIR}${PREFIX}/etc/tpbrc.default

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/callback_example.sh ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>