1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/x11-fonts/code2000/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

52 lines
1.2 KiB
Makefile

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= code2000
PORTVERSION= 1.171
CATEGORIES= x11-fonts
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= thierry/${DIST_SUBDIR}
DISTFILES= ${PORTNAME:tu}${EXTRACT_SUFX:tu}
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Shareware demo Unicode TrueType font
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
fc-cache:${PORTSDIR}/x11-fonts/fontconfig
USES= zip
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTSDIR=${FONTSDIR}
FONTNAME= ${PORTNAME}
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
FCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v
post-extract: move-fonts rename-license
move-fonts:
${MKDIR} ${WRKSRC}
${MV} ${WRKDIR}/CODE2000.TTF ${WRKSRC}/${FONTNAME}.ttf
rename-license:
${MV} ${WRKDIR}/CODE2000.HTM ${WRKSRC}/${FONTNAME}.html
do-build:
cd ${WRKSRC} && ${MKFONTSCL_CMD}
cd ${WRKSRC} && ${MKFONTDIR_CMD}
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>