2013-04-29 22:03:38 +02:00
|
|
|
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
|
2000-10-14 04:03:46 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gcal
|
2013-04-29 22:03:38 +02:00
|
|
|
PORTVERSION= 3.6.3
|
2000-10-14 04:03:46 +02:00
|
|
|
CATEGORIES= deskutils
|
2013-04-29 22:03:38 +02:00
|
|
|
MASTER_SITES= GNU
|
2000-10-14 04:03:46 +02:00
|
|
|
|
2010-06-03 19:54:46 +02:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-02-21 12:15:57 +01:00
|
|
|
COMMENT= The GNU Gregorian calendar program
|
2001-09-11 14:17:27 +02:00
|
|
|
|
2012-06-16 16:09:38 +02:00
|
|
|
USE_XZ= yes
|
2004-03-10 16:08:55 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2010-06-03 19:54:46 +02:00
|
|
|
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
|
2001-09-11 14:17:27 +02:00
|
|
|
|
2004-03-10 16:08:55 +01:00
|
|
|
INFO= gcal
|
2010-06-03 19:54:46 +02:00
|
|
|
#MAN1= gcal.1 gcal2txt.1 tcal.1 txt2gcal.1
|
2000-10-14 04:03:46 +02:00
|
|
|
|
2013-09-20 18:21:37 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-27 22:58:20 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES= gettext
|
2010-06-03 19:54:46 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2012-06-27 22:58:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2010-06-03 19:54:46 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
GCAL_SCRIPTS= daily/daily ddiff/ddiff ddiff/ddiffdrv dst/dst gcalltx/gcalltx \
|
|
|
|
gcalltx/gcalltxp moon/moon mrms/mrms srss/srss wloc/wlocdrv
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for p in ${GCAL_SCRIPTS}
|
|
|
|
@${REINPLACE_CMD} -e '/^ThisGcal=/s:=.*:=${PREFIX}/bin/gcal:' \
|
|
|
|
-e '/^packagedatamiscdir=/s:=.*:=${DATADIR}/misc/${p:H}:' \
|
|
|
|
${WRKSRC}/misc/${p}.in
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${TAR} -cf - -C ${WRKSRC} --exclude '*.in' --exclude '*.in.bak' \
|
|
|
|
--exclude '*.alias' misc | ${TAR} -xpf - -C ${DATADIR}
|
|
|
|
.for p in ${GCAL_SCRIPTS}
|
|
|
|
@${CHMOD} +x ${DATADIR}/misc/${p}
|
|
|
|
@${LN} -s ${DATADIR}/misc/${p} ${PREFIX}/bin/gcal-${p:T}
|
|
|
|
.endfor
|
2001-09-11 14:17:27 +02:00
|
|
|
|
2000-10-14 04:03:46 +02:00
|
|
|
.include <bsd.port.mk>
|