summaryrefslogtreecommitdiffstats
path: root/deskutils/pal/Makefile
blob: 80f403d01f1656651f4e4000f0334e09d147b93c (plain)
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
# Created by: Herbert J. Skuhra <h.skuhra@gmail.com>
# $FreeBSD$

PORTNAME=	pal
PORTVERSION=	0.4.3
PORTREVISION=	2
CATEGORIES=	deskutils
MASTER_SITES=	SF/${PORTNAME}cal/${PORTNAME}/${PORTVERSION}

MAINTAINER=	h.skuhra@gmail.com
COMMENT=	Calendar application

USES=		gettext gmake ncurses pkgconfig readline tar:tgz
USE_GNOME=	glib20
ALL_TARGET=
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src

post-patch:
	@${REINPLACE_CMD} -e "s,prefix = /usr,prefix = ${PREFIX},g;s,^CC,#CC,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 ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/share/*.pal \
		${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/pal.conf \
		${STAGEDIR}${DATADIR}
	${INSTALL_MAN} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/pal.1.template \
		${STAGEDIR}${MANPREFIX}/man/man1/pal.1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud