aboutsummaryrefslogtreecommitdiffstats
path: root/x11/bricons/Makefile
blob: 2a7ec5147d9950f4040657550924074a79b7eebe (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
# Created by: shanee@augusta.de
# $FreeBSD$

PORTNAME=   bricons
PORTVERSION=    3.0
DISTVERSIONPREFIX=  athena-
PORTREVISION=   2
CATEGORIES= x11
MASTER_SITES=   XCONTRIB/../R5contrib
EXTRACT_SUFX=   .tar.Z

MAINTAINER= ports@FreeBSD.org
COMMENT=    Quick start up utility for applications on an X display

WRKSRC=     ${WRKDIR}/${PORTNAME}

USES=       imake perl5
USE_PERL5=  build
USE_XORG=   xaw
MAKE_JOBS_SAFE= yes

MAN1=       bricons.1

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e \
        's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Xbricons
    @${REINPLACE_CMD} -e \
        's|^unsigned int argc|int argc|' ${WRKSRC}/main.c

post-install:
    ${INSTALL_DATA} ${WRKSRC}/Xbricons ${PREFIX}/lib/X11/app-defaults
    ${MKDIR} ${PREFIX}/include/X11/bitmaps
    ${INSTALL_DATA} ${WRKSRC}/bitmaps/* ${PREFIX}/include/X11/bitmaps
    ${MKDIR} ${PREFIX}/include/X11/pixmaps
    ${INSTALL_DATA} ${WRKSRC}/*.xpm ${PREFIX}/include/X11/pixmaps
    @${ECHO_MSG} ""
    @${ECHO_MSG} "     Use ./files/DOTbriconsrc as an example. This  file"
    @${ECHO_MSG} "     should  be  stored in the same directory as the"
    @${ECHO_MSG} "     program is executed from."
    @${ECHO_MSG} ""

.include <bsd.port.post.mk>