pkgsrc/time/asclock/Makefile
wiz 2c72a9f0b9 Remove xextproto/buildlink3.mk in most cases where it occurs with
libXext/buildlink3.mk, now that it is included there.
Leave the places where its API version is set or variables from it
are used directly (about 3 packages).
2012-10-23 10:24:02 +00:00

70 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2012/10/23 10:24:11 wiz Exp $
DISTNAME= asclock-classic-1.0
PKGNAME= asclock-1.0
PKGREVISION= 2
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_LOCAL} # www.asclock.org is no more
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= NeXTstep-like clock and calendar
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/asclock1.0
USE_IMAKE= YES
LANGUAGES= en de pt nl no it sv es hu br fr cs ru uk sl id da
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
.include "../../mk/bsd.prefs.mk"
INSTALLATION_DIRS= bin libexec share/asclock-classic
# Translate to two-letter abbreviations in /usr/share/misc/language.
#
post-extract:
${MV} ${WRKSRC}/english ${WRKSRC}/en
${MV} ${WRKSRC}/german ${WRKSRC}/de
${MV} ${WRKSRC}/portuguese ${WRKSRC}/pt
${MV} ${WRKSRC}/dutch ${WRKSRC}/nl
${MV} ${WRKSRC}/norwegian ${WRKSRC}/no
${MV} ${WRKSRC}/italian ${WRKSRC}/it
${MV} ${WRKSRC}/swedish ${WRKSRC}/sv
${MV} ${WRKSRC}/spanish ${WRKSRC}/es
${MV} ${WRKSRC}/hungarian ${WRKSRC}/hu
${MV} ${WRKSRC}/breton ${WRKSRC}/br
${MV} ${WRKSRC}/french ${WRKSRC}/fr
${MV} ${WRKSRC}/czech ${WRKSRC}/cs
${MV} ${WRKSRC}/russian ${WRKSRC}/ru
${MV} ${WRKSRC}/ukrainian ${WRKSRC}/uk
${MV} ${WRKSRC}/slovene ${WRKSRC}/sl
${MV} ${WRKSRC}/indonesian ${WRKSRC}/id
${MV} ${WRKSRC}/danish ${WRKSRC}/da
pre-configure:
${RM} -f ${WRKSRC}/month.xpm ${WRKSRC}/weekday.xpm ${WRKSRC}/clk.xpm
${LN} -s ./en/month.xpm ${WRKSRC}/month.xpm
${LN} -s ./en/weekday.xpm ${WRKSRC}/weekday.xpm
${LN} -s ./xpm/color.xpm ${WRKSRC}/clk.xpm
do-install:
${SED} -e "s,@PREFIX@,${PREFIX},g" \
${FILESDIR}/asclock.sh > ${WRKDIR}/asclock.sh
${INSTALL_SCRIPT} ${WRKDIR}/asclock.sh ${DESTDIR}${PREFIX}/bin/asclock
${INSTALL_PROGRAM} ${WRKSRC}/asclock ${DESTDIR}${PREFIX}/libexec/asclock-classic
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/asclock.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/asclock.1
.for LANGUAGE in ${LANGUAGES}
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/asclock-classic/${LANGUAGE}
cd ${WRKSRC}/${LANGUAGE}; ${INSTALL_DATA} month.xpm weekday.xpm \
${DESTDIR}${PREFIX}/share/asclock-classic/${LANGUAGE}
@${ECHO} share/asclock-classic/${LANGUAGE}/month.xpm >> ${PLIST_SRC}
@${ECHO} share/asclock-classic/${LANGUAGE}/weekday.xpm >> ${PLIST_SRC}
.endfor
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"