freebsd-ports/print/pkfonts300/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

36 lines
997 B
Makefile

# Created by: Hideaki Ohmon <ohmon@tom.sfc.keio.ac.jp>
# $FreeBSD$
PORTNAME= pkfonts${RESOLUTION}
PORTVERSION= 1.0
CATEGORIES= print
MASTER_SITES= PORTS_JP/pkfonts
DISTFILES= pk${RESOLUTION}.tar.gz
# see below for RESOLUTION definition
MAINTAINER= ports@FreeBSD.org
COMMENT= English PK fonts, for ghostscripts, xdvi, and so on
DIST_SUBDIR= pkfonts
EXTRACT_ONLY= # extracted directly in install target
NO_BUILD= yes
PLIST= ${PKGDIR}/pkg-plist.${RESOLUTION}
.if !defined(RESOLUTION)
RESOLUTION= 300
.else
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
${RESOLUTION} != 400 && ${RESOLUTION} != 600
.BEGIN:
@${ECHO_MSG} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
@${ECHO_MSG} "Possible values are: 118, 240, 300, 360, 400 and 600."
@${FALSE}
.endif
.endif
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/fonts
${TAR} -C ${STAGEDIR}${PREFIX}/lib/fonts -xzf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
.include <bsd.port.mk>