aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/pal/Makefile
blob: 3b3033708e73b3e4879dce45fa616f4439f4e38d (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
# Ports collection makefile for:    pal
# Date created:             Mar 16, 2004
# Whom:                 Herbert J. Skuhra <herbert.skuhra@gmx.at>
#
# $FreeBSD$

PORTNAME=   pal
PORTVERSION=    0.3.4
PORTREVISION=   1
CATEGORIES= deskutils
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= palcal
EXTRACT_SUFX=   .tgz

MAINTAINER= herbert.skuhra@gmx.at
COMMENT=    A calendar application

USE_GNOME=  glib20
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_REINPLACE=  yes
ALL_TARGET=
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src

MAN1=       pal.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE=     Needs readline 4.2 or newer
.endif

post-patch:
    @${REINPLACE_CMD} -e "s,prefix = /usr,prefix = ${PREFIX},g" ${WRKSRC}/Makefile.defs

post-build:
    ${REINPLACE_CMD} -e "s,VERSION,${PORTVERSION},g" ${WRKDIR}/${PORTNAME}-${PORTVERSION}/pal.1.template

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pal ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/share/*.pal ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/pal.conf ${DATADIR}
    ${INSTALL_MAN} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/pal.1.template ${PREFIX}/man/man1/pal.1

.include <bsd.port.post.mk>